[GRASS-dev] Strange import of .asc

Helmut Kudrnovsky hellik at web.de
Mon Jan 14 06:51:53 PST 2013


Hi Paolo,

>Importing an .asc file (with -o) results in a raster which is not aligend
with the
>original. 
>Anyone confirms?

gdalinfo 23B07.asc
Driver: AAIGrid/Arc/Info ASCII Grid
Files: 23B07.asc
Size is 1640, 1240
Coordinate System is `'
Origin = (1568780.000000000000000,4896020.000000000000000)
Pixel Size = (1.000000000000000,-1.000000000000000)
Metadata:
  AREA_OR_POINT=Point
Corner Coordinates:
Upper Left  ( 1568780.000, 4896020.000) 
Lower Left  ( 1568780.000, 4894780.000) 
Upper Right ( 1570420.000, 4896020.000) 
Lower Right ( 1570420.000, 4894780.000) 
Center      ( 1569600.000, 4895400.000) 
Band 1 Block=1640x1 Type=Float32, ColorInterp=Undefined
  NoData Value=-9999

and 

r.info map=testimport at user1                                                     

+----------------------------------------------------------------------------+
 | Layer:    testimport at user1               Date: Mon Jan 14 15:45:08 2013   
|
 | Mapset:   user1                          Login of Creator: myricaria      
|
 | Location: lidarprova                                                      
|
 | DataBase: C:\dl\gl\cavallini                                              
|
 | Title:     ( testimport )                                                 
|
 | Timestamp: none                                                           
|

|----------------------------------------------------------------------------|
 |                                                                           
|
 |   Type of Map:  raster               Number of Categories: 255            
|
 |   Data Type:    FCELL                                                     
|
 |   Rows:         1240                                                      
|
 |   Columns:      1640                                                      
|
 |   Total Cells:  2033600                                                   
|
 |        Projection: Transverse Mercator                                    
|
 |            N:    4896020    S:    4894780   Res:     1                    
|
 |            E:    1570420    W:    1568780   Res:     1                    
|
 |   Range of data:    min = 76.581  max = 214.843                           
|
 |                                                                           
|
 |   Data Description:                                                       
|
 |    generated by r.in.gdal                                                 
|
 |                                                                           
|
 |   Comments:                                                               
|
 |    r.in.gdal -o input="C:\dl\gl\cavallini\23B07.asc" output="testimport"  
|
 |                                                                           
|

+----------------------------------------------------------------------------+

the extent seems to be the same?




-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Strange-import-of-asc-tp5027341p5027346.html
Sent from the Grass - Dev mailing list archive at Nabble.com.


More information about the grass-dev mailing list