Re: [gdal-dev] JPEG compressed COGs nodata

2022-07-25 Thread Matt.Wilkie
For those not wanting or needing to take the processing hit of running nearblack, use gdalwarp and -dstalpha to create the alpha channel, and use intermediate VRT to save space and more time. Something like this: gdalwarp -srcnodata 0 -dstalpha -of vrt source.tif xx-interim.vrt gdal_translate -

Re: [gdal-dev] New behaviour of "PROMOTE_TO_MULTI" ?

2022-07-25 Thread Hugues François
Hi, I guess you should either => drop the created table prior to launch the ogr2ogr command with the -nlt PROMOTE_TO_MULTI switch => or maually alter the existing table: ALTER TABLE schema.table ALTER COLUMN geom TYPE geometry(MultiPolygon, SRID) using ST_MULTI(geom) HTH, Hug De: "Rich

Re: [gdal-dev] New behaviour of "PROMOTE_TO_MULTI" ?

2022-07-25 Thread Richard Greenwood
Have you tried -nlt MultiPolygon? On Mon, Jul 25, 2022 at 2:54 AM Bo Victor Thomsen < bo.victor.thom...@gmail.com> wrote: > I have a MapInfo .tab file containing polygons, both simple and > multipolygons (and only polygons). > > Using this command: (all ogr2ogr commands are one-liners, but exampl

[gdal-dev] Compiling GDAL for Linux and enabling PGeo format

2022-07-25 Thread andy
Hi, I have installed unixodbc and odbc-mdbtools: ``` sudo apt-get install unixodbc odbc-mdbtools ``` I compile myself GDAL in my Linux machine, but I must use an old 2.4.x version. Currently I configure it in this way ``` ./configure --prefix=/usr/local --with-sqlite3=/usr/local --with-spatiali

[gdal-dev] New behaviour of "PROMOTE_TO_MULTI" ?

2022-07-25 Thread Bo Victor Thomsen
I have a MapInfo .tab file containing polygons, both simple and multipolygons (and only polygons). Using this command: (all ogr2ogr commands are one-liners, but examples are split for lucidity) ogr2ogr   --config PG_USE_COPY yes   -progress   -lco OVERWRITE=YES   -dim XY   -f "PostgreSQL" PG: