[gdal-dev] problem with gdal 1.9 and libkml 1.2

2012-04-03 Thread Massimo Costantini
Hi, I try to compile gdal 1.9.0 with libkml 1.2.0 but I have some problem. G++ write out this error: ogrlibkmldatasource.cpp: In member function 'int OGRLIBKMLDataSource::OpenKml(const char*, int)': ogrlibkmldatasource.cpp:817: warning: converting to non-pointer type 'int' from NULL ogrlibkmldata

Re: [gdal-dev] problem with gdal 1.9 and libkml 1.2

2012-04-03 Thread Dmitry Baryshnikov
03.04.2012 11:08, Massimo Costantini ???: Hi, I try to compile gdal 1.9.0 with libkml 1.2.0 but I have some problem. G++ write out this error: ogrlibkmldatasource.cpp: In member function 'int OGRLIBKMLDataSource::OpenKml(const char*, int)': ogrlibkmldatasource.cpp:817: warning: convertin

Re: [gdal-dev] problem with gdal 1.9 and libkml 1.2

2012-04-03 Thread Mateusz Loskot
On 3 April 2012 08:08, Massimo Costantini wrote: > Hi, > > I try to compile gdal 1.9.0 with libkml 1.2.0 http://trac.osgeo.org/gdal/wiki/LibKML Best regards, -- Mateusz Loskot, http://mateusz.loskot.net ___ gdal-dev mailing list gdal-dev@lists.osgeo.o

Re: [gdal-dev] Most optimal way of using tiles ?

2012-04-03 Thread Oyvind Idland
That works, thank you ! -- oyvind On Mon, Apr 2, 2012 at 3:57 PM, Saâd HESSANE wrote: > -- Forwarded message -- > From: Saâd HESSANE > Date: Mon, 2 Apr 2012 15:56:27 +0200 > Subject: Re: [gdal-dev] Most optimal way of using tiles ? > To: Oyvind Idland > > Hy, > > you can use "

[gdal-dev] Masking issue

2012-04-03 Thread Oyvind Idland
Hello, I got one problem: I have a bunch of uncompressed TIFF tiles, which I am converting to compressed GeoTiff. I would like to mask away the rgb(0,0,0) values. However, when I use NODATA on my VRT dataset, there are JPEG artifacts around the edges when rendering. Is it possible to generate a

Re: [gdal-dev] Masking issue

2012-04-03 Thread Chaitanya kumar CH
Oyvind, One easy method is to create a vrt file with an alpha band for the original tiff. You can use this to create a compressed raster file that will be transparent at nodata pixels. gdalbuildvrt -addalpha http://www.gdal.org/gdalbuildvrt.html On Tue, Apr 3, 2012 at 5:26 PM, Oyvind Idland wro

[gdal-dev] gdal error in multi-core process

2012-04-03 Thread Giuseppe Amatulli
> HI > i'm trying to use gdal*   in multi-core pc, running the same script > for 2 in pendent folders containing several geotif  files. > The script return no error if it run in one terminal ( for file in > 2002/*.tif  2007/*.tif  ; do  bash myscript.sh  $file ; done  ) > Instead  It gives the down

[gdal-dev] Warning 1: Multi-column primary key in 'raster_columns' detected but not supported.

2012-04-03 Thread Peter Tittmann
Hi, Using PostGIS 2 and gdal 1.7.3 Trying to run a simple ogr2ogr: ogr2ogr -skipfailures -f "PostgreSQL" PG:"dbname=afri" us9805_dni.shp returns: Warning 1: Multi-column primary key in 'raster_columns' detected but not supported. ERROR 1: AddGeometryColumn failed for layer us9805_dni, layer c

Re: [gdal-dev] gdal error in multi-core process

2012-04-03 Thread Frank Warmerdam
On Tue, Apr 3, 2012 at 10:39 AM, Giuseppe Amatulli wrote: >> Error which happen in a random way. >> >> NDVI_TOA >> Input file size is 5000, 5000 >> 0...10...20...30...40...50...60...70...80...ERROR 1: >> TIFFFillStrip:Read error at scanline 4479; got 2040 bytes, expected >> 1 >> ERROR 1: TIFFR

Re: [gdal-dev] Masking issue

2012-04-03 Thread Oyvind Idland
Hi Chaitanya, thanks, i'll try that when I get back to it tomorrow. But: I guess I will have to add -vrtnodata aswell, hopefully it will add pixels to the mask ? I have already converted all the source TIFFs to lossless compressed GeoTiff (which don't produce undesired JPEG artifacts), and made

Re: [gdal-dev] gdal error in multi-core process

2012-04-03 Thread Giuseppe Amatulli
Hi thanks for the fast replay. yes my mistake, there was the same temp.tif file in read/write from the different processors. Thanks Ciao Ciao > > Giuseppe, > > You haven't offered too much detail of what myscript.sh does, but > I'm guessing you use a fixed name for temporary files (ie. temp.tif)

[gdal-dev] MrSID won't compile with GDAL 1.9 - libgeotiff issue

2012-04-03 Thread Gavin Fleming
Hi I've just upgraded to gdal 1.9 on Ubuntu 11.10. When I tried to compile MrSID support (which was working fine in 1.8) I get this: checking for XTIFFClientOpen in -lgeotiff... no configure: error: libgeotiff is required to build GDAL MrSID driver with both these MrSID versions: gdal-mrsid-

Re: [gdal-dev] MrSID won't compile with GDAL 1.9 - libgeotiff issue

2012-04-03 Thread Frank Warmerdam
On Tue, Apr 3, 2012 at 2:07 PM, Gavin Fleming wrote: > Hi > > I've just upgraded to gdal 1.9 on Ubuntu 11.10. When I tried to compile > MrSID support (which was working fine in 1.8) I get this: > > checking for XTIFFClientOpen in -lgeotiff... no > configure: error: libgeotiff is required to build

Re: [gdal-dev] MrSID won't compile with GDAL 1.9 - libgeotiff issue

2012-04-03 Thread Even Rouault
Le mardi 03 avril 2012 23:07:51, Gavin Fleming a écrit : > Hi > > I've just upgraded to gdal 1.9 on Ubuntu 11.10. When I tried to compile > MrSID support (which was working fine in 1.8) I get this: > > checking for XTIFFClientOpen in -lgeotiff... no > configure: error: libgeotiff is required to b

Re: [gdal-dev] MrSID won't compile with GDAL 1.9 - libgeotiff issue

2012-04-03 Thread Etienne Tourigny
I am able to compile MrSID SDK with gdal-1.9 (custom install, not ubuntugis) in Ubuntu 11.10, so probably something different in the ubuntugis install of gdal, as suggested bu Even. On Tue, Apr 3, 2012 at 6:31 PM, Even Rouault wrote: > Le mardi 03 avril 2012 23:07:51, Gavin Fleming a écrit : >> H

Re: [gdal-dev] Warning 1: Multi-column primary key in 'raster_columns' detected but not supported.

2012-04-03 Thread Chaitanya kumar CH
Peter, Perhaps you don't have permissions to write to the geometry_columns table. Unfortunately the PG driver does not convey the error message from the database. On Tue, Apr 3, 2012 at 11:19 PM, Peter Tittmann wrote: > Hi, > > Using PostGIS 2 and gdal 1.7.3 > > Trying to run a simple ogr2ogr: