You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] DuckDB - Spatial / Ducklake Support #7353
and when i map2img -m ./maps/duckdb.map -o test_adbc_data.png i can see the map rendered correctly with different duckdb sql queries but when i go to ogcapi/collections/countries/items?f=html i got :
Windows still has some issues that I’m troubleshooting
I’m using the caddy-cgi plugin, since later I plan to add ?token= as a forward_auth capability in Caddy for authentication and authorization (LDAP integrations, etc.).
For this issue specifically, you’ll find two Mapfiles:
The not-working mapfileseems to miss closing ' in "sql" "SELECT geometry, name, iso_a3, continent, pop_est FROM read_parquet('https://github.com/opengeospatial/geoparquet/raw/main/examples/example.parquet)"
thanks @jratike80, fixed the syntax error with no luck to make it work with mapserver .. also tried st_astext(geometry) but it's also giving me {"code":"NotFound","description":"Collection items query failed."} :
Activity
msmitherdc commentedon Sep 21, 2025
You actually can do this now via GDAL (OGR) ADBC connection.
An example connection:
yharby commentedon Sep 21, 2025
Thanks @msmitherdc for the reply .. i am trying something like :
CONNECTIONTYPE OGR CONNECTION "ADBC:" CONNECTIONOPTIONS "ADBC_DRIVER" "duckdb" "PRELUDE_STATEMENTS" "load spatial" "PRELUDE_STATEMENTS" "set memory_limit = '256MB'" "PRELUDE_STATEMENTS" "set home_directory = '.'" "sql" "SELECT geometry, name, iso_a3, continent, pop_est FROM './data/example.parquet'"and when i
map2img -m ./maps/duckdb.map -o test_adbc_data.pngi can see the map rendered correctly with different duckdb sql queries but when i go toogcapi/collections/countries/items?f=htmli got :{"code":"NotFound","description":"Collection items query failed."}yharby commentedon Sep 22, 2025
I’m working on creating an easy “getting started” setup for MapServer with Parquet that’s simple to install and cross-platform using Pixi (Conda-based). You can check the branch here:
https://github.com/walkthru-lat/mapserver-parquet/tree/windows-support
I’m using the caddy-cgi plugin, since later I plan to add
?token=as aforward_authcapability in Caddy for authentication and authorization (LDAP integrations, etc.).For this issue specifically, you’ll find two Mapfiles:
jratike80 commentedon Sep 22, 2025
The not-working mapfileseems to miss closing
'in"sql" "SELECT geometry, name, iso_a3, continent, pop_est FROM read_parquet('https://github.com/opengeospatial/geoparquet/raw/main/examples/example.parquet)"yharby commentedon Sep 22, 2025
thanks @jratike80, fixed the syntax error with no luck to make it work with mapserver .. also tried st_astext(geometry) but it's also giving me
{"code":"NotFound","description":"Collection items query failed."}:the query:
https://shell.duckdb.org/#queries=v0,INSTALL-spatial~,LOAD-spatial~,INSTALL-httpfs~,LOAD-httpfs~,SELECT-version()~,SELECT-ST_AsText(ST_Point(1%2C2))~,SELECT-COUNT(*)-FROM-read_parquet(%27https%3A%2F%2Fduckdb.org%2Fdata%2Fprices.parquet%27)~,SELECT-geometry%2C-name%2C-iso_a3%2C-continent%2C-pop_est-FROM-read_parquet(%27https%3A%2F%2Fraw.githubusercontent.com%2Fopengeospatial%2Fgeoparquet%2Fmain%2Fexamples%2Fexample.parquet%27)