So no one can help with this?
I attempted to override the epsg in epsg_overrides.properties, but the only thing I seem to have successfully changed was the name of the projection - at least according to http://localhost:8090/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.web.demo.SRSDescriptionPage&code=EPSG:32661 which now shows the name as “WGS 84 / UPS North” instead of “WGS 84 / UPS North (N,E)”. The WKT remains unchanged.
My epsg_overrider.properties:
32661=PROJCS[“WGS 84 / UPS North”,GEOGCS[“WGS 84”,DATUM[“WGS_1984”,SPHEROID[“WGS 84”,6378137,298.257223563,AUTHORITY[“EPSG”,“7030”]],AUTHORITY[“EPSG”,“6326”]],PRIMEM[“Greenwich”,0,AUTHORITY[“EPSG”,“8901”]],UNIT[“degree”,0.01745329251994328,AUTHORITY[“EPSG”,“9122”]],AUTHORITY[“EPSG”,“4326”]],UNIT[“metre”,1,AUTHORITY[“EPSG”,“9001”]],PROJECTION[“Polar_Stereographic”],PARAMETER[“latitude_of_origin”,90],PARAMETER[“central_meridian”,0],PARAMETER[“scale_factor”,0.994],PARAMETER[“false_easting”,2000000],PARAMETER[“false_northing”,2000000],AUTHORITY[“EPSG”,“32661”],AXIS[“Easting”,E],AXIS[“Northing”,UNKNOWN]]
When booting up geoserver after the addition of epsg_overrides.properties, I got the following error message:
18 feb 11:51:15 WARN [referencing.factory] - Axis elements found in a wkt definition, the force longitude first axis order hint might not be respected:
PROJCS[“WGS 84 / UPS North”,GEOGCS[“WGS 84”,DATUM[“WGS_1984”,SPHEROID[“WGS 84”,6378137,298.257223563,AUTHORITY[“EPSG”,“7030”]],AUTHORITY[“EPSG”,“6326”]],PRIMEM[“Greenwich”,0,AUTHORITY[“EPSG”,“8901”]],UNIT[“degree”,0.01745329251994328,AUTHORITY[“EPSG”,“9122”]],AUTHORITY[“EPSG”,“4326”]],UNIT[“metre”,1,AUTHORITY[“EPSG”,“9001”]],PROJECTION[“Polar_Stereographic”],PARAMETER[“latitude_of_origin”,90],PARAMETER[“central_meridian”,0],PARAMETER[“scale_factor”,0.994],PARAMETER[“false_easting”,2000000],PARAM
ETER[“false_northing”,2000000],AUTHORITY[“EPSG”,“32661”],AXIS[“Easting”,UNKNOWN],AXIS[“Northing”,UNKNOWN]]
18 feb 11:51:15 WARN [referencing.factory] - Axis elements found in a wkt definition, the force longitude first axis order hint might not be respected:
PROJCS[“WGS84 / Simple Mercator”, GEOGCS[“WGS 84”, DATUM[“WGS_1984”, SPHEROID[“WGS_1984”, 6378137.0, 298.257223563]], PRIMEM[“Greenwich”, 0.0], UNIT[“degree”, 0.017453292519943295]], PROJECTION[“Mercator_1SP_Google”], PARAMETER[“latitude_of_origin”, 0.0], PARAMETER[“central_meridian”, 0.0], PARAMETER[“scale_factor”, 1.0], PARAMETER[“false_easting”, 0.0], PARAMETER[“false_northing”, 0.0], UNIT[“m”, 1.0], AXIS[“x”, EAST], AXIS[“y”, NORTH], AUTHORITY[“EPSG”,“54004”]]
I have also put quite a bit of effort in trying to use other projections. There is an issue with NSIDC EASE-Grid South EPSG:3409 not working on layers from my shapefile-store, but it works on my PostGIS store They are all with both native and declared EPSG:4326. I get a lot of three different errors in the stacktrace when attempting to fetch layers from the shapefile store:
18 feb 12:09:36 ERROR [geotools.rendering] - Error querying layer
java.lang.Exception: Error transforming bbox
at org.geotools.renderer.lite.StreamingRenderer.getStyleQuery(StreamingRenderer.java:1068)
at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:2009)
at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:837)
at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:481)
at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:251)
at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:123)
at org.geoserver.wms.GetMap.executeInternal(GetMap.java:521)
…
18 feb 12:09:36 WARN [geotools.rendering] - Got a tranform exception while trying to de-project the current envelope, falling back on full data loading (no bbox query)
org.geotools.referencing.operation.projection.ProjectionException: Tolerance error.
at org.geotools.referencing.operation.projection.LambertAzimuthalEqualArea$Spherical.inverseTransformNormalized(LambertAzimuthalEqualArea.java:436)
at org.geotools.referencing.operation.projection.MapProjection$Inverse.transform(MapProjection.java:1036)
at org.geotools.referencing.operation.projection.MapProjection$Inverse.transform(MapProjection.java:1091)
at org.geotools.referencing.operation.transform.AbstractMathTransform.transform(AbstractMathTransform.java:237)
at org.geotools.referencing.operation.transform.ConcatenatedTransformDirect.transform(ConcatenatedTransformDirect.java:67)
…
18 feb 12:09:37 ERROR [geotools.rendering] - Error transforming bbox
java.lang.Exception: Error transforming bbox
at org.geotools.renderer.lite.StreamingRenderer.getStyleQuery(StreamingRenderer.java:1068)
at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:2009)
at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:837)
at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:481)
at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:251)
at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:123)
…
18 feb 12:09:38 ERROR [geotools.rendering] - Tolerance error.
org.geotools.referencing.operation.projection.ProjectionException: Tolerance error.
at org.geotools.referencing.operation.projection.LambertAzimuthalEqualArea$Spherical.transformNormalized(LambertAzimuthalEqualArea.java:401)
at org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:883)
at org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:924)
at org.geotools.referencing.operation.transform.ConcatenatedTransformDirect.transform(ConcatenatedTransformDirect.java:81)
The equivalent for the North, NSDIC EASE-Grid North EPSG:3408, also gives more or less the same errors, but its working, and I have no idea why.
My shapefiles are from this place: http://www.statsilk.com/maps/download-free-shapefile-maps and all I have changed is specify the projection to be 4326, since they ommited the AUTHORITY-element from the .prj file.
I would greatly appreciate any help with these issues.
Thanks,
Aleksander
Aleksander Vines aleksander.vines@anonymised.com , 1/27/2014 11:37 AM:
Hi all,
I found this old post when google’ing my problem: http://osgeo-org.1560.x6.nabble.com/Polar-Stereographic-Issue-with-EPSG-32661-32761-tt3801364.html but there seems to be no replies to this question.
This issue is exactly like mine, where the wms-images that geoserver produces have swapped axis (resulting in the images being “turned” 90 degrees compared to my other WMS layers).
Does someone have a solution to this?
Many thanks,
Aleksander Vines