Opened 16 years ago
Last modified 9 years ago
#378 new defect
g.region: weird w if input e=w
Reported by: | msieczka | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 6.4.6 |
Component: | Projections/Datums | Version: | svn-develbranch6 |
Keywords: | g.region | Cc: | |
CPU: | All | Platform: | All |
Description
In a latlon location specifing e=w gives a weird w border. E.g.:
$ g.region e=180 w=180 n=90 s=-90 -g n=90 s=-90 w=180 e=540 nsres=0.00083333 ewres=0.00083333 rows=216000 cols=432000 cells=93312000000
Change History (6)
comment:1 by , 16 years ago
follow-up: 3 comment:2 by , 16 years ago
It is ambiguous, do you want 0 columns or 360? What is the goal?
g.region -p says: e 180E w 180E
anyway I think that it handles the ambiguous input as best as can be expected, I don't see the problem here. Possibly throw an error message out complaining that it has to guess what you meant, but as there cannot be 0 columns, the only valid choice is the 360 case. A bug would be if the global wrap around magic fails with e>360.
Hamish
comment:3 by , 16 years ago
Replying to hamish:
It is ambiguous, do you want 0 columns or 360? What is the goal?
In a projected or xy CRS e=w or n=s in g.region makes it print an error:
ERROR: Invalid region: East must be larger than West
and quit not touching the region setting. In a geodetic CRS however no such such error crops out, while it should IMO.
comment:4 by , 15 years ago
Keywords: | g.region added |
---|---|
Priority: | major → normal |
Any reason to leave the ticket open?
comment:5 by , 12 years ago
Component: | Default → Projections/Datums |
---|
comment:6 by , 9 years ago
Milestone: | 6.4.0 → 6.4.6 |
---|
540 - 180 = 360
That's the global wrap-around magic, AFAIK not blocked to allow for the Mars coordinate system which is from 0..360 deg. Or an epsilon issue?
Markus