<html>
<head>
</head>
<body>
Hi Listers,<br>
<br>
doing a querybypoint the zoom to the queried polygon is doing well, but the
information is wrong. It gives the wrong result. Here's the code:<br>
<br>
Thanks a lot<br>
<br>
<br>
Peter <br>
<br>
<br>
<i> $queryresult = @$map -> queryByPoint ($querypoint, MS_SINGLE, -1);<br>
<br>
<br>
if ($queryresult == MS_SUCCESS) {<br>
<br>
/* Bei einem Erfolg: Ergebnisse aus dem gewünschten Layer holen*/<br>
$resultlayer = $map -> getLayerByName ('objekte');<br>
<br>
/* Uns interessiert nur das erste (i.e. nullte) Resultat */<br>
$theresult = $resultlayer -> getResult (0);<br>
$shapefile = ms_newShapefileObj ('<a class="moz-txt-link-freetext" href="C:\Programme\Apache">C:\Programme\Apache</a> Group\Apache\htdocs\immogis3w\code\data\objekte',
-1);<br>
$resultshape = $shapefile -> getShape ($theresult -> shapeindex);<br>
$resultbounds = $resultshape -> bounds; </i><br>
<br>
<br>
<br>
/* Karte auf diese Extents zoomen */<br>
$map -> setExtent ($resultbounds -> minx-80, $resultbounds ->
miny-80,$resultbounds -> maxx+80, $resultbounds -> maxy+80); <b>= CORRECT
ZOOM!!!</b><br>
$resultlayer = $map -> getLayerByName ('objekte');<br>
$numresults = $resultlayer -> getNumResults ();<br>
$theresult = $resultlayer -> getResult (0);<br>
$resultclass = $resultlayer -> getClass (0);<br>
<br>
$dbasefile = dbase_open (<a class="moz-txt-link-rfc2396E" href="C:\Programme\ApacheGroup\Apache\htdocs\immogis3w\code\data\objekte.dbf">"C:\Programme\Apache Group\Apache\htdocs\immogis3w\code\data\objekte.dbf"</a>,
0);<br>
<i> $dbrecord = dbase_get_record_with_names ($dbasefile, $theresult ->
shapeindex);<br>
$Dummy = $dbrecord['ID'];<br>
printf ("%f<br>", $Dummy); </i><b>= WRONG RESULT!!!</b><br>
<br>
<br>
<br>
</body>
</html>