Closed daviewales closed 2 months ago
Another option would be to use GDAL '/vsicurl/' to load remote data.
load spatial;
SELECT * FROM ST_Read('/vsicurl/https://services5.arcgis.com/OvOcYIrJnM97ABBA/ArcGIS/rest/services/Primary_Health_Network_2023/FeatureServer/0/query?where=PHN_CODE=%27PHN108%27&outFields=*&returnGeometry=true&f=geojson');
I had a similar problem yesterday, when I tried to fetch data from OSM Nominatim:
install spatial;
load spatial;
COPY (SELECT ST_Transform(geom,'EPSG:4326','EPSG:31287',true) as geom from ST_Read('/vsicurl/https://nominatim.openstreetmap.org/search?email=test@gmx.at&q=Austria&format=geojson&polygon_geojson=1&featureType=country&polygon_threshold=0.01')) to 'd:/austria.dxf' with (Format GDAL, Driver 'DXF');
Hi @daviewales, can I ask whether this still reproduces ?
Possibly via a FORCE INSTALL httpfs
?
Thanks a lot
Thanks, this no longer crashes!
I think this was connected to https://github.com/duckdb/duckdb/issues/13848, but should now be fixed.
To reproduce, run the following:
Expected:
Actual:
DuckDB crashes with no output.
Note that the above works perfectly in my WSL Linux version of duckdb.
Version Info:
OS: Windows 11 DuckDB version: v0.10.0 20b1486d11 spatial extension version: latest using
FORCE INSTALL spatial FROM 'http://nightly-extensions.duckdb.org';
(Also broken with regularINSTALL spatial;
) httpfs extension version: current release (whatever you get withINSTALL httpfs;
)