[GRASS-user] Creating location using EPSG code

Markus Metz markus.metz.giswork at gmail.com
Tue Aug 27 13:14:27 PDT 2019


On Mon, Aug 26, 2019 at 11:10 PM Rich Shepard <rshepard at appl-ecosys.com>
wrote:
>
> The region in the project location is incorrect. With only one small data
> set imported I decided to start over by deleting that location in
> /data/grassdata/.
>
> I created a subdirectory for the project /data/grassdata/mohler/ then
> started grass within that directory: grass79 -c epsg:2838 --gui PERMANENT
>
> The EPSG code is defined as:
>
> EPSG 2838  NAD83(HARN) <http://www.spatialreference.org/ref/epsg/2838/>
> proj4: +proj=lcc +lat_1=46 +lat_2=44.33333333333334
+lat_0=43.66666666666666 +lon_0=-120.5 +x_0=2500000 +y_0=0 +ellps=GRS80
+units=m +no_defs
>
> but those are not the values seen by g.region:
>
> GRASS 7.9.dev (mohler):/data/grassdata > g.region -p
> projection: 99 (NAD83(HARN) / Oregon North)
> zone:       0
> datum:      nad83harn
> ellipsoid:  grs80
> north:      1
> south:      0
> west:       0
> east:       1
> nsres:      1
> ewres:      1
> rows:       1
> cols:       1
> cells:      1
>
> What have I done incorrectly?

The purpose of g.region is to show/change the current computational region.

If you want to verify the CRS of the current location, use g.proj.

Markus M

>
> TIA,
>
> Rich
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20190827/fbf0b4ee/attachment.html>


More information about the grass-user mailing list