Get Geometry from Address Query
I've created a user form to collect an Address. The result is sent to a Query Task and then to a SelectFeatures activity. I need to get the Geometry of the selected address (only one) to pass into other Query tasks. Does anyone have a simple example of how to do this?
Thanks
-
Hi Bill,
If you know that your QueryTask should only return one address, you can use the following syntax:
featureset1.Features(0).Geometry
-Victoria
0 -
How would I be able to capture the geometry of multiple features to pass into a query task?
The output of the GetGeometries activity is IEnumerable<ESRI.ARCGIS.CLIENT.GEOMTRY.GEOMETRY> and the input of the geometry field of the QueryTask is just ESRI.ARCGIS.CLIENT.GEOMTRY.GEOMETRY
0 -
How would I be able to capture the geomotry of the layer stored in SQL Spatial and added to ArcGIS as a SQL Query layer, then published as a map service?
My query task works, but I think it is bailing on return geometry or featureset. I figure it is becuse the layer is in SQL Spatial. I am using the same workflow that I have used for featureclasses stored in ArcSDE, with no issues.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer