Spatial Query on polygon using Geometry points
Hi,
My Requirement: I got 2 layers, a polygon and point. I am querying an address layer and getting the address points. I want to get the polygon details where each of the address points are located. the queried addresses may belong to one or many polygons
What I tried:
- Did spatial query on polygon layer with input geometry as address point. This is taking awful lot of time since address points are more than 1000 which means is doing spatial query more than 1000 times
- used Geometry.Extent ptoperty and Geometry.Intersects property to get results. It is quick but totally wrong since it considers the extent as bondary not just the polygon boundary
- Now Im trying to use Geocortex.Gis.Geometries.Polygon.Contains method, but unable to cast ESRI.ArcGIS.CLient.Geometry.Polygon which is the actual output format that comes from featureset into geocortex polygon.
Any quick method to do this? Please help me
Thanks for your he,p in advance :)
-
Resolved.
I was able to convert ESRI.ArcGIS.CLient.Geometry.Geometry to Geocortex.Gis.Geometries.geometry using Geocortex.Workflow.ArcGisClientGeometryConverter.FromArcGisClientGeometry(ESRI.ArcGIS.Client.Geometry.Geometry input) and then apply Geocortex.Gis.Geometries.Polygon.Contains method.
Working fine and fast.
Like to hear if there will be any drawbacks wih this method compared to spatial query.
0 -
I'm trying to do something similar. Can you share the workflow you used to do this? 0 -
Hi Srikanth,
I am also trying to do the same thing in my workflow. I have a point address layer that I want to query and then use to highlight the corresponding parcel polygon on the map. Any chance you would be willing to share your workflow?
Vanessa0
Please sign in to leave a comment.
Comments
3 comments