[mapguide-users] Re: how to convert agf to wkt?

Jackie Ng jumpinjackie at gmail.com
Sun May 22 21:46:48 EDT 2011


Use it in conjunction with the MgAgfReaderWriter class.

MgWktReaderWriter does MgByteReader (WKT text) <-> MgGeometry

MgAgfReaderWriter does MgByteReader (AGF binary) <-> MgGeometry

So going from WKT to AGF or vice-versa it's a matter of taking the output of
one reader/writer and feeding it in as the input of the other reader/writer
to get the desired format.

Also there are variations of Write() that only takes the MgGeometry
parameter. You only need to use the second variation with the mgTransform
parameter if you want to do coordinate transformation on the geometry being
written out.

- Jackie

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-convert-agf-to-wkt-tp6391716p6392838.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list