Re: [gdal-dev] Polygon intersection failure

2018-07-17 Thread Even Rouault
On mardi 17 juillet 2018 14:33:42 CEST Jon Morris wrote: > Hello all, > > I'm having a problem with layer intersection and am not sure if I'm using > the options correctly or if there is some functionality missing. I'm using > GDAL 2.2.0 with Python 2.7. > > I've got a layer of UK postcodes and a

[gdal-dev] Polygon intersection failure

2018-07-17 Thread Jon Morris
Hello all, I'm having a problem with layer intersection and am not sure if I'm using the options correctly or if there is some functionality missing. I'm using GDAL 2.2.0 with Python 2.7. I've got a layer of UK postcodes and a layer of UK buildings; when I run postcode_lyr.Intersection(buildin

Re: [gdal-dev] gdal-1.11.3 to gdal-2.3.1 compatibility

2018-07-17 Thread Julian Zeidler
Hi Gane, it requires only minor modifications. In my Code I have a FLAG (HAVE_GDAL2) which makes it compile against both versions. The changes are along the lines of: #ifdef HAVE_GDAL2      GDALDataset *ogrDataset; #else      OGRDataSource* ogrDataset; #endif #ifdef HAVE_GDAL2         GDALAll

[gdal-dev] gdal-1.11.3 to gdal-2.3.1 compatibility

2018-07-17 Thread Gane R
Hi all, Is gdal-1.11.3, opening vector data set, reading OGR features code compatible with gdal-2.3.1 code or any major changes in accessing OGR features ? Thanks Gane ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/li

[gdal-dev] gdal_merge unexpectedly setting nodata to zeros

2018-07-17 Thread thibautvoirand
Hi all, I am trying to merge 4 rasters containing nodata pixels using gdal_merge in a single file with separate bands. I use - as nodata value. In the output file, the first band has the correct nodata pixels (-) but the following 3 bands have some zeros, in pixels that were nodata in the