inasafe/safe-geonode

Projection files created by QGIS for WGS84 are detected as incompatible

vdeparday opened this issue · 0 comments

Saving a layer as WGS84 with QGIS, the following prj file content is exported by QGIS:

GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]

It is detected as GCS_WGS_1984 by GeoServer during import and the safe calculation is then stopped with this error:

Calculation Failed
File download failed. URL: http://192.168.33.10/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=geonode:essential_buildings&outputFormat=SHAPE-ZIP&bbox=106.769514,-6.164022,106.893110,-6.120585 
Error message: java.lang.RuntimeException: Could not decode srs 'GCS_WGS_1984' 
Could not decode srs 'GCS_WGS_1984' Type "GCS_WGS_1984" is unknow in this context. Type "GCS_WGS_1984" is unknow in this context.

Changing the proj file content to

GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]

is a workaround.