If GetGeometryType() return MgGeometryType.Polygon, then yes you can safely cast it to a MgPolygon.
- Jackie Tom Lazo wrote: > > Hi Jackie, > > Just one question, is the geometry cast just and (MgPolygon) geometry?, > srry about my ignorance. n.n' . I think i should use the geometry's > Boundary function. But i dunno how, i've looked everywhere without luck. > Plz help. > > Thanks > > Tom / Stygy > > > > Jackie Ng wrote: >> >> 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-tp3205810p3221973.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
