[GRASS-dev] [GRASS GIS] #485: r.external crash

#485: r.external crash
-------------------------+--------------------------------------------------
Reporter: hellik | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Raster | Version: 6.4.0 RCs
Keywords: | Platform: MSWindows Vista
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
osgeo4w (2008/02/08):

    grass64rc3-2
    GDAL 1.5.4, released 2009/01/07

gisdemo_ncspm-data:

       r.out.gdal input=elevation@PERMANENT
output=C:\wd\testdata\demout.tif

=> export ok

info about demout.tif

      gdalinfo demout.tif

Driver: GTiff/GeoTIFF
Files: demout.tif
Size is 1500, 1350
Coordinate System is:
PROJCS["Lambert Conformal Conic",
     GEOGCS["NAD83",
         DATUM["North_American_Datum_1983",
             SPHEROID["GRS 1980",6378137,298.2572221010002,
                 AUTHORITY["EPSG","7019"]],
             AUTHORITY["EPSG","6269"]],
         PRIMEM["Greenwich",0],
         UNIT["degree",0.0174532925199433],
         AUTHORITY["EPSG","4269"]],
     PROJECTION["Lambert_Conformal_Conic_2SP"],
     PARAMETER["standard_parallel_1",36.16666666666666],
     PARAMETER["standard_parallel_2",34.33333333333334],
     PARAMETER["latitude_of_origin",33.75],
     PARAMETER["central_meridian",-79],
     PARAMETER["false_easting",609601.22],
     PARAMETER["false_northing",0],
     UNIT["metre",1,
         AUTHORITY["EPSG","9001"]]]
Origin = (630000.000000000000000,228500.000000000000000)
Pixel Size = (10.000000000000000,-10.000000000000000)
Metadata:
   AREA_OR_POINT=Area
Image Structure Metadata:
   INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 630000.000, 228500.000) ( 78d46'27.41"W, 35d48'34.59"N)
Lower Left ( 630000.000, 215000.000) ( 78d46'28.63"W, 35d41'16.54"N)
Upper Right ( 645000.000, 228500.000) ( 78d36'29.89"W, 35d48'33.08"N)
Lower Right ( 645000.000, 215000.000) ( 78d36'32.01"W, 35d41'15.03"N)
Center ( 637500.000, 221750.000) ( 78d41'29.49"W, 35d44'54.91"N)
Band 1 Block=1500x1 Type=Float32, ColorInterp=Gray
   Metadata:
     COLOR_TABLE_RULES_COUNT=5
     COLOR_TABLE_RULE_RGB_0=5.557879e+001 7.572901e+001 0 191 191 0 255 0
     COLOR_TABLE_RULE_RGB_1=7.572901e+001 9.587922e+001 0 255 0 255 255 0
     COLOR_TABLE_RULE_RGB_2=9.587922e+001 1.160294e+002 255 255 0 255 127 0
     COLOR_TABLE_RULE_RGB_3=1.160294e+002 1.361797e+002 255 127 0 191 127
63
     COLOR_TABLE_RULE_RGB_4=1.361797e+002 1.563299e+002 191 127 63 20 20 20

=> demout.tif ok

link external raster via gdal

    r.external --verbose input=C:\wd\testdata\demout.tif output=demext
title=TestExternalLink

=> r.external-crash

I've tried the example above with wxpython- and tcltk-gui, in both cases
r.external crashes

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/485&gt;
GRASS GIS <http://grass.osgeo.org>

#485: r.external crash
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: 6.4.0 RCs
Resolution: | Keywords: r.external
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Changes (by martinl):

  * keywords: => r.external

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/485#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#485: r.external crash
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: 6.4.0 RCs
Resolution: | Keywords: r.external
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (by hellik):

grass6_devel self compiled in the osgeo4w-stack on WinVista
rev39094
nc-dataset

elevetation data exported as geotiff and linked with r.external
=> no crash of r.external

but the linked geotiff, added to the mapdisplay, is not displayed

r.info map=testelevlinked@user1
category support for [testelevlinked@user1] in mapset [user1] missing
+----------------------------------------------------------------------------+
  | Layer: testelevlinked@user1 Date: Wed Sep 09 21:21:05 2009
|
  | Mapset: user1 Login of Creator: syringia
|
  | Location: nc_spm_08
|
  | DataBase: C:\gisdata\grassdata
|
  | Title: ?? ( testelevlinked )
|
  | Timestamp: none
|
|----------------------------------------------------------------------------|
  |
|
  | Type of Map: raster Number of Categories: ??
|
  | Data Type: FCELL
|
  | Rows: 1350
|
  | Columns: 1500
|
  | Total Cells: 2025000
|
  | Projection: Lambert Conformal Conic
|
  | N: 228500 S: 215000 Res: 10
|
  | E: 645000 W: 630000 Res: 10
|
  | Range of data: min = 55.98819 max = 155.9353
|
  |
|
  | Data Description:
|
  | generated by r.external
|
  |
|
  | Comments:
|
  | r.external input="C:\wd\test_elev.tif" output="testelevlinked"
band=1 |
  |
|
+----------------------------------------------------------------------------+
g.region -p
projection: 99 (Lambert Conformal Conic)
zone: 0
datum: nad83
ellipsoid: a=6378137 es=0.006694380022900787
north: 228500
south: 215000
west: 630000
east: 645000
nsres: 10
ewres: 10
rows: 1350
cols: 1500
cells: 2025000

r.colors map=testelevlinked@user1 color=elevation
Color table for raster map <testelevlinked@user1> set to 'elevation'

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/485#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#485: r.external crash
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: 6.4.0 RCs
Resolution: | Keywords: r.external
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (by neteler):

Is this now fixed? see also #885 - please close here if #885 reports the
same.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/485#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#485: r.external crash
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: 6.4.0 RCs
Resolution: fixed | Keywords: r.external
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Changes (by hellik):

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:3 neteler]:
> Is this now fixed? see also #885 - please close here if #885 reports the
same.

tested with the nightly build WinGRASS-6.4.SVN-r40852-1-Setup.exe on a
WinXP32, displaying the linked raster in the wxgui is working. so closing
this report, because #885 reports the same.

Helmut

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/485#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>