Re: [gdal-dev] gdal2tiles error

2017-08-23 Thread Grégory Bataille
Hello, In your stack trace I gather you are using GDAL 1? If that's the case, you should use the latest gdal 2.2). I'm quite sure the issue is fixed there On a mac, look for the osgeo4mac brew tap and install the gdal2 package. I think it's up-to-date. Otherwise you should retrieve gdal2tiles.py

[gdal-dev] gdal2tiles error

2017-08-23 Thread MUTLU OZDOGAN
Dear developers, I have an 8-bit geotiff image that contains land cover classification results. The dimensions of the image is 1000 x 1000 pixels. I am trying to generate tiles with 21 zoom levels using the gdal2tiles.py script so that we can display the results on a website. In the first

[gdal-dev] How to set layer name in SQL query?

2017-08-23 Thread Denis Rykov
When I perform the following command: $ ogrinfo -dialect SQLITE -sql "SELECT COUNT(*) summary FROM Export_Output_4" Export_Output_4.shp I get result: INFO: Open of `Export_Output_4.shp' using driver `ESRI Shapefile' successful. Layer name: SELECT Geometry: None Feature Count: 1 Layer SRS

Re: [gdal-dev] vsigzip woes with hgt.gz files

2017-08-23 Thread Vincent Schut
On 08/23/2017 04:20 PM, Even Rouault wrote: On mercredi 23 août 2017 16:01:05 CEST Vincent Schut wrote: > Hi all, > > I'm trying to get the /vsigzip/ driver working on srtm .hgt.gz files, > but I don't succeed: > > gdalinfo /vsigzip/N37W105.hgt.gz > ERROR 4: `/vsigzip/N37W105.hgt.gz' not

Re: [gdal-dev] vsigzip woes with hgt.gz files

2017-08-23 Thread Even Rouault
On mercredi 23 août 2017 16:01:05 CEST Vincent Schut wrote: > Hi all, > > I'm trying to get the /vsigzip/ driver working on srtm .hgt.gz files, > but I don't succeed: > > gdalinfo /vsigzip/N37W105.hgt.gz > ERROR 4: `/vsigzip/N37W105.hgt.gz' not recognized as a supported file > format. > gdalinfo

[gdal-dev] vsigzip woes with hgt.gz files

2017-08-23 Thread Vincent Schut
Hi all, I'm trying to get the /vsigzip/ driver working on srtm .hgt.gz files, but I don't succeed: gdalinfo /vsigzip/N37W105.hgt.gz ERROR 4: `/vsigzip/N37W105.hgt.gz' not recognized as a supported file format. gdalinfo failed - unable to open '/vsigzip/N37W105.hgt.gz'. This is with a

Re: [gdal-dev] Schema of gpkg_metadata in Geopackage

2017-08-23 Thread Even Rouault
On mercredi 23 août 2017 13:33:07 CEST Rahkonen Jukka (MML) wrote: > Hi, > > GDAL 2.3-dev creates gpkg_metadata table as > > CREATE TABLE gpkg_metadata (id INTEGER CONSTRAINT m_pk PRIMARY KEY ASC NOT > NULL UNIQUE,md_scope TEXT NOT NULL DEFAULT 'dataset',md_standard_uri TEXT > NOT NULL,mime_type

[gdal-dev] Schema of gpkg_metadata in Geopackage

2017-08-23 Thread Rahkonen Jukka (MML)
Hi, GDAL 2.3-dev creates gpkg_metadata table as CREATE TABLE gpkg_metadata (id INTEGER CONSTRAINT m_pk PRIMARY KEY ASC NOT NULL UNIQUE,md_scope TEXT NOT NULL DEFAULT 'dataset',md_standard_uri TEXT NOT NULL,mime_type TEXT NOT NULL DEFAULT 'text/xml',metadata TEXT NOT NULL DEFAULT ''); In GPKG

Re: [gdal-dev] Impossible to open an ASRP dataset in java when gdalinfo/translate commands works

2017-08-23 Thread Even Rouault
On mercredi 23 août 2017 03:32:41 CEST Assemat Pierre-Jean wrote: > Dear all, > > I work with GDAL 2.2.1 on Windows 7. > > When I try to open an ASRP dataset in java with the following code : > Dataset resu = org.gdal.gdal.gdal.Open(filenameOrURL, > .gdal.gdalconst.gdalconst.GA_ReadOnly) ; >

[gdal-dev] Impossible to open an ASRP dataset in java when gdalinfo/translate commands works

2017-08-23 Thread Assemat Pierre-Jean
Dear all, I work with GDAL 2.2.1 on Windows 7. When I try to open an ASRP dataset in java with the following code : Dataset resu = org.gdal.gdal.gdal.Open(filenameOrURL, .gdal.gdalconst.gdalconst.GA_ReadOnly) ; I have the following message : ERROR 1: ISO8211 record leader appears