<!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&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>if ( $map_x &amp;&amp; $map_y ) {<BR>&nbsp;$mapObj 
= ms_newMapObj("/home/htdocs/maptest/romney.map");&nbsp;&nbsp; 
<BR>&nbsp;$ptClicked = 
ms_newPointObj();<BR>&nbsp;$ptClicked-&gt;setXY($x,$y);<BR>&nbsp;$layerObj = 
$mapObj-&gt;getLayerByName("lakes");<BR>&nbsp;$queryObj = 
$layerObj-&gt;queryUsingPoint( $ptClicked,MS_MULTIPLE,3 );</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;print&nbsp; "click X Y:" . $map_x . " x " . 
$map_y . "&lt;br&gt;\n";<BR>&nbsp;print "mapObj-&gt;name:" .&nbsp; 
$mapObj-&gt;name . "&lt;br&gt;\n";<BR>&nbsp;print "mapObj-&gt;numlayers:" . 
$mapObj-&gt;numlayers . "&lt;br&gt;\n";<BR>&nbsp;print 
"layerObj-&gt;numqueries:" . $layerObj-&gt;numqueries . 
"&lt;br&gt;\n";<BR>&nbsp;print "layerObj-&gt;other:" . $layerObj-&gt;queryitem . 
"&lt;br&gt;\n";<BR>&nbsp;print "queryObj-&gt;numresults:" . 
$queryObj-&gt;numresults . "&lt;br&gt;\n";<BR>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>the layer definition in the map 
file...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>LAYER<BR>&nbsp; NAME lakes<BR>&nbsp; TYPE 
POLYGON<BR>&nbsp; STATUS ON<BR>&nbsp; DATA lakespy2</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; NAME 'Lakes 
&amp; Rivers'<BR>&nbsp;&nbsp;&nbsp; COLOR 49 117 185<BR>&nbsp; END</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; HEADER "demo/lakespy2_header.html"<BR>&nbsp; 
FOOTER "demo/lakespy2_footer.html"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; QUERY<BR>&nbsp;&nbsp;&nbsp; TEMPLATE 
"demo/lakespy2.html"<BR>&nbsp; END<BR>&nbsp; TOLERANCE 3<BR>END # 
lakes<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT></BODY></HTML>