[GRASS-dev] output r.proj in degrees:minutes

Paulo van Breugel p.vanbreugel at gmail.com
Wed Mar 29 01:50:21 PDT 2017



On 29-03-17 10:46, Moritz Lennert wrote:
> On 29/03/17 10:36, Paulo van Breugel wrote:
>> Dear devs
>>
>> When using r.proj with the g flag, I would expect an output that can be
>> used directly in g.region. However, running from a latlon location, the
>> following:
>>
>> r.proj -g location=nc_spm_08_grass7 mapset=PERMANENT 
>> input=cfactorbare_1m
>>
>>
>> gives me the n-s-w-e coordinates in d:m:s, which doesn't work for 
>> g.region.
>>
>> n=35:44:22.382841N s=35:43:57.972871N w=78:40:57.865683W 
>> e=78:40:29.910034W rows=750 cols=700
>
> Why doesn't this work. It should.
Good question, it does.. not sure what I did wrong before, but it works 
without problem now. Sorry for the noise and thanks for the quick reply.

It would still be nice to have an option to get the output in degrees, 
but that is another issue.

> Testing here with
>
> g.region n=35:44:22.382841N s=35:43:57.972871N w=78:40:57.865683W 
> e=78:40:29.910034W rows=750 cols=700 -p
>
> I get:
>
> projection: 3 (Latitude-Longitude)
> zone:       0
> datum:      wgs84
> ellipsoid:  wgs84
> north:      35:44:22.382841N
> south:      35:43:57.972871N
> west:       78:40:57.865683W
> east:       78:40:29.910034W
> nsres:      0:00:00.032547
> ewres:      0:00:00.039937
> rows:       750
> cols:       700
> cells:      525000
>
> Moritz



More information about the grass-dev mailing list