[mapguide-users] Add Feature to a layer

djonio djonio at miami-airport.com
Fri Dec 28 08:00:18 EST 2007


maybe try something like this so you can take a look at the geometry object
....

        MgCoordinate coord =
geometryFactory.CreateCoordinateXY(System.Convert.ToDouble(vertices[0]),
System.Convert.ToDouble(vertices[1]));
        MgPoint point = geometryFactory.CreatePoint(coord);
        MgGeometricEntity epoint = point.Transform(this.GetTransform());
        MgByteReader byteReader = agfWriter.Write((MgPoint)epoint);
        byte[] destination_buff = null;
        using (System.IO.MemoryStream ms = new System.IO.MemoryStream())
        {
            byte[] buf = new byte[1024];
            int c = 0;
            do
            {
                c = byteReader.Read(buf, buf.Length);
                ms.Write(buf, 0, c);
            } while (c != 0);
            ms.Position = 0;
            destination_buff = ms.ToArray();
        }

-- 
View this message in context: http://www.nabble.com/Add-Feature-to-a-layer-tp14516949s16610p14525537.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list