Difference between revisions of "Proj4"
From SCECpedia
Jump to navigationJump to searchLine 19: | Line 19: | ||
407650.40 3762606.66 0.00 | 407650.40 3762606.66 0.00 | ||
</pre> | </pre> | ||
+ | |||
+ | == Installation Methods == | ||
+ | *Installation of proj4 on Mac (high sierra) failed. | ||
+ | *Installation of current proj4 on USC HPC succeeded. | ||
+ | *Didn't try installing pyproj on Mac. It can use either installed proj4, or try to build its own | ||
+ | *Used conda install pyproj on Anaconda 2 instance on USC HPC | ||
== FAQ == | == FAQ == |
Revision as of 06:05, 9 October 2017
Coordinate system conversions are needed for several SCEC projects.
Contents
Example Conversions
Converting WGS84 to UTM Zone 11 using cs2cs
- cs2cs -v +proj=latlong +datum=WGS84 +to +proj=utm +zone=11 +datum=WGS84
-bash-4.2$ cs2cs -v +proj=latlong +datum=WGS84 +to +proj=utm +zone=11 +datum=WGS84 # ---- From Coordinate System ---- #Lat/long (Geodetic alias) # # +proj=latlong +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0 # ---- To Coordinate System ---- #Universal Transverse Mercator (UTM) # Cyl, Sph # zone= south # +proj=utm +zone=11 +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0 -118.00 34.00 407650.40 3762606.66 0.00
Installation Methods
- Installation of proj4 on Mac (high sierra) failed.
- Installation of current proj4 on USC HPC succeeded.
- Didn't try installing pyproj on Mac. It can use either installed proj4, or try to build its own
- Used conda install pyproj on Anaconda 2 instance on USC HPC
FAQ
- What is the +no_defs parameters?
- "The "no_defs" item ensures that no defaults are read from the defaults files. Sometimes they cause suprising problems." http://lists.osgeo.org/pipermail/mapserver-users/2003-November/046863.html
Building Proj4
proj4 built on Centos using the ./configure make, make install. Since we are building on a shared cluster, we needed to ./configure --install:/user/scec-00/maechlin/workspace/proj4