Re: [gdal-dev] Gdal2tiles in Gdal18 and creating KMZ files

2011-02-17 Thread Vincent Schut
Roland, not really an answer to your question, but note that - with a recent gdal - you can also create kmz by using the kmlsuperoverlay output format, e.g.: gdal_translate -of kmlsuperoverlay out.kmz your infile need be a rgb or rgba format (if you want to maintain transparency, add '-co

Re: [gdal-dev] Segmentation fault using gdal_translate in 1.8.0

2011-02-17 Thread Kyle Shannon
Thanks Derrick, I will look at this in the morning. I will file a ticket if need be. Thanks for the report, sorry about the inconvenience. kss # Kyle Shannon Physical Science Technician RMRS Fire Sciences Lab Fire, Fuels & Smoke - RWU 4405 5775 Highway 10 W. Missoul

RE: [gdal-dev] Segmentation fault using gdal_translate in 1.8.0

2011-02-17 Thread Derrick.Wong
Hi Kyle, Thanks for the reply. Gdalinfo on 1.8.0 gives me the same "Segmentation fault" error. Attached is the dump using 1.7.3 I have included a sample file and you can download it here: ftp://ftp.csiro.au/DerrickWong/sample/sample.nc Derrick Wong Software Engineer | Spatial Information Se

Re: [gdal-dev] Segmentation fault using gdal_translate in 1.8.0

2011-02-17 Thread Kyle Shannon
Derrick, Can you file a ticket and attach a sample data set? Do you have any other details? A gdalinfo of the netcdf file and another of one of the variables would be great. Thanks. kss # Kyle Shannon Physical Science Technician RMRS Fire Sciences Lab Fire, Fuels

[gdal-dev] Segmentation fault using gdal_translate in 1.8.0

2011-02-17 Thread Derrick.Wong
Hi all, I have updated to use GDAL 1.8 and I am having problems using gdal_translate to convert netCDF files to Geotiff or ERS. I am getting "Segmentation fault" errors only occurring in 1.8.0. I was using 1.7.3 previously. Could someone kindly advise? Thank you for your time. Derrick Wong Sof

Re: [gdal-dev] Potential dangerous use of CPLSetErrorHandler()

2011-02-17 Thread Even Rouault
Le vendredi 18 février 2011 01:02:30, Even Rouault a écrit : > > So my suggestion would be not to use a global error handler set when RGDAL > is initialized, but rather for each binding of the GDAL API, install a > local error handler with CPLPushErrorHandler(__errorHandler) and uninstall > it bef

[gdal-dev] Potential dangerous use of CPLSetErrorHandler()

2011-02-17 Thread Even Rouault
Hi Roger, not sure if you are the appropriate recipient for this email, but as your name appeared on http://cran.r-project.org/web/packages/rgdal/index.html I try my chance ;-). (CC'ing gdal-dev too since other users of GDAL might be interested by the issue related with CPLSetErrorHandler() in

[gdal-dev] How to reproject a geotiff using osgeo gdal python bindings

2011-02-17 Thread William Hudspeth
Hello, I am trying to project a raster in lambert conformal conic projection to geographic dd wgs84. The cell resolution changes between the two, so I don't know what the final grid size is in the geographic raster. Does anyone have any complete examples of opening a geotiff in lambert, and writin

Re: [gdal-dev] MrSID mask band support

2011-02-17 Thread Even Rouault
Le jeudi 17 février 2011 22:23:43, Brian Claywell a écrit : > On Tue, Feb 15, 2011 at 1:19 PM, Even Rouault > > wrote: > >> Barring that, since the MrSID driver reimplements the > >> overview-related virtual functions to bypass the default overview > >> manager, would there be any harm in initial

Re: [gdal-dev] MrSID mask band support

2011-02-17 Thread Brian Claywell
On Tue, Feb 15, 2011 at 1:19 PM, Even Rouault wrote: >> Barring that, since the MrSID driver reimplements the >> overview-related virtual functions to bypass the default overview >> manager, would there be any harm in initializing the overview manager >> when a MrSIDDataset object is created? > >

Re: [gdal-dev] Re: gdal android

2011-02-17 Thread Mohammed Rashad
I installed gdal-1.5.0 on android with some patches. there is a problem in tiff format, gml,geojson,kml all other formats worked without any patch will send you those patches if needed On Fri, Feb 18, 2011 at 12:03 AM, Even Rouault wrote: > Le jeudi 17 février 2011 15:58:17, Frank Warmerdam a éc

[gdal-dev] gdal vs wgrib2 output for grb2 files

2011-02-17 Thread Matt Funk
Hi Bill, i was wondering if there had been any more progress on the issue w.r.t to the discreptancy between wgrib2 and the gdal driver file? I found the thread which you initiated at: http://osgeo-org.1803224.n2.nabble.com/gdal-dev-GDAL-Navigation-of-a-Grib2-file-td5740761.html If you don't mind,

Re: [gdal-dev] Re: gdal android

2011-02-17 Thread Even Rouault
Le jeudi 17 février 2011 15:58:17, Frank Warmerdam a écrit : > On 11-02-17 06:00 AM, Mohammed Rashad wrote: > > here is my new error log > > cpl_strtod.cpp: In function 'void CPLReplacePointByLocalePoint(char*, > > char)': cpl_strtod.cpp:200: error: 'struct lconv' has no member named > > 'decimal_p

Re: [gdal-dev] GCP list projection

2011-02-17 Thread Frank Warmerdam
On 11-02-17 10:08 AM, Vadim Shlyakhov wrote: Hello, I wonder if it makes any sense if GCP list at a dataset is different from the dataset's SRS. I've played a little with these in Python, but neither gdal.Transformer, nor warping via VRT doesn't produce the results expected. I mean, presumably

Re: [gdal-dev] Gdal2tiles in Gdal18 and creating KMZ files

2011-02-17 Thread Roland Duhaime
Thanks Brian, I have reviewed OSGeo4W\bin\gdal2tiles.py and specifically line 1597 containing the href tag to the png file: %(ty)d.%(tileformat)s I was curious if someone had any idea on how to modify this href tag to include the relative path as Brian suggests

[gdal-dev] GCP list projection

2011-02-17 Thread Vadim Shlyakhov
Hello, I wonder if it makes any sense if GCP list at a dataset is different from the dataset's SRS. I've played a little with these in Python, but neither gdal.Transformer, nor warping via VRT doesn't produce the results expected. I mean, presumably if GCP's SRS is different from the dataset's SR

Re: [gdal-dev] Re: gdal android

2011-02-17 Thread Frank Warmerdam
On 11-02-17 06:00 AM, Mohammed Rashad wrote: here is my new error log cpl_strtod.cpp: In function 'void CPLReplacePointByLocalePoint(char*, char)': cpl_strtod.cpp:200: error: 'struct lconv' has no member named 'decimal_point' cpl_strtod.cpp:201: error: 'struct lconv' has no member named 'decimal_

Re: [gdal-dev] gdal install error version 1.5.0

2011-02-17 Thread Frank Warmerdam
On 11-02-17 08:41 AM, Mohammed Rashad wrote: Install error; console log bin/sh /home/rashadkm/gdal-1.5.0/libtool ... -- Thanks && Regards Rashad Rashad, GDAL 1.5.0 is quite old, and not even the newest of that stable branch. Try GDAL 1.8.0. If the problem persists I'm sure we would be gla

[gdal-dev] gdal install error version 1.5.0

2011-02-17 Thread Mohammed Rashad
Install error; console log bin/sh /home/rashadkm/gdal-1.5.0/libtool --mode=compile --tag=CXX arm-linux-androideabi-g++ -g -O2 -Wall -I/home/rashadkm/gdal-1.5.0/port -I/home/rashadkm/gdal-1.5.0/gcore -I/home/rashadkm/gdal-1.5.0/alg -I/home/rashadkm/gdal-1.5.0/ogr -I/home/rashadkm/gdal-1.5.0/ogr/o

[gdal-dev] Re: gdal android

2011-02-17 Thread Mohammed Rashad
here is my new error log cpl_strtod.cpp: In function 'void CPLReplacePointByLocalePoint(char*, char)': cpl_strtod.cpp:200: error: 'struct lconv' has no member named 'decimal_point' cpl_strtod.cpp:201: error: 'struct lconv' has no member named 'decimal_point' cpl_strtod.cpp:204: error: 'struct lconv

[gdal-dev] gdal android

2011-02-17 Thread Mohammed Rashad
I am using android-ndk-r4-crystax. gdal is building proprerly but I am getting error when linking gdal with my application here is my error log /home/rashadkm/android/android-ndk-r4-crystax/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: /home/ra