<!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 5.50.4616.200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#c0c0c0>
<DIV><FONT face=Arial size=2>I get a segfault when try to do a
queryUsingPoint...I am testing with the demo maps....My map browsing works like
zooming and panning, but now I want to query the map data when I click on
an area, and return data from the attribute data. Like the area of the lake and
miles and stuff.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I get a segfault, and the rest of the script doesnt
run....</FONT></DIV>
<DIV><FONT face=Arial size=2>also, I renamed the demo.map file to romney.map
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>if ( $map_x && $map_y ) {<BR> $mapObj
= ms_newMapObj("/home/htdocs/maptest/romney.map");
<BR> $ptClicked =
ms_newPointObj();<BR> $ptClicked->setXY($x,$y);<BR> $layerObj =
$mapObj->getLayerByName("lakes");<BR> $queryObj =
$layerObj->queryUsingPoint( $ptClicked,MS_MULTIPLE,3 );</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> print "click X Y:" . $map_x . " x " .
$map_y . "<br>\n";<BR> print "mapObj->name:" .
$mapObj->name . "<br>\n";<BR> print "mapObj->numlayers:" .
$mapObj->numlayers . "<br>\n";<BR> print
"layerObj->numqueries:" . $layerObj->numqueries .
"<br>\n";<BR> print "layerObj->other:" . $layerObj->queryitem .
"<br>\n";<BR> print "queryObj->numresults:" .
$queryObj->numresults . "<br>\n";<BR>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>the layer definition in the map
file...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>LAYER<BR> NAME lakes<BR> TYPE
POLYGON<BR> STATUS ON<BR> DATA lakespy2</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> CLASS<BR> NAME 'Lakes
& Rivers'<BR> COLOR 49 117 185<BR> END</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> HEADER "demo/lakespy2_header.html"<BR>
FOOTER "demo/lakespy2_footer.html"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> QUERY<BR> TEMPLATE
"demo/lakespy2.html"<BR> END<BR> TOLERANCE 3<BR>END #
lakes<BR></FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>