[GRASS-user] illegal latitude for north after changing region

Hamish hamish_b at yahoo.com
Mon May 7 15:45:10 EDT 2012


Tyler wrote:
> I seem to have broken one of my locations. I had been using a number
> of locations with the same projection, and I had set a
> region in one of them and copied it over to the others via
> 
>   cp ~/grassdata/location1/PERMANENT/windows/myregion
> ~/grassdata/location2/PERMANENT/windows/
> 
> This worked fine until I tried the same thing with a new region with a
> different projection (which in retrospect was a dumb thing to do, I
> know!). Now when I try to reset the region, for example with
> 
>   g.region vect=myvect
> 
> I get the error:
> 
>   ERROR: Invalid region: Illegal latitude for North

it thinks it's in a lat/lon location, and the given value for north is
greater than 90.

> Displaying any of the vectors produces nonsense - a bunch of
> crossed lines that look nothing like the actual shape files.
> 
> Have I irrecoverably broken my location? If not, how do I repair this?

try 'g.region -d' to restore the region from the PERMANENT/WIND file.


Hamish


More information about the grass-user mailing list