Is a geometry service even the correct method to use for plotting my graphics?
Looks like you are converting between 4326 and 3857 (102100).
No need to use geometry service for that, it would be much more efficient to use ESRI.ArcGIS.Client.Projection.WebMercator.
Also consider adding timestamp to your data to get rid of "1=1" queries (or maybe it would be better to use a kind of Duplex Services to notify clients, it depends).
Also there is a Tracking server for that kind of tasks.
http://gisaprd/ArcGIS/rest/services/AerialCoordinateTest/MapServer
What spatial reference this map service uses? It is not 102100?
If it`s not, then one more question: does the map service return geometry, not just attributes?
If yes, then you could just set out spatial reference for your queries.
If it doesn`t return geometry and you can`t make it return geometry (using XY event layers, for example) then you need to use Geometry Service indeed.
There are few samples in the API documentation.
http://resources.arcgis.com/en/help/silverlight-api/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tas...
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Project
There was a nice class for auto reprojection, but it looks like it`s not available now.
http://blogs2.esri.com/esri/arcgis/2011/02/13/auto-reprojecting-graphics-layers/
If it`s not, then one more question: does the map service return geometry, not just attributes?
If yes, then you could just set out spatial reference for your queries.
If it doesn`t return geometry and you can`t make it return geometry (using XY event layers, for example) then you need to use Geometry Service indeed.
There are few samples in the API documentation.
http://resources.arcgis.com/en/help/silverlight-api/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tas...
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Project
There was a nice class for auto reprojection, but it looks like it`s not available now.
http://blogs2.esri.com/esri/arcgis/2011/02/13/auto-reprojecting-graphics-layers/
TDenis,
Thanks for the links to those examples. I have recreated the example in the API samples successfully. As I have been stepping through the sample code I notice this line of code:
MapPoint inputMapPoint = new MapPoint(x, y, new SpatialReference( 4326));
Could I not just add my map points to the map specifying my spatial reference? Like this:
feature.Geometry = new MapPoint(lat, lon, new SpatialReference (102697));