[mapguide-users] How to get coordinates?

peter56 ibb.scigalla at arcor.de
Mon Feb 26 05:56:17 EST 2007


Hi,

I am currently trying to iterate through the coordinates of a selected line,
but I don't konw how.

For center points I found examples, but not for lines.

$featureReader = $featureService->SelectFeatures($srcId, $featureClass,
$Optionen);
$featureReader->ReadNext();
$byteReader = $featureReader->GetGeometry("Geometry");
$geometryReaderWriter = new MgAgfReaderWriter();
$geometry = $geometryReaderWriter->Read($byteReader);
$geotyp = $geometry->GetGeometryType();
echo "Geometrietyp $geotyp <br>\n";
$punktE = $geometry->GetCoordinates();

The code runs until the last line. But how to get the current coordinate?
Finally I want zoom to the first coordinate of the line.

Any suggestions (examples!?) would be appreciated.

Thanks in advance - Peter



-- 
View this message in context: http://www.nabble.com/How-to-get-coordinates--tf3292100s16610.html#a9156826
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list