[mapguide-users] RE:how to display point in map?

=?gb2312?B?1cXB6w==?= sh_zhangling at avci.cn
Thu Jan 25 21:40:31 EST 2007


See the list ,

Step1: creat a point 
$geometryFactory = new MgGeometryFactory();
$coordinate = $geometryFactory->CreateCoordinateXY($x,$y);
$point = $geometryFactory->CreatePoint($coordinate);
 

I have to add forty points,so I use :

¡°MgInsertFeatures::MgInsertFeatures Constructor (CREFSTRING,
MgBatchPropertyCollection*) .¡±

 

Step2: add point to map

I have a question:

1.Can I create a layer use studio, so I do not have to create layer during
this step??

 

Please tell me these steps  right or wrong?

 

 

zhangling

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070126/c95e8add/attachment.html


More information about the mapguide-users mailing list