[mapguide-users] Feature Vertices

Jackie Ng jumpinjackie at gmail.com
Mon Jul 6 03:24:49 EDT 2009


Given a MgFeatureReader that contains your feature(s):

- Call its GetGeometry() method to get a byte reader
- Convert this byte reader to a MgGeometry object by using a
MgAgfReaderWriter object.
- Call GetGeometryType() on the MgGeometry to determine what type of
geometry it actually is.
- Depending on the type, cast the MgGeometry to that given type (if not
using PHP) and consult the relevant APIs for that derived geometry type.
Basically you want to take note of any class methods that return MgPoint,
MgCoordinate or MgCoordinateIterator objects.

Hope that helps.

- Jackie


Tom Lazo wrote:
> 
> Hi all!,
> 
> Anyone knows how could i get the coordinates of the vertices of a feature,
> Is there any function that do that?. Thanks.
> 
> Stygy / Tom
> 

-- 
View this message in context: http://n2.nabble.com/Feature-Vertices-tp3205810p3211474.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list