#611 closed defect (wontfix)
[raster] gdal2wktraster.py crashes on Windows 7
Reported by: | pracine | Owned by: | pracine |
---|---|---|---|
Priority: | low | Milestone: | PostGIS Fund Me |
Component: | raster | Version: | master |
Keywords: | Cc: |
Description
This might be true for Windows Vista as well.
This is a documented GDAL for Python issue:
http://trac.osgeo.org/gdal/ticket/3456
This happen when the -k option is used. The band.ReadAsArray call makes gdal2wktraster.py to crashes.
One work around is to install the GDAL version available at:
It comes with MapServer but you can just copy the GDAL binaries and GDAL for Python you need.
Change History (5)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
comment:3 by , 14 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Numpy was there. I entered this ticket mainly for documenting the problem. I don't think we can do anything. It seems to be dependent on how GDAL is compiled.
comment:4 by , 13 years ago
Milestone: | PostGIS Raster Future → PostGIS Future |
---|
Note:
See TracTickets
for help on using tickets.
This little Python script is sufficient to reproduce the crash:
from osgeo import gdal import osgeo.gdalconst as gdalc ds = gdal.Open("C:/temp/srtm_01_02.tif", gdalc.GA_ReadOnly); band = ds.GetRasterBand(1) pixels = band.ReadAsArray(0, 0, 50, 50, 50, 50) x = len(pixels)