Re: [gdal-dev] Raster attribute tables in GDAL?

2015-05-20 Thread Even Rouault
Le mercredi 20 mai 2015 15:57:38, jramm a écrit : > Does GDAL have any support for writing ESRI-style raster attribute tables? > > These are the .vat.dbf files that often accompany geotiffs and other > formats I wasn't particularly aware of those sidecar files, but looking a bit I found one

Re: [gdal-dev] JP2OpenJPEG Driver Reads 4th Band of NITF as Alpha

2015-05-20 Thread Claire Porter
Even, Sorry, I did not read your email closely enough. I see it has been fixed. Thanks, Claire On Wed, May 20, 2015 at 9:29 AM, Claire Porter wrote: > Even and James, > > Thanks for the suggestions. Even's advice about converting first to a > VRT, modifying the Color Interpretation of the 4

Re: [gdal-dev] JP2OpenJPEG Driver Reads 4th Band of NITF as Alpha

2015-05-20 Thread Claire Porter
Even and James, Thanks for the suggestions. Even's advice about converting first to a VRT, modifying the Color Interpretation of the 4th band, and then using gdalwarp worked perfectly. In terms of the larger picture, is this a a bug I should report to OpenJPEG or is it something best handled her

[gdal-dev] Raster attribute tables in GDAL?

2015-05-20 Thread jramm
Does GDAL have any support for writing ESRI-style raster attribute tables? These are the .vat.dbf files that often accompany geotiffs and other formats -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Raster-attribute-tables-in-GDAL-tp5206653.html Sent from the GDAL -

Re: [gdal-dev] GeoPackage vector driver fails if layer name contains chars not compatible with SQLite

2015-05-20 Thread Even Rouault
Le mercredi 20 mai 2015 14:41:23, Stefan Keller a écrit : > Salut Even > > Thanks and sorry me again. > We tried to compile GDAL 2.0.0beta1 version and still have problems. > Perhaps our config params are wrong? No they are fine > $ ogr2ogr -f 'GPKG' out.gpkg WFS:http://maps.zh.ch/wfs/TbaBaustel

Re: [gdal-dev] GeoPackage vector driver fails if layer name contains chars not compatible with SQLite

2015-05-20 Thread Stefan Keller
Salut Even Thanks and sorry me again. We tried to compile GDAL 2.0.0beta1 version and still have problems. Perhaps our config params are wrong? - --with-pcraster=no - --with-jasper=no - --with-grib=no - --with-vfk=no - --with-hide-internal-symbols - --with-xerces -Stefan $ ogr2ogr --version GDA

Re: [gdal-dev] gdalwarp problems with MODIS L1B

2015-05-20 Thread Even Rouault
Le mercredi 20 mai 2015 12:34:57, Michael Sumner a écrit : > Hi Even, that is excellent, thank you. > > I have one question about the resampling workaround: > > On Wed, 20 May 2015 at 19:34 Even Rouault > > wrote: > > Mike, > > > > > By my reading of https://trac.osgeo.org/gdal/wiki/rfc4_geolo

Re: [gdal-dev] gdalwarp problems with MODIS L1B

2015-05-20 Thread Michael Sumner
Hi Even, that is excellent, thank you. I have one question about the resampling workaround: On Wed, 20 May 2015 at 19:34 Even Rouault wrote: > Mike, > > > > > By my reading of https://trac.osgeo.org/gdal/wiki/rfc4_geolocate that > means > > the Geolocation tag from gdalinfo should have a PIXEL_

Re: [gdal-dev] gdalwarp problems with MODIS L1B

2015-05-20 Thread Even Rouault
Mike, > > By my reading of https://trac.osgeo.org/gdal/wiki/rfc4_geolocate that means > the Geolocation tag from gdalinfo should have a PIXEL_STEP and LINE_STEP of > 5, and if I do this I get a much better result but it's still not right. I've just committed a patch in trunk that should put more

Re: [gdal-dev] GeoPackage vector driver fails if layer name contains chars not compatible with SQLite

2015-05-20 Thread Even Rouault
Le mercredi 20 mai 2015 11:13:53, Stefan Keller a écrit : > Hi Even > > Just another small issue: GPKG can't handle pre-existing fid column name: > >ogr2ogr -f "GPKG" outfile2.gpkg infile.geojson -nln layer_a > > ERROR 1: sqlite3_exec(ALTER TABLE layer_a ADD COLUMN fid INTEGER) failed: > duplic a

Re: [gdal-dev] GeoPackage vector driver fails if layer name contains chars not compatible with SQLite

2015-05-20 Thread Stefan Keller
Hi Even Just another small issue: GPKG can't handle pre-existing fid column name: >ogr2ogr -f "GPKG" outfile2.gpkg infile.geojson -nln layer_a ERROR 1: sqlite3_exec(ALTER TABLE layer_a ADD COLUMN fid INTEGER) failed: duplic ate column name: fid --S. 2015-05-18 18:50 GMT+02:00 Stefan Keller : >

[gdal-dev] gdalwarp problems with MODIS L1B

2015-05-20 Thread Michael Sumner
Hello, I'm having problems with gdalwarp-ing a MODIS L1B calibrated radiance dataset. This file contains 31 SDS subdatasets, the first two here are Latitude and Longitude arrays and the third is the reflectance data EV_1KM_RefSB. The geolocation arrays have a pixel and line for every fifth pixel/l

Re: [gdal-dev] help about the GDAL efficiency

2015-05-20 Thread Even Rouault
Xia Lang, > > > // create out file > eDT = GDALDataType(iBand1->GetRasterDataType()); > GDALDriver *hDriver = (GDALDriver *)GDALGetDriverByName( "GTiff" ); > CPLAssert( hDriver != NULL ); > hDstDS = (GDALDataset *)GDALCreate( hDriver, "G:\\data\\TM\\out.tif", > nPixels, nLines, GDALGetRaste

Re: [gdal-dev] JP2OpenJPEG Driver Reads 4th Band of NITF as Alpha

2015-05-20 Thread Even Rouault
Le mercredi 20 mai 2015 01:06:27, EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE a écrit : > Claire, > About a year ago I had a similar issue reading NAIP imagery. I was able to > use Global Mapper to convert the images. After that MapServer using GDAL > could serve the images correctly. I don't k