Hi,
I wonder if this could be used as a workaround for finding N closest features
from a point? Which features Geoserver is sending if GetFeatureInfo includes
FEATURE_COUNT and GS finds more features inside the tolerance area? Are results
ordered by distance or are they just the first hits?
-Jukka Rahkonen-
Andrea Aime wrote:
On Fri, Aug 17, 2012 at 8:55 AM, Rahkonen Jukka
<[email protected]<mailto:[email protected]>> wrote:
> Andrea Aime wrote:
> GeoServer WMS GetFeatureInfo returns the value of the various bands in the
> pixel you
> clicked. You can ask the GML output to get better parseability.
> Of course that works only if you previously made a WMS GetMap.
Why so? GetFeatureInfo does not need to know anything about GetMap. The request
needs to contain almost all of the GetMap parameters and WMS clients usually
copy them from GetMaps. However, I believe it could be possible to do a very
simple application which takes only the query point as attribute and builds
then the rest of the request automatically
REQUEST=GetFeatureInfo&
SERVICE=WMS&VERSION=1.1.1&
WIDTH=3&
HEIGHT=3&
FORMAT=image/png&
LAYERS=elevation&
QUERY_LAYERS=elevation&
INFO_FORMAT=application/vnd.ogc.gml&
SRS=EPSG:3067&
X=1&
Y=1&
BBOX=10000,20000,10010,20010
All the other parameters could be always the same except BBOX. It could take
the upper left corner coordinates from user input (10000,20010) and calculate
the the other two BBOX values by using some small offsets. By using WMS 1.1.1
there is be no need to think even about axis order.
Hum, yep, that would work, provided you don't have scale dependencies in your
SLD, if you do there is a need to account for those too when sizing up the
relationship between width/height and the bbox
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it 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 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
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