Ticket #611 (closed defect: wontfix)

Opened 3 years ago

Last modified 15 months ago

[raster] gdal2wktraster.py crashes on Windows 7

Reported by: pracine Owned by: pracine
Priority: low Milestone: PostGIS Future
Component: raster Version: trunk
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:

 http://vbkto.dyndns.org/sdk/

It comes with MapServer? but you can just copy the GDAL binaries and GDAL for Python you need.

Change History

Changed 3 years ago by pracine

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)

Changed 2 years ago by mloskot

Pierre, I'm confused a bit about this. It is either a bug somewhere or simply you are trying GDAL not built with Python NumPy? support. The raster2pgsql.py does require fully-featured Python bindings for GDAL.

Somewhat related ticket is #838

Changed 2 years ago by pracine

  • status changed from new to closed
  • resolution set to wontfix

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.

Changed 15 months ago by pracine

  • milestone changed from PostGIS Raster Future to PostGIS Future
Note: See TracTickets for help on using tickets.