Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a number of shapefiles that lack the .prj file. I'm able to upload them to geoserver using the rest api. However, I'm unable to serve them after upload. Which brings me to the question as to whether I need to reproject before uploading to geoserver. If I need to reproject, then which options are available? Thanks all in advance.

I'm using GeoServer 2.1.3.

UPDATE: Layers created from the shapefile lack projection information. When I update the Declared SRS field, the layers are served without issues.

share|improve this question
up vote 2 down vote accepted

If you know the projection of the shapefiles then you can just create (or download from the necessary projection string and save it as a .prj file before you upload. See for example.

If you don't know the projection of the files then you aren't going to manage to display them properly anyway :-).

share|improve this answer
Thanks loads. What if the shapefile has no projection at all? (I'm assuming its possible to have a shapefile without projection.) – okello Jun 20 '12 at 9:10
If you wan to display the data on a map you must have a projection of some sort, otherwise it's just numbers on a graph – iant Jun 20 '12 at 9:23
Thanks Iant. It seems my shapefiles are using the 4326 projection. Incorporating that projection info works perfectly. – okello Jun 20 '12 at 9:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.