-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GeoJSONSeq write support #141
Comments
Hi! Thanks for reporting this issue. This looks to be a regression introduced in #128, the GeoJSONSeq driver does not seem to handle an empty string as the "default" CRS identifier and instead errors when it tries to parse it, probably because it always tried to transform to wgs84 as that is mandated by the geojson standard. I should fix it so that we don't set the target SRS at all unless its given by the user. To work around it for now you could simply specify a target srs. As I mentioned above valid geosjon requires WGS84, so you probably want to write something like: COPY (SELECT ST_GeomFromText('POINT (1 1)'))
TO 'test.json'
WITH (FORMAT GDAL, DRIVER 'GeoJSONSeq', SRS 'EPSG:4326'); |
Seems there is a regression with the GDAL MVT driver on DuckDB 0.9.1 as well. The first command can work fine with DuckDB 0.8.1. And is there any way to set the Dataset creation options for GDAL MVT driver in DuckDB? That would be much helpful to work with GDAL MVT driver |
Hello @zczc2390! I think I have fixed the For what its worth you should be able to pass any dataset creation options through the |
Doc page says that
GeoJSONSeq
GDAL driver is supported for both reading and writing.When I try to COPY with the following parameters:
WITH (FORMAT GDAL, DRIVER 'GeoJSONSeq')
I'm getting:error.
DuckDB 0.9.1
The text was updated successfully, but these errors were encountered: