|
POST
|
If you run Fiddler with your application that has the following code. You will notice that the not found exception was raised by this web request: http://webservices.cartosphere.com/arcgis/rest/services/FranceRaster/FRANCERASTER_V20_FRA_L93/MapServer?f=json
<esri:Map>
<esri:ArcGISTiledMapServiceLayer Url="http://webservices.cartosphere.com/arcgis/rest/services/FranceRaster/FRANCERASTER_V20_FRA_L93/MapServer"/>
</esri:Map>
You need to set Token property. You can read this blog post: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/02/15/How-to-use-secure-ArcGIS-Server-services.aspx. If you know username, password, you can generate token from this link: http://webservices.cartosphere.com/arcgis/tokens
... View more
11-22-2011
07:10 PM
|
0
|
0
|
409
|
|
POST
|
You can look at SDK samples in this section: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#MessageInABottle. There is a Failed event that you can subscribe to. If the Geoprocessor.Url is incorrect or service is not available, Failed event will be raised.
... View more
11-22-2011
07:03 PM
|
0
|
0
|
562
|
|
POST
|
Have you looked at this SDK sample? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SDSMap You can run Fiddler to monitor the web requests. You can access the REST endpoint from your web browser and do the same query. For example: http://serverapps.esri.com/SDS/databases/Demo/dbo.USStates_Mercator/query?geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&where=STATE_NAME+%3D+%27California%27&returnGeometry=true&outSR=&outFields=*&f=html This is the result when FeatureLayer or Query OutFields is "*" and Where is "STATE_NAME = 'California'. Check the FieldType and expected value, you can do Where = "1=1" to return all features.
... View more
11-22-2011
06:58 PM
|
0
|
0
|
437
|
|
POST
|
In addition to Sanjay's response. You might also want to look at this related thread: http://forums.arcgis.com/threads/35507-How-do-I-read-ESRI-shape-files
... View more
11-22-2011
06:49 PM
|
0
|
0
|
663
|
|
POST
|
The following documentation in our Concepts page might help: http://help.arcgis.com/en/webapi/silverlight/help/index.html#//01660000000p000000
... View more
11-22-2011
06:46 PM
|
0
|
0
|
732
|
|
POST
|
Have you looked at this blog post? http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/05/28/Localizing-ArcGIS-Controls.aspx. This forum thread might also be related: http://forums.arcgis.com/threads/43030-localization-does-not-work-when-deployed
... View more
11-22-2011
06:43 PM
|
0
|
0
|
426
|
|
POST
|
AutoSave is a property of FeatureLayer. Have you looked at the following SDK samples? AutoSave=True on FeatureLayer. Editor.EditVertices command completes when you click on the same feature or start an edit on another feature. http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave Similar to the example above except AutoSave=False so SaveEdits() need to be called explicitly, this is handled by Editor.Save command. http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave This use GraphicsLayer but you can also use it with FeatureLayer. EditGeometry can complete interactively (mouse down on feature) or programmatically (StopEdit()). Upon completion though, you may need to simplify the geometry to ensure it is topologically correct. http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsGeometry To simplify: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Simplify If you are not seeing your committed geometry edits, subscribe to EndSaveEdits and SaveEditsFailed, check if save was successful. Also run Fiddler to monitor the web requests.
... View more
11-22-2011
06:40 PM
|
0
|
0
|
516
|
|
POST
|
Yes, this was marked obsolete in 2.2 when ScaleLine was introduced: http://help.arcgis.com/en/webapi/silverlight/2.2/help/index.html#/What_s_new_in_2_2/0166000000m2000000/ and deprecated in 2.3: http://help.arcgis.com/en/webapi/silverlight/help/index.html#//0166000000mm000000
... View more
11-19-2011
10:52 AM
|
0
|
0
|
3592
|
|
POST
|
Subscribe to FeatureLayer.EndSaveEdits and SaveEditsFailed event, it would be useful to know if the save is successful. You can also monitor web requests using Fiddler. To add a graphic in code-behind, you can set Geometry and Attributes this way. Be sure that layer has initialized and update is completed. You may want to include null checks here.
//Grab the FeatureLayer of interest
var l = MyMap.Layers["MyFeatureLayerID"] as FeatureLayer;
//Create the graphic, set its Geometry with your X,Y values
var g = new Graphic()
{
Geometry = new MapPoint(x, y, MyMap.SpatialReference)
};
//Set graphic.Attributes
//One way of setting graphic.Attributes is to give them default values.
//GetDefaultValueForFieldType() is something you need to write
foreach (var f in l.LayerInfo.Fields)
{
if (f.Editable)
g.Attributes[f.Name] = f.Nullable ? null : GetDefaultValueForFieldType(f.Type);
}
//Another way is to get the PrototypeAttributes that your sevice have defined.
//You can get this from either FeatureTypes or Templates (use one of the two following lines)
var prototypeAttributes = l.LayerInfo.FeatureTypes.FirstOrDefault().Value.Templates.FirstOrDefault().Value.PrototypeAttributes;
var prototypeAttributes = l.LayerInfo.Templates.FirstOrDefault().Value.PrototypeAttributes;
foreach (var a in prototypeAttributes)
g.Attributes[a.Key] = a.Value;
//Finally, add the graphic to your GraphicCollection. On AutoSave=True (which is default),
//this will fire a save request. Otherwise, you need to call l.SaveEdits();
l.Graphics.Add(g);
... View more
11-19-2011
10:44 AM
|
0
|
0
|
802
|
|
POST
|
http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client.Toolkit~ESRI.ArcGIS.Client.Toolkit.FeatureDataGrid~FilterSource.html Where you place the code-snippet is really an application logic. Maybe on a button-click? Whenever you want the filter to be applied to your current FeatureDataGrid.Items. "l" is the FeatureLayer, assuming you have already set this variable. (i.e. var l = MyMap.Layers["MyFeatureLayerId"] as FeatureLayer, or var l = MyDataGrid.GraphicsLayer). Also make sure you have "using System.Linq". The code-snippet also assumes FeatureLayer.OutFields include "status" and your service field type defined this as string where "completed" could be a possible value. You can read up on how to use linq queries here: http://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b
... View more
11-19-2011
10:27 AM
|
0
|
0
|
2173
|
|
POST
|
This thread is related: http://forums.arcgis.com/threads/33931-Why-Silverlight
... View more
11-18-2011
06:14 AM
|
0
|
0
|
2992
|
|
POST
|
The following threads seem related: forums.arcgis.com/threads/24935-WPF-access-of-image-tiles-in-bundle-(compact)-format http://forums.arcgis.com/threads/14963-WPF-local-map-cache-version-2.1
... View more
11-18-2011
06:12 AM
|
0
|
0
|
732
|
|
POST
|
You can try 3.0 Beta 1 for now. Our v2.3 will also include Geodesic.Area(), it should go final soon. http://help.arcgis.com/en/webapi/silverlight/3.0/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.Geodesic_members.html
... View more
11-18-2011
05:16 AM
|
0
|
0
|
1749
|
|
POST
|
An alternate way is to use EditGeometry: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsGeometry. This allows you to stop the edit in code-behind but adding/moving/removing vertices is still interactive. If you want something done completely in code-behind, you can do something like this:
if (g.Geometry is Polygon)
{
var polygon = g.Geometry as Polygon;
if (polygon.Rings > 0)
{
var pc = polygon.Rings[0];
pc.Add(new MapPoint(x, y));//to add
pc.Remove(mp);//to remove
}
}
... View more
11-18-2011
05:14 AM
|
0
|
0
|
683
|
|
POST
|
This seem related: http://forums.arcgis.com/threads/34564-Change-map-based-on-runtime-with-Silverlight-API
... View more
11-18-2011
05:08 AM
|
0
|
0
|
792
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-10-2026 12:13 PM | |
| 1 | 09-11-2025 01:30 PM | |
| 1 | 06-06-2025 10:14 AM | |
| 1 | 03-17-2025 09:47 AM | |
| 1 | 07-24-2024 07:32 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-13-2026
09:07 AM
|