dear all,

goodday!
i had encountered problem of creating and displaying the marker after creating using the code below using mgos 2.0:
               $name = $featureReader->GetString('NAME');
               $byteReader = $featureReader->GetGeometry('GEOMETRY');

               $geometry = $geometryReaderWriter->Read($byteReader);
               $point = $geometry->GetCentroid();
               $x = $point->GetCoordinate()->GetX();
               $y = $point->GetCoordinate()->GetY();

               // Create an insert command for this parcel.

               $properties = new MgPropertyCollection();
               $properties->Add(new MgStringProperty('Owner', $name));
$properties->Add(new MgGeometryProperty('Location', $geometryReaderWriter->Write($point))); $parcelMarkerCommands->Add(new MgInsertFeatures('ParcelMarker', $properties));

i'd used the same code to display the marker using mgos 1.1 and it works well. can any of you give some advice?
appreciate, thanz a lot.

regards, bongtk
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to