[GRASS-dev] Test if raster map and current region match?
Roger Bivand
Roger.Bivand at nhh.no
Wed Jun 25 09:42:30 EDT 2008
On Wed, 25 Jun 2008, Hamish wrote:
>
>
> Glynn:
>> Yeah, lat/lon could be a problem (r.info uses d:m:s while
>> g.region uses decimal), as could fractional coordinates, due to
>> precision issues.
>
> so parse "g.region -p" instead of -g?
>
I'm making progress with the plugin access to the code underlying gdalinfo
for the raster, but getting more precision from g.region for the
resolution is problematic. I can however use the rows, columns counts.
The longlat raster resolution fuzz is about 0.5e-06 for a region set from
a raster and the same value observed through the plugin from the raster
and as printed by g.region. Getting closer.
Roger
>
> Hamish
>
>
>
>
>
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the grass-dev
mailing list