[mapguide-users] Re: Fail To Display Marker Using Mapguide 2.0.2
(Window Platform)
Zac Spitzer
zac.spitzer at gmail.com
Wed Oct 22 03:44:07 EDT 2008
is it throwing any errors or just failing silently?
can you post any more code?
On Wed, Oct 22, 2008 at 6:21 PM, bongtk <bongtk at sains.com.my> wrote:
> 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
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
--
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
More information about the mapguide-users
mailing list