[Geoserver-users] GeoServer 2.5 returns GetFeatureInfo featureMember geometry as lat long rather than projected

In my case I’m not trying to do any reprojection.

Native SRS: EPSG:27700
Declared SRS: EPSG:27700
SRS handling: Force declared

Getfeatureinfo requests 27700

On Thu, Apr 10, 2014 at 11:27 AM, Andrii Borovyk <[hidden email]> wrote:

Hi all,

In fact, GetFeatureInfo response geometry reprojection works fine with at
least these versions: 2.1.4, 2.2, 2.3.0, 2.4.4.

The only additional thing wasn’t mentioned here: queried layer is configured
(in my case) with:
Native SRS: EPSG:3785
Declared SRS: EPSG:900913
SRS handling: Force declared

Ok but… what are you reprojecting your GetFeatureInfo request to?

(in my case the data was in 4326 and the request in 3857)

Cheers

Andrea

On Thu, Apr 10, 2014 at 1:09 PM, Thomas Colley <
t.colley@anonymised.com> wrote:

In my case I'm not trying to do any reprojection.

Native SRS: EPSG:27700
Declared SRS: EPSG:27700
SRS handling: Force declared

Getfeatureinfo requests 27700

Sorry, I'm lost here. If there is no reprojection involved, what is the
issue you're seeing?

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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

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

My layer is set up in 27700 so I’m expecting when I make a getfeatureinfo request the coordinates would be returned in 27700. This has been the case before 2.5.

Correct geom for a point returned by getfeature info from 2.2.4:

<gml:coordinates xmlns:gml=“http://www.opengis.net/gml” decimal=“.” cs=“,” ts=" ">278547,203253</gml:coordinates>

What I’m getting in 2.5 is the geometry coming back as:

<gml:coordinates xmlns:gml=“http://www.opengis.net/gml” decimal=“.” cs=“,” ts=" ">16.71785714,15.9797619</gml:coordinates>

Hope this makes things a bit clearer.

Thanks

Tom

From: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] On Behalf Of Andrea Aime
Sent: 10 April 2014 12:58
To: Thomas Colley
Cc: GeoServer Mailing List List
Subject: Re: GeoServer 2.5 returns GetFeatureInfo featureMember geometry as lat long rather than projected

On Thu, Apr 10, 2014 at 1:09 PM, Thomas Colley <t.colley@anonymised.com> wrote:

In my case I’m not trying to do any reprojection.

Native SRS: EPSG:27700
Declared SRS: EPSG:27700
SRS handling: Force declared

Getfeatureinfo requests 27700

Sorry, I’m lost here. If there is no reprojection involved, what is the issue you’re seeing?

Cheers

Andrea

==

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK

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