-
Notifications
You must be signed in to change notification settings - Fork 301
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
Support st_read GDAL/Ogr2ogr options #2382
Comments
Minimal reproducible example? Details of how the input file was created? |
@rsbivand I have updated with a full reprex, run this query on GDAL with |
From https://gdal.org/user/ogr_sql_dialect.html, |
well.. is an option, but not ideal, the default query for GDAL is very limitated, for complex queries we need be able to specify the dialect. Also, if we want to skip using the IO, we would need to write in memory, which with each step causes to be harder and harder be able to use SQL... for a complex program use the write in memory will also increase even more the complexity... |
The shapefile open options are found here. |
@edzer this issue is not about drive specific options, is about GDAL reading options, like the ogr2ogr ones. Queries can use different dialects to run, and we can't acutally parse options to GDAL, which could allow use to use |
The |
Your use of the layer name is fragile, initially you had
Whether this is what you want is unknown. Do use |
Hi, the is just a minimum reproducible example, is not designed to be useful in all things or places. This issue to to request support for GDAL options from |
... then please correct the issue title. |
ready! thx :D I was not sure if was a bug or not, didn't know if the options already supported the ogr2ogr options or only the driver options. Title updated. |
Might be related to #1646 but, unfortunately, I don't know how to fix the issue that prevented merging that PR... |
well, I have a different opinion on #1646 (comment) comment. GDAL has a lot of dependencies.... and clearly you can't use a feature without them, for example following that issue, Lets also add, all the logic about exclude/include based on dependencies, could also be applied by versions. GDAL is big.... I think the most usable way is support everything from SF and keep to the user control which dependencies want and which versions (yes, the same logic about dependencies, could be applied to versions on GDAL and their dependencies) |
without spatialite GDAL can read gpkg files; the only dependency is sqlite3. The ogr sqlite dialect comes "preferrably with spatialite support", as it needs that for the spatial operators; those however are the main reason to get that, I guess. Using gpkg these days has become very common, gdal installations with spatialite can be built but seem not very common. |
Hi, I know it exists the
options
forst_read
, but after testing it, seems is not to pass options as read options, or something seems to be not working.I'm using the
query
param, which usually works, but some queries need to use in GDAL-dialect sqlite
to works, I have played withoptions
with...c("-dialect", "sqlite")
,c("dialect", "sqlite")
,c("-dialect"="sqlite")
,c("dialect"="sqlite")
and-dialect sqlite
, but seems to now works.Here a sample:
This query will fails without using the
sqlite
dialect.Thx!
The text was updated successfully, but these errors were encountered: