Epsg code in python

Python script to store epsg code, params and title in a dictionary and a simple search tool.

It's just a try ... episg.py

How to run in python :

    >>from episg import *
 
    >>test()  # print out some examples
 
	#  rep3('path to epsg','order',str('order'),'a')
	#  order (code,param,title)
	# 'c' epsg code 
	# 't' title
	# 'p' parameters
	# 'a' all
	# input : epsg code
	# output param, code, title (all)
 
	>>>output = rep3('/Users/sasha/Desktop/epsg','code',str('4326'),'a')
	>>>print output
 
['proj=longlat', 'ellps=WGS84', 'datum=WGS84', 'no_defs'] 4326 WGS 84
How to run in bash :
    $python episg.py /Users/sasha/Desktop/epsg code 3004 t
    $Monte Mario - Italy zone 2
The epsg file comes from the proj4-source code.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.