Re: [gdal-dev] ADBC driver and DuckDB on Windows

2025-07-12 Thread Seth G via gdal-dev
Thanks Even and Mike. Using GDAL master works (I presume due to this PR - https://github.com/OSGeo/gdal/pull/12635). Working example: ``` conda create --yes --name gdal-master conda activate gdal-master conda install -c gdal-master -c conda-forge gdal-master::gdal $env:Path = "D:\Tools\li

[gdal-dev] ADBC driver and DuckDB on Windows

2025-07-12 Thread Seth G via gdal-dev
Hi all, I'm wondering if anyone has got this working on Windows? With a test.db the following works fine on a full Linux GDAL Docker image: docker run -it --name gdal-ubuntu -v D:/Data/GDAL:/data ghcr.io/osgeo/gdal:ubuntu-full-3.11.0 /bin/bash ogr2ogr out.gpkg test.db >From the docs https://gd

Re: [gdal-dev] Problem generating a tif, vrt and displaying it via mapserver

2025-05-30 Thread Seth G via gdal-dev
rocessing time (msLoadMap not > incl.): 0.003s: /usr/lib/cgi-bin/mapserv > [Thu May 29 12:38:19.460707 2025] [cgi:error] [pid 848556] [client > 98.97.22.100:40842] AH01215: msFreeMap(): freeing map at 0x5585ff1f65e0.: > /usr/lib/cgi-bin/mapserv > > -Steve > > On 5

Re: [gdal-dev] Problem generating a tif, vrt and displaying it via mapserver

2025-05-27 Thread Seth G via gdal-dev
Hi Steve, Anything in the MapServer logs? And what is the actual network request to MapServer? You do have a "visible: false" set in your OpenLayers code - I presume this gets changed by a legend at some point. Seth -- mastodon: @geographika@mastodon.social On Mon, May 26, 2025, at 10:28 PM,

Re: [gdal-dev] Removing Trac wiki content

2024-09-26 Thread Seth G via gdal-dev
Hi, I'm fixing some of the broken OSGeo Live links. The GDAL quickstart (https://live.osgeo.org/en/quickstart/gdal_quickstart.html) includes a link to the removed wiki: > Read more about this in the RasterTutorial > https://trac.osgeo.org/gdal/wiki/UserDocs/RasterProcTutorial. Is there an equ

Re: [gdal-dev] FileGDBs and FIDs of -21121

2024-08-27 Thread Seth G via gdal-dev
Thanks Even! I got as far as setting up a test case in MapServer and starting the debugger before your fix arrived :-) As an aside, is there a reason -21121 was chosen as a special value? Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Tue, Aug 27, 202

Re: [gdal-dev] FileGDBs and FIDs of -21121

2024-08-27 Thread Seth G via gdal-dev
assign a FID by the driver. Basically most formats will > struggle with negative or null FIDs > > What is perhaps missing in MapServer is a FORMATOPTION "SET_FID=FALSE" > for drivers such as FileGDB  (or "FID_VALID_MIN" and "FIX_VALID_MAX" ?)  > to limit the sc

[gdal-dev] FileGDBs and FIDs of -21121

2024-08-27 Thread Seth G via gdal-dev
Hi all, I'm using a GDAL within MapServer to export features as a FileGDB. Using the following OUTPUTFORMAT: OUTPUTFORMAT NAME "FileGDB" DRIVER "OGR/OpenFileGDB" MIMETYPE "application/x-ogc­filegdb" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=

[gdal-dev] ArcGIS REST API TMS Mini-Driver with non-Web Mercator Services

2024-03-08 Thread Seth G via gdal-dev
Hi all, I've been trying to set up the GDAL WMS driver to work with an ArcGIS tile service, as described at https://gdal.org/drivers/raster/wms.html#arcgis-rest-api Everything works fine for Web Mercator services, but I'm not able to get this to work with a different projection. I've used the

Re: [gdal-dev] Call for discussion on RFC 92 text: WKB Only geometries

2023-01-31 Thread Seth G
Hi Even, Is it correct to say the workflow for OGR layer in MapServer is similar to that of QGIS? OGR features / geometries are loaded, and then converted into MapServer shapes using the OGRGeometry function [1]. Would using WKB here be any more performant? The PostGIS driver already has code to

[gdal-dev] MSSQL Driver and Bulk Copy Drivers

2022-12-07 Thread Seth G
Hi all, >From the Microsoft docs at >https://learn.microsoft.com/en-us/sql/relational-databases/native-client/applications/installing-sql-server-native-client?view=sql-server-ver16: > The SQL Server Native Client (often abbreviated SNAC) has been removed from > SQL Server 2022 (16.x) and SQL Se

Re: [gdal-dev] CSV headers with extra comma

2019-10-12 Thread Seth G
Thanks for the clarification Even. Issue opened at https://github.com/OSGeo/gdal/issues/1929 so will hopefully appear if someone searches for this again in the future. Seth On Sat, Oct 12, 2019, at 6:20 PM, Even Rouault wrote: > On samedi 12 octobre 2019 17:49:22 CEST Seth G wrote: >

Re: [gdal-dev] CSV headers with extra comma

2019-10-12 Thread Seth G
Forgot to add - using Windows builds of GDAL 3.0.1, released 2019/06/28. -- web:http://geographika.co.uk twitter: @geographika On Sat, Oct 12, 2019, at 5:49 PM, Seth G wrote: > Hi list, > > I came across a minor issue in MapServer, but it is GDAL related. > The following comm

[gdal-dev] CSV headers with extra comma

2019-10-12 Thread Seth G
Hi list, I came across a minor issue in MapServer, but it is GDAL related. The following command (using a shapefile from MapServer's msautotest) with a single field: ogr2ogr -f csv my.csv bdry_counpy2.shp -select CTY_NAME Produces the following: CTY_NAME, Lake of the Woods Note the extra com

Re: [gdal-dev] ogr2ogr skipfailures and sqlite missing indexes

2018-11-30 Thread Seth G
ql "select > * from my_layer where ST_IsValid(my_geometry)=1"), geometry collections can > be skipped with SQL and so on. Fixing the data before conversion is the > solution I prefer if I have time for that. > > -Jukka Rahkonen- > > > Seth G-2 wrote > > Excellent

Re: [gdal-dev] ogr2ogr skipfailures and sqlite missing indexes

2018-11-29 Thread Seth G
Excellent - thanks for the incredibly fast fix Even - wasn't expecting that! Seth -- web:http://geographika.co.uk twitter: @geographika On Thu, Nov 29, 2018, at 11:57 AM, Even Rouault wrote: > On jeudi 29 novembre 2018 09:56:28 CET Seth G wrote: > > Hi all, > > > &

[gdal-dev] ogr2ogr skipfailures and sqlite missing indexes

2018-11-29 Thread Seth G
Hi all, When running a command similar to below (GDAL 2.3.1 on Windows): ogr2ogr -f "SQLite" test.db test.shp -skipfailures -dsco SPATIALITE=YES -lco SPATIAL_INDEX=YES If there are any errors (e.g. a MULTILINESTRING in a LINESTRING dataset), ogr2ogr skips the errors, but also skips creating th

[gdal-dev] GDAL Sieve Script

2009-10-20 Thread Seth G
Hi, I have been looking at the http://www.gdal.org/gdal_sieve.html script, and it almost meets my requirements. However rather than replacing small pixel areas with neighbouring values, I'd like to set all these pixels to a "no data" or 0 value. I guess I could use the script as it is, and th