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 python code which converts JSON text file to a shapefile. I have to set coordinate system to this shapefile created. I do not want to access the .prj file from my computer as this code will be embedded in a web toolbox.

share|improve this question
What is your GIS software platform? – blah238 May 31 '12 at 23:22

There's a Python code example for doing this under Define Projection.

share|improve this answer
@PolyGeo.. ya I used that. It worked , I wanted that only. Thanks – mridul May 31 '12 at 23:29
How did we know he.she was on the ESRI platform? Is it safe to assume that all new posters who don't specify their platform are using ESRI?...curious... – valveLondon Jun 1 '12 at 2:30
It sounded like ArcGIS/ArcPy and I had answer at fingertips so did not take time to be certain. – PolyGeo Jun 1 '12 at 4:45

There is no way to set a shapefile's coordinate system without the .prj file. Without knowing your platform it's hard to provide advice. You mention a 'web toolbox' and python. If you know the input coordinate system of your JSON text file(which I'm betting is WGS84 lat/lon). You could build a generic .prj file on the fly to kick back to the user to accompany the generated shapefile.

Something like:

share|improve this answer

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.