[gdal-dev] Problem with TopoJSON in 3.4.0 c/w 3.2.2

2021-12-03 Thread Simon Eves
I just tested our stuff against 3.4.0 and immediately hit a problem with one of our standard example files, which I thought was a GeoJSON, but it's actually a TopoJSON. 3.4.0 seems to report the field "id" twice, and therefore we try to create that column twice, and the import aborts due to the du

Re: [gdal-dev] sqlite3_prepare_v2 no such function: envelope

2021-12-03 Thread Richard Greenwood
Well that explains it! ogrinfo -dialect sqlite -sql "select spatialite_version()" parks.shp no such function: spatialite_version Thanks so much! On Fri, Dec 3, 2021 at 12:27 PM Rahkonen Jukka (MML) < jukka.rahko...@maanmittauslaitos.fi> wrote: > Hi, > > > > Check the spatialite version: > >

Re: [gdal-dev] sqlite3_prepare_v2 no such function: envelope

2021-12-03 Thread Rahkonen Jukka (MML)
Hi, Check the spatialite version: ogrinfo -dialect sqlite -sql "select spatialite_version()" parks.shp -Jukka Rahkonen- Lähettäjä: gdal-dev Puolesta Richard Greenwood Lähetetty: perjantai 3. joulukuuta 2021 21.22 Vastaanottaja: GDAL List Aihe: [gdal-dev] sqlite3_prepare_v2 no such function: e

[gdal-dev] sqlite3_prepare_v2 no such function: envelope

2021-12-03 Thread Richard Greenwood
I have an ogr2ogr statement that works in OGR 3.3.3 but not 3.4.0. The statement is: ogr2ogr out parks.shp -dialect sqlite -sql "select envelope(geometry) from parks" And the error in 3.4.0 is ERROR 1: In ExecuteSQL(): sqlite3_prepare_v2 no such function: envelope Is this expected? I'm on two

Re: [gdal-dev] PGCLIENTENCODING in ogr2ogr (and QGIS)

2021-12-03 Thread Even Rouault
Instead of turning Postgres client_encoding to LATIN1 (which won't work here because -f PostgreSQL goes through the CreateDataSource() OGR API, which will ignore destination dataset open options provided with -doo) , I would rather set the shapefile encoding with -oo ENCODING=ISO-8859-1,then th

Re: [gdal-dev] PGCLIENTENCODING in ogr2ogr (and QGIS)

2021-12-03 Thread matteo
Hi Rahkonen, sorry for the delay. The command, built with Processing in QGIS using the GdalUtils utility is at the end: ogr2ogr -f PostgreSQL "PG:dbname='db' host=myhost port=myport user='myuser' password='mypassword' sslmode=disable schemas=myschema" shapefile.shp --config PG_USE_COPY YES -

[gdal-dev] Help on DWG data extraction with GDAL/ODA

2021-12-03 Thread Maxime Colmant
Hello, I'm currently playing with GDAL and ODA to extract the data from a DWG file. I would like to extract the block attributes and I did not find any solution. I tried to use the DWG_INLINE_BLOCKS but nothing linked to these attributes are extracted. I'm not sure if it is supported right now. I