[mapguide-users] Re: How to know feature type

Jackie Ng jumpinjackie at gmail.com
Wed Apr 28 04:54:02 EDT 2010


Call GetClassDefinition() on your MgLayer/MgLayerBase object

That returns a MgClassDefinition, which should have a
MgGeometricPropertyDefinition in its collection of property definitions. 

MgClassDefinition.GetDefaultGeometryPropertyName() gives you a hint as to
the name of the property definition to look for.

The MgGeometricPropertyDefinition has a GetGeometryTypes() which returns an
integer

This integer is a bitmask of all possible geometric types, which are:

Point = 1
Curve = 2
Surface = 4
Solid = 8

Hope that helps.

- Jackie
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-know-feature-type-tp4973241p4973322.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list