[GRASS-dev] Re: [GRASS GIS] #1597: r.topidx ERROR current region
resolution
GRASS GIS
trac at osgeo.org
Tue Feb 28 04:56:01 EST 2012
#1597: r.topidx ERROR current region resolution
----------------------+-----------------------------------------------------
Reporter: madi | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-develbranch6
Keywords: r.topidx | Platform: Linux
Cpu: x86-64 |
----------------------+-----------------------------------------------------
Comment(by madi):
Replying to [comment:5 hamish]:
> ok so the two grids don't match (your dem map is not on multiples of
20m, its grid is offset), and it is being resampled. what does the full
r.info say? (everything between the Type of map: and Range of data: lines)
>
> was it a self-made DEM or did you import it from some 3rd party source?
(ie can you remake it on a cleaner grid without loss?)
>
> also try "g.region -p rast=dem" before r.topidx so that the region and
the map perfectly align the map's (offset) grid.
>
>
> Hamish
OK figured out:
g.region -p rast=dem
projection: 1 (UTM)
zone: 33
datum: wgs84
ellipsoid: wgs84
north: 4559778
south: 4403628
west: 525987
east: 669447
nsres: 20.0012809
ewres: 20
rows: 7807
cols: 7173
cells: 55999611
Now it works. Thanks.
madi
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1597#comment:8>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list