babbot

Find layer geometry type

Discussion created by babbot on Aug 15, 2011
Latest reply on Jun 11, 2012 by jeff.pace
Hello all,

I may just be being dim on a Monday afternoon, but I can't seem to find any way of finding a layer's specified geometry type. This is shown in the REST endpoint as "Geometry Type: esriGeometryPoint"; unfortunately it doesn't seem to be exposed in either the Layer properties, or in the layerInfos object.

What I need to do is create a custom-symbolised featureLayer on the fly, and in order for that to work I need to know the geometry present in this particular layer.

Sadly, I can't use layerDefinitions (which would be far more appropriate).

Any ideas?

- Ben

Outcomes