<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2>I'm having a problem with querying a shapefile
layer, using "queryByPoint", basing my prototype on gmap demo application.
Everything works fine, it shows me all the layer present in the map, the
coordinate points "$nClickGeoX,$nClickGeoY" are correctly transformed from
screen coords to projected coords, but "$numResults " is always equal to 0...
I'm going mad! What's wrong with my script? Do I have to set some particular
tags in teh mapfile to allow querying? (In the map demo there isn't any
particular tag).</FONT></DIV>
<DIV><FONT face=Arial size=2>Help, it's urgent...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> $oClickGeo =
ms_newPointObj();<BR> $oClickGeo->setXY($nClickGeoX,
$nClickGeoY);</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>
@$gpoMap->queryByPoint($oClickGeo, MS_SINGLE, -1);</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2> for($iLayer=0; $iLayer <
$gpoMap->numlayers; $iLayer++)<BR>
{<BR> $oLayer =
$gpoMap->GetLayer($iLayer);</FONT></DIV>
<DIV><FONT face=Arial
size=2> $oLayer->open();<BR>
$numResults = $oLayer->getNumResults();<BR> echo
$numResults;<BR> $oLayer->close();<BR>
}</FONT></DIV></BODY></HTML>