Re: [gdal-dev] ODBC as OGR data source?

2010-02-04 Thread Gregor at HostGIS
Thanks, Kumar, for all your help. I have filed a ticket, #3385 -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX "No one

Re: [gdal-dev] ODBC as OGR data source?

2010-02-04 Thread Chaitanya kumar CH
Gregor, The segfault occurred at http://trac.osgeo.org/gdal/browser/branches/1.7/gdal/port/cpl_odbc.cpp#L796during a call to memcpy. You mentioned that there was an attempt by CPLMalloc to allocate 4294967297 bytes of memory. There may be an integer overflow. There were similar problems elsewhere

[gdal-dev] Important - GDAL 1.7.0 - Imagine/HFA Driver Produces Corrupt Files

2010-02-04 Thread Frank Warmerdam
Folks, Ivan has discovered that GDAL 1.7.0 is producing HFA files that are corrupt - that is they are only readable with GDAL. Imagine and older versions of ArcGIS fail to read them. The problem is described in: http://trac.osgeo.org/gdal/ticket/3382 I consider this problem very serious, an

Re: [gdal-dev] ODBC as OGR data source?

2010-02-04 Thread Chaitanya kumar CH
Use gdb instead of strace. On Fri, Feb 5, 2010 at 7:58 AM, Chaitanya kumar CH wrote: > Gregor, > > I don't think you can allocate a contiguous 4GB memory no matter how much > RAM you have. > I don't have any experience in using ODBC in GDAL. Let's hope someone else > with that experience sees thi

Re: [gdal-dev] ODBC as OGR data source?

2010-02-04 Thread Chaitanya kumar CH
Gregor, I don't think you can allocate a contiguous 4GB memory no matter how much RAM you have. I don't have any experience in using ODBC in GDAL. Let's hope someone else with that experience sees this. Send all the lines from the strace output. Meanwhile, see if you can work on Windows. It may be

[gdal-dev] gdal_translate as a VRTDataset factory

2010-02-04 Thread Enrico Zini
Hello, I needed a way to create virtual datasets in a way similar to what gdal_translate is doing. I noticed that gdal_translate is basically a tool to construct a VRTDataset, so I proceeded by transforming gdal_translate.cc into a VRTDataset builder class. The result is gdaltranslate.{h,cpp} in

Re: [gdal-dev] ODBC as OGR data source?

2010-02-04 Thread Gregor at HostGIS
Well, some progress. Almost. :) I have upgraded to 1.7.0 and now get a different error: $ ogrinfo ODBC:gregor/mos...@testpgsql table ERROR 2: CPLMalloc(): Out of memory allocating 4294967297 bytes. Yowch, 4 GB seems a bit steep. The PostgreSQL table itself is 5 rows, all points. Why would it w

[gdal-dev] Re: Question about MEM raster

2010-02-04 Thread Jorge Arévalo
I response myself: I think I may use AddBand, to add bands one by one, specifying its data type and additional options... 2010/2/4 Jorge Arévalo : > Hi, > > Is it possible to create a raster in memory > (http://www.gdal.org/frmt_mem.html) when not all the bands have the > same pixel datatype? I su

[gdal-dev] Question about MEM raster

2010-02-04 Thread Jorge Arévalo
Hi, Is it possible to create a raster in memory (http://www.gdal.org/frmt_mem.html) when not all the bands have the same pixel datatype? I suppose it's not a common situation, but if happens, should I avoid the DATATYPE option and let GDAL manage this issue? In other way, is the DATATYPE option an

Re: [gdal-dev] how to get heightmap

2010-02-04 Thread Mateusz Loskot
weixj2003ld wrote: Hi, Now,I have a .tif file(it is a satallite photo),How to get the heightmap of it? Apply a proper algorithm. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lis

[gdal-dev] Re: Unable to convert Shape file from GML file (ERROR 1: XML Parsing Error:)

2010-02-04 Thread vadi_nabble
Frank/Chaitanya, I am now able to convert .gml file to .shp file. Actually, I thought, we have to enable the Xerces validation for GML parsing, so i uncomment it from the Makefile. However, as per your comment, I commented it back and it worked. Thanks, for your valuable suggestion. Regar

Re: [gdal-dev] Re: advice on using the moving average command

2010-02-04 Thread Jose Gomez-Dans
Hi, On 4 February 2010 08:16, Andrew Wood wrote: > For a third time, I am requesting assistance on the issue below. Does > anyone in this community know how to use the moving average command to > produce a grid from a CSV? > Have you read the section entitled "READING COMMA SEPARATED VALUES" o

Re: [gdal-dev] Cannot set transparent color for GeoTIFFs processed by gdal_retile

2010-02-04 Thread Ralf Wagner
Thank you for your prompt answer. Actually, I was experimenting with VRT files trying to fight this "transparency" problem. I have failed, but probably my way of setting transparency for VRT files was wrong - I had been setting 'c4' value (Alpha) for 'white' entry in color table in my VRT files

[gdal-dev] wcs extraction

2010-02-04 Thread Bruno Binet
Hi list, I'm currently trying to use the wcs gdal driver to extract data from a wcs service (mapserver), using a specfic projection, extent and resolution. I managed to extract the all dataset in the original projection, and format (geotiff). But I would like to be able to specify a value for the

[gdal-dev] Re: advice on using the moving average command

2010-02-04 Thread Andrew Wood
Dear List members, For a third time, I am requesting assistance on the issue below. Does anyone in this community know how to use the moving average command to produce a grid from a CSV? It must be a simple issue. gdal seems like a promising piece of software, but is unlikely to be of much use