Hi Miroslav,
skipping the feature entirely would likely be considered to be a bug too,
one can see it on the map,
and yet identify returns nothing. I guess that possibly the geometry could
be clipped at 85 instead,
with some caution and warning reported in the documentation:
what you'd get is not the original data, which is surprising, but not in
conflict with the specification.

Mind, I'm talking about the geometry because some of the GetFeatureInfo
formats return it, and the
identifying machinery behind them is all the same, what runs for HTML/text
output is 90% the
same code that is used for JSON/GML.

If you're interested in such a change, see this guide:

https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-fixes,-improvements-and-new-features-in-GeoServer

Cheers
Andrea






On Thu, Apr 13, 2023 at 8:00 AM Miroslav Sabo <
miroslav.s...@indra-avitech.aero> wrote:

> Thank You for the answer.
>
>
>
> So then EPSG:3857 cannot not be used for selecting features that are above 
> 85°N
> and below - 85°S?
> Couldn’t these features be skipped when WMS GetFeatureInfo is called,
> instead of the thrown exception?
> Because in case of polygon / line, it can have vertices that are are above 
> 85°N
> and below - 85°S and also in the valid extent of EPSG:3857 and if we call
> the WMS GetFeature info with the valid bbox in EPSG:3857, it still throws
> exception because of this polygon / line that is inside bbox but also
> reaches out of the valid extent. Other features in bbox that are valid
> could have been returned.
>
> Best Regards,
> Miroslav Sabo
>
>
>
> *From:* Rahkonen Jukka <jukka.rahko...@maanmittauslaitos.fi>
> *Sent:* Wednesday, April 12, 2023 8:59 AM
> *To:* Miroslav Sabo <miroslav.s...@indra-avitech.aero>;
> geoserver-users@lists.sourceforge.net
> *Subject:* Re: WMS GetFeatureInfo Error
>
>
>
> Hi,
>
>
>
> EPSG:3857 is not valid near the poles
> https://epsg.org/crs_3857/WGS-84-Pseudo-Mercator.html?
>
> See “Extent: World - 85°S to 85°N”.
>
>
>
> -Jukka Rahkonen-
>
>
>
> *Lähettäjä:* Miroslav Sabo <miroslav.s...@indra-avitech.aero>
> *Lähetetty:* keskiviikko 12. huhtikuuta 2023 9.28
> *Vastaanottaja:* geoserver-users@lists.sourceforge.net
> *Aihe:* [Geoserver-users] WMS GetFeatureInfo Error
>
>
>
> Hi all,
>
>
>
> We are using a GeoServer version 2.22.2 and a PostgreSQL DB as a source
> with geometries (srid: 4326).
>
> Some geometries we are using are on the poles, e.g. polygon that contains
> a vertex with latitude 90° N.
>
> When using the WMS GetFeatureInfo service and EPSG:3857 projection the
> following error occurs:
>
>
> org.geotools.referencing.operation.projection.ProjectionException: Latitude
> 90?00.0'N is too close to a pole.
> I’m attaching a full stacktrace in the geoserverLog.txt.
>
>
>
> The service works fine with projection EPSG:4326.
>
>
>
> Is this a known issue and is there a workaround please?
>
> Miroslav Sabo
>
>
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  339 8844549

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

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

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to