Hi :cool:
I've developed an application in ArcGIS Engine in C#.net that works perfectly with anything local (gdb, shape, raster, dwg)
and now I'm trying to get it working with ArcGIS Server layers etc.
trying to consume a Feature Service with Editing/Query/Create/Delete enabled.... the map control accepts the layer, and displays the data. "/SpatialDataServer/admin/services/Sandbox_TestLayer.FeatureServer/0"
however upon Query / add feature / edit, it seems the layer needs to be treated differently..
it edits and queries fine in ArcMap 10.1, so i'm just wondering how I need to cast the ILayer to be able to use it?
currently there's alot of conflicting information floating around, and I just need to know the right way to handle this.
I've looked into GISClient / MapServerLayer / AGSFeatureLayer ... but having trouble determining from the ILayer the "LayerType" i.e. if its from the server... / feature service layer.... any point in the right direction would be great.. as i'm new to this stuff..
I know its possible to consume it all through REST and geoJSON, but I'm assuming ESRI has a better way in ArcObjects to do this for me rather than me having to manually consume it all..
Tomas
I've developed an application in ArcGIS Engine in C#.net that works perfectly with anything local (gdb, shape, raster, dwg)
and now I'm trying to get it working with ArcGIS Server layers etc.
trying to consume a Feature Service with Editing/Query/Create/Delete enabled.... the map control accepts the layer, and displays the data. "/SpatialDataServer/admin/services/Sandbox_TestLayer.FeatureServer/0"
however upon Query / add feature / edit, it seems the layer needs to be treated differently..
it edits and queries fine in ArcMap 10.1, so i'm just wondering how I need to cast the ILayer to be able to use it?
currently there's alot of conflicting information floating around, and I just need to know the right way to handle this.
I've looked into GISClient / MapServerLayer / AGSFeatureLayer ... but having trouble determining from the ILayer the "LayerType" i.e. if its from the server... / feature service layer.... any point in the right direction would be great.. as i'm new to this stuff..
I know its possible to consume it all through REST and geoJSON, but I'm assuming ESRI has a better way in ArcObjects to do this for me rather than me having to manually consume it all..
Tomas