On Wed, May 23, 2012 at 10:37 AM, Alvey,David (Chief Executives) <
[email protected]> wrote:

>  Having a problem with feature request lookup. Trying to get the name of
> a river… (The popup should show the river name)****
>
> ** **
>
> This works:
> http://www.derbyshire.gov.uk/Common/Maps-leafletFramework_v2_1/debug/map/Rivers.asp?X=409&Y=285&position=53.11351204413218,-1.5600693225860596
> ****
>
> This does not:
> http://www.derbyshire.gov.uk/Common/Maps-leafletFramework_v2_1/debug/map/Rivers.asp?X=340&Y=384&position=53.11254928525103,-1.560981273651123
> ****
>
> ** **
>
> This is the working feature request string: 
> http://wms.derbyshire.gov.uk/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&HEIGHT=600&WIDTH=800&LAYERS=DCC:Watercourse%20-%20MainRivers&QUERY_LAYERS=DCC:Watercourse%20-%20MainRivers&STYLES=&BBOX=-1.56707,53.10981,-1.55307,53.11721&FEATURE_COUNT=1&FORMAT=rss&INFO_FORMAT=text/plain&SRS=EPSG%3A4326&X=409&Y=285****
>
> ** **
>
> ** **
>
> This brings back no values:****
>
> http://wms.derbyshire.gov.uk/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&HEIGHT=600&WIDTH=800&LAYERS=DCC:Watercourse%20-%20MainRivers&QUERY_LAYERS=DCC:Watercourse%20-%20MainRivers&STYLES=&BBOX=-1.56798,53.10885,-1.55398,53.11625&FEATURE_COUNT=1&FORMAT=rss&INFO_FORMAT=text/plain&SRS=EPSG%3A4326&X=340&Y=384****
>
> ** **
>
> The two points are only meters apart so I have no idea what the problem is.
>

GeoServer uses the line width to determine if you clicked on the river line
or not. You can add &buffer=numPixels on your
request to control the search area manually.
Ideally it would be nice if the admin could configure an extra around the
symbolizer size coming from sld, e.g., assume
the feature was clicked if it was hit even some pixels away from its
symbolizer size (rigth now there is just a minimum
search area size, which is 3 pixels I believe).

Cheers
Andrea


-- 
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to