[GRASS-user] Importing Dems with r.in.xyz

Hanlie Pretorius hanlie.pretorius at gmail.com
Fri Jun 4 09:20:54 EDT 2010


Hi,

I've been following the procedure at
http://grass.osgeo.org/wiki/Import_XYZ to import DEMs into GRASS.

It has worked for two DEMS, but I have a problem with the third one at
the step where one "verifies that the number of rows in the ASCII file
corresponds to the number of cells in the enlarged region".

At this point, g.region reports 1146474 cells in the region, while I
have 1146370 lines of coordinates in my file.

The output of g.region is:
-----
projection: 99 (Transverse Mercator)
zone:       0
datum:      ** unknown (default: WGS84) **
ellipsoid:  wgs84
north:      -49312.49
south:      -74587.5
west:       -3015862.5
east:       -2987512.5
nsres:      25.00000989
ewres:      25
rows:       1011
cols:       1134
cells:      1146474
-----

The first three and last three coordinates in my text file are:
-----
-74575.000000,-3015850.000000,1548.830000
-74575.000000,-3015825.000000,1548.330000
-74575.000000,-3015800.000000,1547.500000
.
.
.
-49324.990000,-2987575.010000,1510.980000
-49324.990000,-2987550.010000,1511.240000
-49324.990000,-2987525.010000,1511.470000
-----

Can someone help me to figure out what's going on?

Thanks
Hanlie


More information about the grass-user mailing list