[QGIS-trac] Re: [Quantum GIS] #1040: [PATCH] qgis crashes when I
try to add RPF A.TOC file
Quantum GIS
qgis at qgis.org
Fri May 7 00:56:42 EDT 2010
#1040: [PATCH] qgis crashes when I try to add RPF A.TOC file
-----------------------------------------------------+----------------------
Reporter: hamiltonsean69 | Owner: warmerdam
Type: defect | Status: reopened
Priority: major: does not work as expected | Milestone: Version 1.5.0
Component: Rasters | Version: HEAD
Resolution: | Keywords: RPF
Platform_version: | Platform: All
Must_fix: Yes | Status_info: 0
-----------------------------------------------------+----------------------
Changes (by pcav):
* status: closed => reopened
* milestone: => Version 1.5.0
* priority: critical: causes crash or data corruption => major: does not
work as expected
* version: 0.9.1 => HEAD
* must_fix: No => Yes
* resolution: fixed =>
Comment:
The same problem makes it impossible to open a RasterLite db with more
than one raster layer, see:
https://trac.osgeo.org/gdal/ticket/3568
For instance, this: http://www.gaia-gis.it/planet_earth.sqlite fails:
/home/paolo/Desktop/planet_earth.sqlite is not a supported raster data
source This raster file has no bands and is invalid as a raster layer.
Gdal can read it:
{{{
$ gdalinfo /media/disk/planet_earth.sqlite
Driver: Rasterlite/Rasterlite
Files:
Size is 512, 512
Coordinate System is `'
Subdatasets:
SUBDATASET_1_NAME=RASTERLITE:/media/disk/planet_earth.sqlite,table=elevation
SUBDATASET_1_DESC=RASTERLITE:/media/disk/planet_earth.sqlite,table=elevation
SUBDATASET_2_NAME=RASTERLITE:/media/disk/planet_earth.sqlite,table=population
SUBDATASET_2_DESC=RASTERLITE:/media/disk/planet_earth.sqlite,table=population
SUBDATASET_3_NAME=RASTERLITE:/media/disk/planet_earth.sqlite,table=shaded_color
SUBDATASET_3_DESC=RASTERLITE:/media/disk/planet_earth.sqlite,table=shaded_color
SUBDATASET_4_NAME=RASTERLITE:/media/disk/planet_earth.sqlite,table=shaded_gray
SUBDATASET_4_DESC=RASTERLITE:/media/disk/planet_earth.sqlite,table=shaded_gray
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 512.0)
Upper Right ( 512.0, 0.0)
Lower Right ( 512.0, 512.0)
Center ( 256.0, 256.0)
$ gdalinfo RASTERLITE:/media/disk/planet_earth.sqlite,table=elevation
Driver: Rasterlite/Rasterlite
Files: /media/disk/planet_earth.sqlite
Size is 43200, 18000
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.01745329251994328,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4326"]]
Origin = (-180.000000000000000,89.999999999999972)
Pixel Size = (0.008333333333300,-0.008333333333300)
Metadata:
TILE_FORMAT=JPEG
Image Structure Metadata:
INTERLEAVE=PIXEL
COMPRESSION=JPEG
Corner Coordinates:
Upper Left (-180.0000000, 90.0000000) (180d 0'0.00"W, 90d 0'0.00"N)
Lower Left (-180.0000000, -60.0000000) (180d 0'0.00"W, 60d 0'0.00"S)
Upper Right ( 180.0000000, 90.0000000) (180d 0'0.00"E, 90d 0'0.00"N)
Lower Right ( 180.0000000, -60.0000000) (180d 0'0.00"E, 60d 0'0.00"S)
Center ( -0.0000000, 15.0000000) ( 0d 0'0.00"W, 15d 0'0.00"N)
Band 1 Block=400x500 Type=Byte, ColorInterp=Red
Overviews: 21600x9000, 10800x4500, 5400x2250, 2700x1125, 1350x563,
675x281,
338x141
Band 2 Block=400x500 Type=Byte, ColorInterp=Green
Overviews: 21600x9000, 10800x4500, 5400x2250, 2700x1125, 1350x563,
675x281,
338x141
Band 3 Block=400x500 Type=Byte, ColorInterp=Blue
Overviews: 21600x9000, 10800x4500, 5400x2250, 2700x1125, 1350x563,
675x281,
338x141
}}}
So this is a QGIS limitation : it cannot handle images with subdatasets.
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1040#comment:8>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list