Geometry Type If No Shape Field?

330
1
06-04-2010 08:09 PM
RyanCoodey
Occasional Contributor III
Is there any way to determine the geometry type of a layer if the SHAPE attribute field is turned off (ie. Graphic.Attributes["SHAPE"] does not exist)?  The REST service doesn???t set the geometryType for the layer either, so a JSON request to get it won't help either...  There has to be some way to get the type, doesn't there... or the graphics couldn't draw themselves even?

As a last resort I will have to make sure all layers have the SHAPE field visible before publishing the service, but would be nice if I didn't have to worry about it and could handle it programmatically.

Thanks for any ideas!
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
As far as I know, if you don't publish the SHAPE field (by making it invisible in ArcMAP), you won't be able to get the geometry.
0 Kudos