This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from osgeo.osr import SpatialReference | |
""" | |
A quick script to get the Well-Known Text from a proj4 string. | |
""" | |
# build a spatial reference | |
sr = SpatialReference() | |
# enter the proj4 string | |
valid_code = sr.ImportFromProj4('+proj=lcc +lat_1=25 +lat_2=25 +lat_0=25.0 +lon_0=-95.0 +R=6371229.0') |
NewerOlder