[gdal-dev] GDAL alpha channels

2012-05-28 Thread Craig Bruce
I have run into a problem using GDAL to read TIFF images with a alpha channels. GDAL returns the source TIFF sample values verbatim regardless of whether the alpha channel is associated (pre-multiplied) or unassociated within the TIFF image samples. (In each alpha model, the same pixel value with

Re: [gdal-dev] how to convert shapefile to netcdf?

2012-05-28 Thread pcreso
I guess somewhat off topic for a devel list but my 02c I'd use ogr2ogr to convert the shapefile to a GMT (Generic Mapping Tools) format vector file & use GMT to create the (COARDS compliant) netCDF grid file from the vector data. GMT has several approaches possible, including triangulation,

Re: [gdal-dev] how to convert shapefile to netcdf?

2012-05-28 Thread Chris Barker
On Mon, May 28, 2012 at 10:16 AM, Chao YUE wrote: > I have a shapefile of boreal foest (which further contains some ecoregion > types) in North America and I want to like convert it to a NetCDF file (or > numpy masked array) Well, what's in the shape file? polygons? You'll need to know more abou

[gdal-dev] how to convert shapefile to netcdf?

2012-05-28 Thread Chao YUE
Dear all, I have a shapefile of boreal foest (which further contains some ecoregion types) in North America and I want to like convert it to a NetCDF file (or numpy masked array) with a desired spatial resolution (let's say 0.5 degree) and then use this information to extract corresponding data fr

Re: [gdal-dev] How to make VRT offsite areas white?

2012-05-28 Thread Even Rouault
Selon Jukka Rahkonen : > Even Rouault mines-paris.org> writes: > > > > - cheat a bit and create a white image that you add as the first position > in > > your VRT. > > > > This can be a single pixel image that you artifically expand to full VRT > size, > > like this : > > > > > >>

Re: [gdal-dev] How to make VRT offsite areas white?

2012-05-28 Thread Jukka Rahkonen
Even Rouault mines-paris.org> writes: > - cheat a bit and create a white image that you add as the first position in > your VRT. > > This can be a single pixel image that you artifically expand to full VRT size, > like this : > > >ySize="replace_by_vrt_y_size"/> This was the u

Re: [gdal-dev] How to make VRT offsite areas white?

2012-05-28 Thread Rahkonen Jukka
Even Rouault wrote: > > Selon Jukka Rahkonen : > > > Hi, > > > > I thought this would be easy but it was not. > > > > I have a mosaic of images which do not fill the whole > bounding box of the > > area. > > I made a .VRT file the images and converted the virtual > raster into geotiff. > > No

Re: [gdal-dev] GDAL with mdb support on Ubuntu 12.04

2012-05-28 Thread Luca Casagrande
Il 28/05/2012 15:41, Even Rouault ha scritto: Hire is the full config.log: http://ubuntuone.com/3HlRqtTs0nu4NeguX2eIG4 I have had a look at this config.log and found that in the step where the configure script tries to check the libjvm, a non-expected string "missing" is placed on the gcc line

Re: [gdal-dev] gdal opencl support

2012-05-28 Thread Even Rouault
Selon Yogesh Dahiya : > Does gdal uses opencl for different resampling algorithms. > > If yes how can it be configured to use opencl? > The warping algorithms (as in gdalwarp) can use opencl acceleration provided that you build GDAL with support for it. Currently, the build support is only done f

Re: [gdal-dev] ogr sql issue

2012-05-28 Thread Murat Beyhan
Dear Rahkohen, You are right it works fine now. Thanks for quick reply. :) On Mon, 2012-05-28 at 13:32 +, Jukka Rahkonen wrote: > "integer","real","real","real" Murat BEYHAN Jeofizik Y.Müh. T.C. Başbakanlık Afet ve Acil Durum Yönetimi Başkanlığı Deprem Dairesi Başkanlığı Eskişehir Yolu 12

Re: [gdal-dev] GDAL with mdb support on Ubuntu 12.04

2012-05-28 Thread Even Rouault
> > Hire is the full config.log: > http://ubuntuone.com/3HlRqtTs0nu4NeguX2eIG4 I have had a look at this config.log and found that in the step where the configure script tries to check the libjvm, a non-expected string "missing" is placed on the gcc line, causing it to fail. I don't know where thi

Re: [gdal-dev] How to make VRT offsite areas white?

2012-05-28 Thread Even Rouault
Selon Jukka Rahkonen : > Hi, > > I thought this would be easy but it was not. > > I have a mosaic of images which do not fill the whole bounding box of the > area. > I made a .VRT file the images and converted the virtual raster into geotiff. > Now > I have a nice mosaic but it has black boxes in

Re: [gdal-dev] ogr sql issue

2012-05-28 Thread Jukka Rahkonen
Murat Beyhan deprem.gov.tr> writes: > > Dear All, > > I would like to create a KML file using ogr2ogr with using following but > sql statement part does not filter data from csv file and draw all > points on the map, please help me what I'm doing wrong. > > the code I used as follows > > ogr2

Re: [gdal-dev] unwanted transparency of black color produced by gdalwarp

2012-05-28 Thread Jukka Rahkonen
N D gmail.com> writes: > > > Hello,I am trying to crop and warp the enroute chart tif from FAA's http://aeronav.faa.gov/Enroute/04-05-2012/ENR_H01.zip package with the following commands: 1. gdal_translate -of vrt -srcwin  2203 204 21692 7591 ENR_H01.tif ENR_H01.vrt 2. gdalwarp -wm 1000 -t_sr

[gdal-dev] How to make VRT offsite areas white?

2012-05-28 Thread Jukka Rahkonen
Hi, I thought this would be easy but it was not. I have a mosaic of images which do not fill the whole bounding box of the area. I made a .VRT file the images and converted the virtual raster into geotiff. Now I have a nice mosaic but it has black boxes in the areas where I do not have source dat

[gdal-dev] ogr sql issue

2012-05-28 Thread Murat Beyhan
Dear All, I would like to create a KML file using ogr2ogr with using following but sql statement part does not filter data from csv file and draw all points on the map, please help me what I'm doing wrong. the code I used as follows ogr2ogr -f "KML" "villages.kml" "villages.csv" -dsco NameField

Re: [gdal-dev] GDAL with mdb support on Ubuntu 12.04

2012-05-28 Thread Luca Casagrande
Il 28/05/2012 14:55, Even Rouault ha scritto: If I try without it, I have got this error message: --with-java=yes --with-mdb=yes configure: error: "--with-jvm-lib must be specified." Luca, I've just installed a i386 ubuntu 12.04 VM and installed openjdk-7-jdk in it. "./configure --with-jav

Re: [gdal-dev] GDAL with mdb support on Ubuntu 12.04

2012-05-28 Thread Even Rouault
> If I try without it, I have got this error message: > > --with-java=yes --with-mdb=yes > > configure: error: "--with-jvm-lib must be specified." Luca, I've just installed a i386 ubuntu 12.04 VM and installed openjdk-7-jdk in it. "./configure --with-java --with-mdb" just works out of the box, s

[gdal-dev] unwanted transparency of black color produced by gdalwarp

2012-05-28 Thread N D
Hello, I am trying to crop and warp th**e enroute chart tif from FAA's http://aeronav.faa.gov/Enroute/04-05-2012/ENR_H01.zip package with the following commands: 1. gdal_translate -of vrt -srcwin 2203 204 21692 7591 ENR_H01.tif ENR_H01.vrt 2. gdalwarp -wm 1000 -t_srs EPSG:3395 -srcnodata 0 -dst

Re: [gdal-dev] Heads-up re: poppler/pdf on Windows

2012-05-28 Thread Jeff McKenna
On 12-05-25 6:16 PM, Even Rouault wrote: > Hi Jeff > > Or use trunk or latest state of 1.9 branch ;-) . 1.9 branch has been updated > with poppler 0.20 support just a bit after 1.9.1, but it will be in 1.9.2. See > http://trac.osgeo.org/gdal/ticket/4668 if you need to patch. For 0.20 support > you

[gdal-dev] gdal opencl support

2012-05-28 Thread Yogesh Dahiya
Does gdal uses opencl for different resampling algorithms. If yes how can it be configured to use opencl? If No how can opencl be integrated in gdal? Thanks ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listin

Re: [gdal-dev] MapInfo Geometry Precision Issues

2012-05-28 Thread Luca Sigfrido Percich
Hi all, MapInfo stores coordinates in 32 bit integers (binary tab format), and converts them back into floating point when loading data. The conversion is done taking the boundary into account. The greater the boundary, the lower the precision. That's why lat/lon coordinates are stored with great