Java Mapserver app - queryLayerByPoint. How?

Jeresin info at JERESIN.CO.ZA
Thu Nov 15 14:14:57 EST 2007


Umberto Nicoletti wrote:
> 
> The code snippet is actually missing the code for this function which
> does the trick of fetching a shape's value and putting them into a map
> for later use:
> 
>     protected Map getResult(shapeObj shape, layerObj layer) {
>         Map aResult = new HashMap();
>         for (int z = 0; z < shape.getNumvalues(); z++) {
>             aResult.put(layer.getItem(z), shape.getValue(z));
>         }
>         return aResult;
>     }
> 
> Regards,
> Umberto
> 
> 

Hi Umberto

Thanks a lot! This solution works perfectly, so we can consider this thread
resolved. I have another issue, but I'll start a new thread for it.

-- 
View this message in context: http://www.nabble.com/Java-Mapserver-app---queryLayerByPoint.-How--tf4800141.html#a13779679
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the mapserver-users mailing list