|
POST
|
It seems that your date field is a number that represents the number of milliseconds since epoch (January 1, 1970) in UTC, so your Where clause has to be in the same format. You can test if this is the case, by using some Epoch converter: http://www.epochconverter.com/. Here are some guidelines for writing your Where clause: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s500000033000000.htm
... View more
05-23-2012
10:36 AM
|
0
|
0
|
1979
|
|
POST
|
In the ExecuteCompleted event handler, you can check for LayerId or LayerName to separate the results:
if (e.IdentifyResults.Any(r => r.LayerId == 1))
{
var resultsFrom1 = e.IdentifyResults.Where(r => r.LayerId == 1);
displayComboBoxFrom1.ItemsSource = resultsFrom1;
}
if (e.IdentifyResults.Any(r => r.LayerId == 2))
{
var resultsFrom2 = e.IdentifyResults.Where(r => r.LayerId == 2);
displayComboBoxFrom2.ItemsSource = resultsFrom2;
}
... View more
05-23-2012
09:56 AM
|
0
|
0
|
1438
|
|
POST
|
You can look at this SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ClipFeatures. The result is also a GPFeatureRecordSetLayer. You can add results to a GraphicsLayer. I imagine your feature attributes will contain the data to show in the data grid. You can then use FeatureDataGrid and set MyDataGrid.GraphicsLayer to this layer that contain the features. GraphicsLayer does not need to be part of map if there is no geometry.
... View more
05-23-2012
09:45 AM
|
0
|
0
|
2380
|
|
POST
|
I see. Does your Geoprocessor require input parameters? Do you send the same request from your Silverlight application (you can compare with browser request using Fiddler). I'm not sure if this help document will help: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006p000000
... View more
05-23-2012
09:36 AM
|
0
|
0
|
2380
|
|
POST
|
If you did not define esri:SnapKey, by default you can use Ctrl-key to enable snapping. Otherwise, whatever key you defined as SnapKey will be used to activate snapping. While snapping is enabled as you draw or edit your geometry, the vertex being drawn or edited will try to snap to nearby vertices (or edge if you set esri:SnapToEdgeEnabled=True). I have not experienced app crash during snapping, can you provide us with a code snippet? Where you in the middle of Draw or Edit? Kindly explain the steps to reproduce the issue. Thanks.
... View more
05-23-2012
09:28 AM
|
0
|
0
|
2014
|
|
POST
|
Have you tried executing this task from the browser through the REST endpoint? Do you get your expected outfields there?
... View more
05-23-2012
09:22 AM
|
0
|
0
|
1562
|
|
POST
|
You can use FeatureLayer to get metadata from the service or you can GetDetails from ArcGISDynamicMapServiceLayer.
var l = new FeatureLayer() { Url = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0" };
l.Initialized += (sender, eventArgs) =>
{
if (l.LayerInfo != null)
{
var fields = l.LayerInfo.Fields;
}
};
l.Initialize();
var m = new ArcGISDynamicMapServiceLayer() { Url = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/MapServer" };
m.GetDetails(0, (layerInfo, exception) =>
{
if (layerInfo != null)
{
var fields = layerInfo.Fields;
}
});
... View more
05-23-2012
09:19 AM
|
0
|
0
|
803
|
|
POST
|
Good question. Currently, we do not support this in v3.0 if you are asking about this print: http://resourcesbeta.arcgis.com/en/help/silverlight-api/samples/start.htm. I am not sure if the ArcGIS10.1 printing tool plan to support this in the future. I have not tried this but if you can get base64 string of the layer you can serialize it this way: http://serverapps101.esri.com/arcgis/sdk/rest/webmap_spec.html. //Client side image { "id": "<webmapOperationalLayerId1>", "url": "<url1>[?token=<tokenString1>", "title": "<title1>", "opacity": <opacity1>, "visibility": <true | false>, "minScale": <minScale1>, "maxScale": <maxScale1>, "extent": { "xmin": <xmin>, "ymin": <ymin>, "xmax": <xmax>, "ymax": <ymax>, "spatialReference": <spatialReference> }, "imageData": "<base64 encoded image data>"
... View more
05-23-2012
09:02 AM
|
0
|
0
|
776
|
|
POST
|
Identify is an operation on map service, the current parameters that is exposed by REST API does not include fields. This is the reason why you get all fields. From your Silverlight application though, even when service returned all fields, you can still exclude other fields when displaying the result. You can modify your existing code this way:
var fieldsToDisplay = new List<string>() {"fieldName1", fieldName2"};
var attributesToDisplay = new Dictionary<string, object>();
foreach(var item in selectedFeature.Attributes)
if(fieldsToDisplay.Contains(item.Key))
attributesToDisplay[item.Key]= item.Value;
IdentifyDetailsDataGrid.ItemsSource = attributesToDisplay;
... View more
05-23-2012
08:48 AM
|
0
|
0
|
2120
|
|
POST
|
Have you tried executing Geoprocessor Task from your web browser, through the REST endpoint? Do you get the same results? If it is a server asynchronous operation, you will need to call SubmitJob() instead. Example of server synchronous: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#MessageInABottle Example of server asynchronous operation: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ClipFeatures I think you want to return GPFeatureRecordSetLayer in order to display its FeatureSet in FeatureDataGrid.
... View more
05-23-2012
08:39 AM
|
0
|
0
|
2380
|
|
POST
|
This is a question for REST API. I believe this is new to 10.1, in "dynamicLayers", you can specify "fields". In pre-10, you will get all fields but your Silverlight application can only show a subset of them. You can modify the following SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Identify Instead of this line:
Data = feature.Attributes
You can create temporary variable that will hold attributes var temp = new Dictionary<string, object>();
var fields = new List<string>() {"field1", "field2"}; //fields to display
foreach(var item in feature.Attributes)
{
if(fields.Contains(item.Key))
temp[item.Key] = item.Value;
}
//more code goes here
Data = temp
... View more
05-22-2012
04:47 PM
|
0
|
0
|
2120
|
|
POST
|
I could not reproduce using your code snippet. What I suspect is happening is that since you set Map control Height, Width and Margin, the view for map is too small and the movement using arrow key is bigger, which appears the map is out of view. Try to zoom out or remove Height, Width and Margin. Or if you want to keep your code, you can run Fiddler with your app, notice that the export image still show the layer. This means the image is retrieved but the map had restricted view that your map does not seem visible.
... View more
05-22-2012
04:38 PM
|
0
|
0
|
754
|
|
POST
|
I think recommended way is to not use ScrollViewer or control (i.e. ListBox, Accordion, etc) that will intercept the mouse events. I actually have not tried the workaround so I don't know how efficient it is.
... View more
05-22-2012
11:43 AM
|
0
|
0
|
2180
|
|
POST
|
I could not reproduce this issue. I wonder if maybe Map.SpatialReference has not yet been set when you call Map.ZoomTo()?
... View more
05-22-2012
11:24 AM
|
0
|
0
|
499
|
|
POST
|
I have not seen this particular exception but I think this might be a related thread: http://forums.arcgis.com/threads/34564-Change-map-based-on-runtime-with-Silverlight-API. When replacing base layer, since it defines the Map.Extent and SpatialReference, you can unset them before before replacing with new layer.
... View more
05-22-2012
11:18 AM
|
0
|
0
|
942
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 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 |
a week ago
|