Oft-getproj.bash

From Open Foris Wiki

Jump to: navigation, search

oft-getproj.bash - to fetch the projection definition files for UTM zones

  1. Downloads the projection definition files for user-defined UTM S or N zones (in WGS84) from spatialreference.org
  2. Creates directory ~/ogcwkt if does not exist, otherwise uses the existing
  3. Copies the downloaded files there and can be viewed with a text editor


Exercise:

  • Get Example data set
  • For this exercise following tools are used: oft-getproj.bash

1. Run the oft-getproj.bash for the UTM zone 20N

oft-getproj.bash 20N

2. Fetching the projection definition for several zones:

oft-getproj.bash 21N 22N 25N 31S

3. Change your working directory to:

cd ~/ogcwkt

4. Here you can find the downloaded projection definition file for the UTM zone 20N (WGS84_UTM_20N.ogcwkt). Open it with any text editor program, such as gedit:

 PROJCS["WGS 84 / UTM zone 20N",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],
 AUTHORITY["EPSG","6326"]],
 PRIMEM["Greenwich",0,
 AUTHORITY["EPSG","8901"]],
 UNIT["degree",0.01745329251994328,
 AUTHORITY["EPSG","9122"]],
 AUTHORITY["EPSG","4326"]],
 UNIT["metre",1,AUTHORITY["EPSG","9001"]],
 PROJECTION["Transverse_Mercator"],
 PARAMETER["latitude_of_origin",0],
 PARAMETER["central_meridian",-63],
 PARAMETER["scale_factor",0.9996],
 PARAMETER["false_easting",500000],
 PARAMETER["false_northing",0],
 AUTHORITY["EPSG","32620"],
 AXIS["Easting",EAST],
 AXIS["Northing",NORTH]]



Back to Open Foris Toolkit Main Page

Back to Tools & Exercises



Personal tools