[GRASS-user] Start in text mode: define new location with proj.4 string

Rich Shepard rshepard at appl-ecosys.com
Mon Jul 9 17:31:40 PDT 2018


   When I initially imported the DEMs I pointed the GUI location wizard at
the appropriate prj.adf file and applied v.in.ogr to the hdr.adf file. These
were then re-projected to the project's location, patched together into a
mosaic. Since these cover only a very small area of the state I tried to
overlay a vector file on them but found the regions did not match. The 
analytical area vector files have this region:

g.region -l
north-west corner: long: 122:23:37.862067W lat: 45:21:05.147704N
north-east corner: long: 122:16:26.271907W lat: 45:21:12.056489N
south-east corner: long: 122:16:11.941163W lat: 45:13:30.917967N
south-west corner: long: 122:23:22.563523W lat: 45:13:24.024495N
center longitude:  122:19:54.654969W
center latitude:   45:17:18.09468N
rows:              14238
cols:              9396

while the DEM mosaic has this region:

g.region -l
north-west corner: long: 97:07:59.896358W lat: 40:58:17.24843N
north-east corner: long: 97:01:02.580568W lat: 40:56:42.861876N
south-east corner: long: 97:03:55.617982W lat: 40:49:23.360021N
south-west corner: long: 97:10:52.177034W lat: 40:50:57.54634N
center longitude:  97:05:57.609434W
center latitude:   40:53:50.313005N
rows:              14187
cols:              10210

The latter is not anywhere near the state; it's somewhere much further east
and somewhat south of Oregon. How this came about is immaterial; I'll
re-import and re-project the three DEMs and hope to get them correct this
time.

   Reading the Startup page I do not see a way to apply the proj.4 string to
create a new location on the command line. I know this is an option with the
GUI location wizard but do not see the appropriate '-c' modifier to do this
on the command line. If one of the startup manual options will do this, and
I'm just not seeing it, please point me to it.

Rich




More information about the grass-user mailing list