Hello I'm having some trouble with a layer using the Sinusoidal projection. When I edit it's configuration the calculated lat/long bounding box is wrong resulting in the layer being misplaced.
When I open the shapefile in QGIS Desktop (2.8.7-Wien) I can see that it
uses the following projection definition (proj4):
+proj=sinu +lon_0=0 +x_0=0 +y_0=0 +a=6371007.181 +b=6371007.181
+units=m +no_defs
and, as there's no sinusoidal projection in GeoServer's SRS list, I added
it to user_projections/epsg.properties under code 100001 where I copied the
WKT text from the accompanying prj file (which I attached).
When I publish the layer I use the following SRS configuration, with
bounding boxes calculated by geoserver:
Native SRS
UNKNOWN - Sinusoidal...
Declared SRS
EPSG:100001 - Sinusoidal...
Reproject (but I beleive it makes no difference)
Native BBOX
Min X : -5,510,409.794019982
Min Y : -3,667,583.4639999717
Máx X : -5,505,545.010496439
Máx Y : -3,662,718.6804764285
Lat/Lon BBOX
Min X : -59.07789581211166
Min Y : -33.158781662023415
Máx X : -58.99652065907146
Máx Y : -33.11491197687222
The problem is the Y coordinate of the Lat/Lon BBOX. GeoServer thinks it's
around -33.13. However, opening the shapefile in QGIS, and using on the fly
SRS transformation to get WGS84 coordinates, I can see the layer located
around (-59.03, -32.95).
I believe QGIS is showing the right coordinates because it's putting it "in
the right place" relative to other layers I have which use the WGS84
projection.
Anybody knows what's going on? How can I debug it? Or fix it?
Thanks!
Diego
---
PS: My environment is as follows:
GeoServer 2.8.4
Container: Tomcat 7 (JBoss EWS 2.0) [at OpenShift]
Java:
java version "1.7.0_101"
OpenJDK Runtime Environment (rhel-2.6.6.1.el6_7-i386 u101-b00)
OpenJDK Server VM (build 24.95-b01, mixed mode)
grilla_modis_LC_MB.prj
Description: Binary data
------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
