William,<br><br>You could probably do something like:<br><br>layerObj layer = map.getLayerByName("POINTLAYER");<br> layerObj layer2 = map.getLayerByName("OTHERLAYER");<br> layer.queryByPoint(map, point, mapscript.MS_SINGLE, 0);<br>
resultCacheObj results = layer.getResults()<br> if (results != null && results.numresults > 0)<br> {<br> layer.open();<br> resultCacheMemberObj res = results.getResult(0);<br> shapeObj shape = layer.getFeature(res.shapeindex, res.tileindex);<br>
if (shape!= null)<br> {<br> layer2.queryByShape(shape.buffer(width));<br> resultCacheObj results2 = layer2.getResults()<br> if (results2 != null && results2.numresults > 0)<br>
{<br> layer2.open();<br> for (int i=0; i < results2.numresults; i++)<br> {<br> resultCacheMemberObj res2 = results2.getResult(j);<br> shapeObj shape2 = layer2.getFeature(res2.shapeindex, res2.tileindex);<br>
// do something with shape2<br> }<br> layer2.close();<br> }<br> } <br> layer.close();<br> }<br><br><br>Best regards,<br><br>Tamas<br>
<br><br><br><div class="gmail_quote">2008/11/26 william paul <span dir="ltr"><<a href="mailto:williampaul28@yahoo.com">williampaul28@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>
<div>Hello:</div>
<div> </div>
<div>I have created a simple mapserver using mapscript C#. I want to be able to select a point feature from a point layer, buffer that point feature and use the buffer for a <span style="border-bottom: 1px dashed rgb(0, 102, 204);"><span style="border-bottom: 1px dashed rgb(0, 102, 204);"><span style="border-bottom: 1px dashed rgb(0, 102, 204); background: transparent none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">spatial query</span></span></span> for features from other layer</div>
<div> </div>
<div>Does someone have an example or had similar projects?</div>
<div> </div>
<div>Thank you in advance,</div>
<div> </div>
<div>William</div></div></div><br>
</div><br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>