I have a shapefile with projection WGS84, when I added it to GeoServer, the Native SRS is Unknown Unknown SRS

and for Declared SRS I wrote EPSG:4326. However, the shapefile became a mess if opened in Layer Preview

enter image description here

Then I changed Declared SRS to EPSG:2400 (Swedish RT90), the shapefile can be shown in Layer Preview.

enter image description here

What could be the problem?

And if I have Google Maps as tile map, how can I overlay this shapefile on it with OpenLayers element? What's the difference between e.g. OpenLayers.xxx and ol.xxx?

  • Seems that the proj file is lying to you, that is why geoserver allows you to override it. – Ian Turton Dec 14 '14 at 12:09
  • @iantbut can I do something about it? I'm new to OpenLayer and GeoServer, so I have no idea what should I do to it. Besides, nither of them worked in new ol.layer.Image({ source: wmsSource }). – ZhangYao Jiayin Dec 14 '14 at 12:41
  • There is no need to do anything, just set 2400 and proceed as usual. – Ian Turton Dec 14 '14 at 12:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.