Hi all,

here I am again. I need to retrieve information about a layer in a
MapContext based on a point (x, y). I saw that there are VectorLayerHelper
and GridLayerHelper, but I'm not having success. I'm trying as follows:

VectorLayerHelper helper = new VectorLayerHelper(map, map.getLayer(0));

            if (helper != null && helper.isValid()) {

                DirectPosition2D queryLocation = new
DirectPosition2D(map.getCoordinateReferenceSystem(),300, 250);

                coll = helper.getInfo(queryLocation);

                FeatureIterator it = coll.features();
            }

The code returns an empty iterator, even if there is a feature in that
point. Does anyone have any tips or know another way to do this?

[]

-- 
Odilon Lima
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to