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
12 Apr 06:10:37 ERROR [geoserver.ows] -
java.lang.IllegalStateException: A transformation exception occurred while
reprojecting data on the fly
at
org.geotools.data.crs.ReprojectFeatureIterator.next(ReprojectFeatureIterator.java:118)
~[gt-main-28.2.jar:?]
at
org.geotools.data.crs.ReprojectFeatureIterator.next(ReprojectFeatureIterator.java:61)
~[gt-main-28.2.jar:?]
at
org.geoserver.wfs.json.GeoJSONGetFeatureResponse.encodeSimpleFeatures(GeoJSONGetFeatureResponse.java:380)
~[gs-wfs-2.22.2.jar:2.22.2]
at
org.geoserver.wfs.json.GeoJSONGetFeatureResponse.writeFeatures(GeoJSONGetFeatureResponse.java:205)
~[gs-wfs-2.22.2.jar:2.22.2]
at
org.geoserver.wfs.json.GeoJSONGetFeatureResponse.write(GeoJSONGetFeatureResponse.java:149)
~[gs-wfs-2.22.2.jar:2.22.2]
at
org.geoserver.wfs.WFSGetFeatureOutputFormat.write(WFSGetFeatureOutputFormat.java:201)
~[gs-wfs-2.22.2.jar:2.22.2]
at
org.geoserver.wms.featureinfo.GeoJSONFeatureInfoResponse.write(GeoJSONFeatureInfoResponse.java:65)
~[gs-wms-2.22.2.jar:2.22.2]
at
org.geoserver.wms.featureinfo.GetFeatureInfoResponse.write(GetFeatureInfoResponse.java:98)
~[gs-wms-2.22.2.jar:2.22.2]
at org.geoserver.ows.Dispatcher.response(Dispatcher.java:1018)
~[gs-ows-2.22.2.jar:2.22.2]
at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:272)
~[gs-ows-2.22.2.jar:2.22.2]
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:177)
~[spring-webmvc-5.2.22.RELEASE.jar:5.2.22.RELEASE]
at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:52)
~[spring-webmvc-5.2.22.RELEASE.jar:5.2.22.RELEASE]
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1043)
~[spring-webmvc-5.2.22.RELEASE.jar:5.2.22.RELEASE]
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
~[spring-webmvc-5.2.22.RELEASE.jar:5.2.22.RELEASE]
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
~[spring-webmvc-5.2.22.RELEASE.jar:5.2.22.RELEASE]
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
~[spring-webmvc-5.2.22.RELEASE.jar:5.2.22.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:670)
~[servlet-api.jar:4.0.FR]
at
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
~[spring-webmvc-5.2.22.RELEASE.jar:5.2.22.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
~[servlet-api.jar:4.0.FR]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[catalina.jar:9.0.71]
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
~[tomcat-websocket.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[catalina.jar:9.0.71]
at
org.apache.catalina.filters.CorsFilter.handleSimpleCORS(CorsFilter.java:263)
~[catalina.jar:9.0.71]
at org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:167)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[catalina.jar:9.0.71]
at
org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
~[gs-main-2.22.2.jar:2.22.2]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[catalina.jar:9.0.71]
at
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:73)
~[gs-main-2.22.2.jar:2.22.2]
at
org.geoserver.ows.HTTPHeadersCollector.doFilter(HTTPHeadersCollector.java:48)
~[gs-main-2.22.2.jar:2.22.2]
at
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:70)
~[gs-main-2.22.2.jar:2.22.2]
at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:194)
~[gs-main-2.22.2.jar:2.22.2]
at
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:70)
~[gs-main-2.22.2.jar:2.22.2]
at
org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:43)
~[gs-main-2.22.2.jar:2.22.2]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[catalina.jar:9.0.71]
at
org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:39)
~[gs-platform-2.22.2.jar:2.22.2]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[catalina.jar:9.0.71]
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
~[spring-security-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:71)
~[gs-main-2.22.2.jar:2.22.2]
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
~[spring-security-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
~[spring-security-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:75)
~[gs-main-2.22.2.jar:2.22.2]
at
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
~[gs-main-2.22.2.jar:2.22.2]
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
~[spring-security-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:71)
~[gs-main-2.22.2.jar:2.22.2]
at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
~[spring-security-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:75)
~[gs-main-2.22.2.jar:2.22.2]
at
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
~[gs-main-2.22.2.jar:2.22.2]
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
~[spring-security-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at
org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:53)
~[gs-main-2.22.2.jar:2.22.2]
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
~[spring-security-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:71)
~[gs-main-2.22.2.jar:2.22.2]
at
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:158)
~[spring-security-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
~[spring-web-5.2.22.RELEASE.jar:5.2.22.RELEASE]
at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:75)
~[gs-main-2.22.2.jar:2.22.2]
at
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
~[gs-main-2.22.2.jar:2.22.2]
at
org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:81)
~[gs-main-2.22.2.jar:2.22.2]
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
~[spring-security-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:71)
~[gs-main-2.22.2.jar:2.22.2]
at
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
~[spring-security-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at
org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:52)
~[gs-main-2.22.2.jar:2.22.2]
at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:75)
~[gs-main-2.22.2.jar:2.22.2]
at
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
~[gs-main-2.22.2.jar:2.22.2]
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
~[spring-security-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)
~[spring-security-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)
~[spring-security-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at
org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:142)
~[gs-main-2.22.2.jar:2.22.2]
at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)
~[spring-web-5.2.22.RELEASE.jar:5.2.22.RELEASE]
at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)
~[spring-web-5.2.22.RELEASE.jar:5.2.22.RELEASE]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[catalina.jar:9.0.71]
at
org.geoserver.filters.XFrameOptionsFilter.doFilter(XFrameOptionsFilter.java:77)
~[gs-main-2.22.2.jar:2.22.2]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[catalina.jar:9.0.71]
at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:48)
~[gs-main-2.22.2.jar:2.22.2]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[catalina.jar:9.0.71]
at
org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:49)
~[gs-main-2.22.2.jar:2.22.2]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[catalina.jar:9.0.71]
at
org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:42)
~[gs-main-2.22.2.jar:2.22.2]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[catalina.jar:9.0.71]
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
~[spring-web-5.2.22.RELEASE.jar:5.2.22.RELEASE]
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
~[spring-web-5.2.22.RELEASE.jar:5.2.22.RELEASE]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
~[catalina.jar:9.0.71]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
~[catalina.jar:9.0.71]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
~[catalina.jar:9.0.71]
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
~[catalina.jar:9.0.71]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
~[catalina.jar:9.0.71]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
~[catalina.jar:9.0.71]
at
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
~[tomcat-coyote.jar:9.0.71]
at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
~[tomcat-coyote.jar:9.0.71]
at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:891)
~[tomcat-coyote.jar:9.0.71]
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1784)
~[tomcat-coyote.jar:9.0.71]
at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
~[tomcat-coyote.jar:9.0.71]
at
org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
~[tomcat-util.jar:9.0.71]
at
org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
~[tomcat-util.jar:9.0.71]
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
~[tomcat-util.jar:9.0.71]
at java.lang.Thread.run(Thread.java:829) ~[?:?]
Caused by: org.geotools.referencing.operation.projection.ProjectionException:
Latitude 90?00.0'N is too close to a pole.
at
org.geotools.referencing.operation.projection.Mercator$Spherical.transformNormalized(Mercator.java:207)
~[gt-referencing-28.2.jar:?]
at
org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:879)
~[gt-referencing-28.2.jar:?]
at
org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:926)
~[gt-referencing-28.2.jar:?]
at
org.geotools.geometry.jts.DefaultCoordinateSequenceTransformer.transform(DefaultCoordinateSequenceTransformer.java:110)
~[gt-main-28.2.jar:?]
at
org.geotools.geometry.jts.GeometryCoordinateSequenceTransformer.projectCoordinateSequence(GeometryCoordinateSequenceTransformer.java:262)
~[gt-main-28.2.jar:?]
at
org.geotools.geometry.jts.GeometryCoordinateSequenceTransformer.transformStraightLineString(GeometryCoordinateSequenceTransformer.java:214)
~[gt-main-28.2.jar:?]
at
org.geotools.geometry.jts.GeometryCoordinateSequenceTransformer.transformLineString(GeometryCoordinateSequenceTransformer.java:193)
~[gt-main-28.2.jar:?]
at
org.geotools.geometry.jts.GeometryCoordinateSequenceTransformer.transformPolygon(GeometryCoordinateSequenceTransformer.java:267)
~[gt-main-28.2.jar:?]
at
org.geotools.geometry.jts.GeometryCoordinateSequenceTransformer.transform(GeometryCoordinateSequenceTransformer.java:150)
~[gt-main-28.2.jar:?]
at
org.geotools.data.crs.ReprojectFeatureIterator.next(ReprojectFeatureIterator.java:114)
~[gt-main-28.2.jar:?]
... 108 more
_______________________________________________
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