|
POST
|
I want to run this sample code just to manage the edges of a selected feature (junctionFeature)... // Assume we already have a pointer to a junction feature.
ISimpleJunctionFeature simplejunctionFeature = junctionFeature;
IEdgeFeature edgeFeature;
IRow row;
for(int i = 0; i < simplejunctionFeature.EdgeFeatureCount; i++)
{
edgeFeature = simplejunctionFeature.get_EdgeFeature(i);
row = (IRow)edgeFeature;
Console.WriteLine("EdgeFeature " + i + " has OID of: " + row.OID);
} Well, first Im trying another code. I have an IFeature selected . I have notice that when I hit a breakpoint for debbuging the FeatureType property of this element is esriFTSimpleJunction. The code is this: try
{
ISimpleJunctionFeature junction = firstSelectedFeature as ISimpleJunctionFeature; //firstSelectedFeature is my IFeature
staticUtilities.writeToDockableWindowJon(junction.EdgeFeatureCount.ToString()); //this just writes in my dockable window textbox...
}
catch (Exception ex)
{
staticUtilities.writeToDockableWindowJon(ex.ToString()); //this just writes in my dockable window textbox...
} The error is this: System.Runtime.InteropServices.COMException (0x80004005): Error no especificado (Excepción de HRESULT: 0x80004005 (E_FAIL)) en ESRI.ArcGIS.Geodatabase.ISimpleJunctionFeature.get_EdgeFeatureCount()... Pleas help!!! Thans in advance Jon
... View more
04-22-2014
11:17 PM
|
0
|
2
|
933
|
|
POST
|
Hi James, I've posted two threads of your own about this. How did you resolved this issue? How cana I modify to correct this arcgisoutput directory?? Thanks in adavance, Jon
... View more
04-20-2014
12:50 AM
|
0
|
0
|
1225
|
|
POST
|
Hello, I'm about to start a development project with sdk 10.2 .net where I'll need to implement some tools using a network follower (geometric network). I've seen that there are this two Interfaces I think they are very interesting for me: http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0025000009ww000000 http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0025000009z1000000 I've noticed that they are only availabe in 10.1 sdk..... the question: It's possible to use this interfaces with 10.2 sdk? Thanks in advance, Jon Garrido,
... View more
04-03-2014
11:00 PM
|
0
|
0
|
2254
|
|
POST
|
Finally I founded a solution... I don't know why but: from http://www.jongarrido.es/santader the proxy works fine. and from http://jongarrido.es/santander the proxy doesn't work... Unbeliveble Thanks for your attention
... View more
12-11-2013
04:45 AM
|
0
|
0
|
2065
|
|
POST
|
I have another clue, I have taken a look on apache error.log and there is a php notice like this: [Tue Dec 10 16:01:57 2013] [error] [client 90.165.31.215] PHP Notice: Undefined index: CONTENT_TYPE in /var/www/santander/proxy.php on line 107 [Tue Dec 10 16:01:57 2013] [error] [client 90.165.31.215] PHP Notice: Undefined index: HTTP_REFERER in /var/www/santander/proxy.php on line 108 Please, any idea?
... View more
12-10-2013
05:08 AM
|
0
|
0
|
2065
|
|
POST
|
Thank you Jeff for your quick response. Proxy.php and web app are in the same machine and folder. The problem is that the resquest doesn't finish succesfully, and I can't get a valid response. When I do the request directly from browser, typing for example: http://jongarrido.es/santander/proxy.php?http://www.idealista.com/labs/propertyMap.htm?action=json&operation=V&k=%3F&distance=2000¢er=40.41704294908688%2C-3.692138671874795&minSize=100&maxSize=2000&maxPrice=200000&office=true in apearence, it generates a valid response. http://www.idealista.com/labs/propertyMap.htm? is a valid url (configured in proxy.php). However, making the request by using esri.request, the requestFailed function gives the next error: RequestError: Unable to load http://www.jongarrido.es/santander/proxy.php?http://www.idealista.com/labs/propertyMap.htm?action=json&operation=V&k=%3F&distance=2000¢er=40.42227049057409%2C-3.6976318359366336&minSize=100&maxSize=2000&maxPrice=200000&office=true status: 403 The amazing thing is that deploying the application in my local machine it works fine.... Please help!! Thanks in advance
... View more
12-03-2013
04:43 AM
|
0
|
0
|
2065
|
|
POST
|
Hello, I'm getting crazzy!! I have a brief testing application that uses a serviceareas service from arcgis online that uses proxy in php to introduce the requiered token. As well the application makes a rest request to a non esri service. When I use the the web application hosted in my local machine it works fine but when I deploy the application to my remote server it gives an error. My remote server is a linux machine (ubuntu 12.04) with apache2, php, and php-curl extension installed and enabled. From Firefox browser the bug is: NetworkError: 403 Forbidden - http://jongarrido.es/santander/proxy.php? From Chrome browser the bug is: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://jongarrido.es' is therefore not allowed access. Any idea?? Thanks in advance, Jon Garrido
... View more
12-03-2013
02:26 AM
|
0
|
5
|
3684
|
|
POST
|
Hello, I have served a geoprocessing that converts a FeatureSet to KMZ. When I run de model (in arcmap) there is no problem, but running the geoprocessor from the service the generated KMZ uses commas as decimal separator, so that the result is not valid.... Any idea... Thank you very much,
... View more
05-30-2013
04:41 AM
|
0
|
0
|
503
|
|
POST
|
Hello, This thread is quite old but I'm writting becouse I've found out the same ¿bug?. I'm working on 10.1 .NET sdk. When you override the OnSelChange method it fires three times. I tried this, and again the message apears 3 times. string myvalue;
protected override void OnSelChange(int cookie)
{
myvalue = this.Value.ToString();
doSomethingMethod(myvalue);
}
void doSomethingMethod(string txt)
{
MessageBox.Show(txt)
} Finally it worked to me including a if clause like this. I don't know why, but in this way the method fires just once. string myvalue;
protected override void OnSelChange(int cookie)
{
myvalue = this.Value.ToString();
if (myvalue != "") doSomethingMethod(myvalue);
}
void doSomethingMethod(string txt)
{
MessageBox.Show(txt)
}
... View more
02-17-2013
11:23 PM
|
0
|
0
|
1049
|
|
POST
|
This worked to me...!!! Thanks The thing that I noticed is that server manager would run but after I input valid credentials it would come back to the login screen. That occurred several times. I killed the browser and then it started working. Were you seeing something like this? If not, then please provide more details with regards to "I could not open server manager".
... View more
01-16-2013
08:49 AM
|
0
|
0
|
655
|
|
POST
|
Hola Carlos, I've tried your webmap (ID d21f82d1aab64fa2bdc74504c2c60033) and is reachable using JS. You can see it in http://www.jongarrido.es/tmp I really don't know why it doesn't work using SL. I suppose you are spanish speaker so feel free to contact me by email in spanish (contact info at www.jongarrido.es) Any idea there? In my case the problem was solved by cheking out the editable option of the layer, but in Carlos'es case it dosen't work. Thank you very much to all, Jon
... View more
12-05-2012
12:30 AM
|
0
|
0
|
894
|
|
POST
|
Hi again, I have been triying many things for a while (a long while)... and I have found out the solution for me. Maybe somebody knows the reason and can show it to me. When you turn off the make editable option you can load the webmap using JS API and also using SL API. When any of the operational layers has editable option turned on you can't load webmap using SL API. Yes you can using JS API!!! I don't know the reason.... Thank you very much again...
... View more
10-25-2012
03:18 AM
|
0
|
0
|
894
|
|
POST
|
Sorry, I forgot to show my code... The code of de SL connecition it's just the code of the arcgis.com example. Here it is: xml code: <UserControl x:Class="Mastergis.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:esri="http://schemas.esri.com/arcgis/client/2009"> <Grid x:Name="LayoutRoot" > </Grid> </UserControl> And de C# code behind: using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using ESRI.ArcGIS.Client.WebMap; namespace Mastergis { public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); Document webMap = new Document(); webMap.GetMapCompleted += webMap_GetMapCompleted; webMap.GetMapAsync("91e96980db394b039615871482752596"); } void webMap_GetMapCompleted(object sender, GetMapCompletedEventArgs e) { if (e.Error == null) LayoutRoot.Children.Add(e.Map); } } } //this webmaps doesn't work a2748bd0100f4561b4f6293041655d36 91e96980db394b039615871482752596 // this, the one of the arcgis.com examples, works fine... d5e02a0c1f2b4ec399823fdd3c2fdebd Thank you very much again, Jon Garrido,
... View more
10-24-2012
11:45 AM
|
0
|
0
|
894
|
|
POST
|
Hi, Thanks a lot. Using javascript there is no problem loading de map. I have it her http://jonhost.linuxd.org/mastergis/javascript/ (the call is in layaout.cs). But using SL API it's no posible. Thank you in advance agail.
... View more
10-24-2012
08:45 AM
|
0
|
0
|
894
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 07-17-2018 02:04 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-15-2021
10:09 AM
|