Java Mapserver app - queryLayerByPoint. How?

Jeresin info at JERESIN.CO.ZA
Thu Nov 15 03:16:58 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
> 
> 

Thanks Umberto, I'm going to give it a try and get back to you with the
outcome.

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



More information about the mapserver-users mailing list