Workflow Query Task using the centroid of a polygon
I need to perform a Query Task on a polygon feature class, but I want it to return only those features that fall within the centroid of the poly (similar to "Select by Attributes" using the spatial selection method for target layers features: that "have there centroid in the source layer feature" in ArcMap). It doesnt look like the ArcObjects Spatial Relationship library includes this option as a constant, so I cant set the Spatial Relationship in Argument to anything comparable. Does anyone have a good work around for achieving this?
0
-
Christina - I think you can use something like Feature.First().Geometry.GetCentroid() per https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#getcentroid 0
Please sign in to leave a comment.
Comments
1 comment