Select to view content in your preferred language

get Feature Extent WITH returnGeometry = false;

1062
1
02-13-2012 05:49 AM
Drew
by
Frequent Contributor
Hello,
I have a polygon feature class that has too many verticies to pull in as a graphic with geometry. If i query to get the geomnetry it takes way too long and is too much work on the client side. I have a work around for this using map layers and layerDefinitions, but I still need to get the "extent" for a specific feature to zoom to it.

Any thoughts on how to get the extent of a feature when returnGeometry = false in a Query?

Drew
Tags (2)
0 Kudos
1 Reply
Drew
by
Frequent Contributor
Hello, 
I have a polygon feature class that has too many verticies to pull in as a graphic with geometry. If i query to get the geomnetry it takes way too long and is too much work on the client side. I have a work around for this using map layers and layerDefinitions, but I still need to get the "extent" for a specific feature to zoom to it. 

Any thoughts on how to get the extent of a feature when returnGeometry = false in a Query?

Drew


From my readings and experience I have come to the concustion this is not possible.
My workaround was to calculate the xmin xmax ymin and ymax as an attribute to the data. This data does not change often so I am comfortable with the solution.

I would like to suggest that the extent is a value that comes back even if returnGeometry = false on a query beause sometimes it's not possible to get the geometry object of extreamly large/complex polygons.

Drew
0 Kudos