[GRASS-user] create location from CLI

Markus Neteler neteler at osgeo.org
Tue Sep 6 13:37:48 PDT 2016


Hi,

On Sep 6, 2016 9:25 PM, "Dave Roberts" <droberts at montana.edu> wrote:
>
> Hi Ken, Hi Sajid,
>
>    Thanks for the pointers.  I think my problem is that grass70 and
g.proj parse the files differently.  I.e.,
>
> Here is file teste.prj
>
> PROJCS["Lambert_Conformal_Conic",
>     GEOGCS["GCS_WGS_1984",
>         DATUM["D_WGS_1984",
>             SPHEROID["WGS_1984",6378137,298.257223563]],
>         PRIMEM["Greenwich",0],
>         UNIT["Degree",0.017453292519943295]],
>     PROJECTION["Lambert_Conformal_Conic"],
>     PARAMETER["standard_parallel_1",40],
>     PARAMETER["standard_parallel_2",45],
>     PARAMETER["latitude_of_origin",0],
>     PARAMETER["central_meridian",-109],
>     PARAMETER["false_easting",0],
>     PARAMETER["false_northing",0],
>     UNIT["Meter",1]]
>
> The following does not work
>
> grass70 -e -c teste.prj teste
>
> Creating new GRASS GIS location/mapset...
> ERROR: ERROR 4: `teste.prj' not recognised as a supported
> file format.
>
> ERROR: Could not read georeferenced file teste.prj using either OGR nor
>        GDAL

Yes because it is not a raster or vector file.

> However, this does work
>
> grass70 -c teste
> g.proj -c wkt=teste.prj

This one is right.

>    I'm having even worse luck with PROJ4 syntax of files.

AFAIK that's only supported in g.proj.

Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160906/390d1979/attachment-0001.html>


More information about the grass-user mailing list