[Geoserver-users] WMS/GetFeatureInfo with overlapping geometries

Hi,

I made a test by making two copies of all features of the states shapefile and saving the shape. When I open the new topp:states into QGIS and use the GetFeatureInfo tool I am getting three results. Could you repeat the test?

With more t recent Geoserver versions using GetFeatureInfo with overlapping features may be more tricky because of new improvements. Nowadays query should find only features which are visible on the map and I am not sure about what happens if some polygons are hidden below some others.

-Jukka Rahkonen-

···

Sebastian Marsky wrote:

Hi,

ok I should have made that clearer. All geometries are in one single layer.

Von: Rahkonen Jukka (Tike) [mailto:jukka.rahkonen@anonymised.com]
Gesendet: Donnerstag, 14. August 2014 13:16
An: Sebastian Marsky; geoserver-users@lists.sourceforge.net
Betreff: Re: WMS/GetFeatureInfo with overlapping geometries

Hi,

Are both layers included in &layers and &query_layers? Here comes a query that seems to work:

http://demo.opengeo.org/geoserver/wms?BBOX=44.3115939344240175,-103.93616932504362182,44.55018319949628136,-103.57561215835877988&CRS=EPSG:4326&QUERY_LAYERS=topp:states,og:streams&SERVICE=WMS&HEIGHT=714&REQUEST=GetFeatureInfo&STYLES=&I=775&J=246&WIDTH=1079&FEATURE_COUNT=10&VERSION=1.3.0&FORMAT=image/png&LAYERS=topp:states,og:streams&buffer=100

-Jukka Rahkonen-

Sebastian Marsky wrote:

hi,

I’m having a layer containing shapes of all the states within a country and a complete shape of the country’s (outer) border. When running a GetFeatureInfo request, the response just contains the country shape and none of the state shapes, although feature_count is set to 8. I’m using Geoserver 2.2.1.

Do I miss something here? Any hint on that?

Thanks!

On Thu, Aug 14, 2014 at 1:46 PM, Rahkonen Jukka (Tike) <
jukka.rahkonen@anonymised.com> wrote:

With more t recent Geoserver versions using GetFeatureInfo with
overlapping features may be more tricky because of new improvements.
Nowadays query should find only features which are visible on the map and I
am not sure about what happens if some polygons are hidden below some
others.

They should be found anyways, the hit area is cleared every time we draw a
feature, so that we can get also the one below, provided
they are getting painted at all

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------