-
Notifications
You must be signed in to change notification settings - Fork 6
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
ogrinfo() and SQL #614
Comments
Nice, I cant't find anything that would be a problem with that. I see now that we could just write a regular |
Oh I.see on the version thing 🙏, happy to add that to PR if you like I wondered if GDAL allowed info on an open layer, but doesn't seem to ? Maybe I need to look more closely |
Not sure exactly what you mean but good question. I'm assuming we can call Are you seeing anything different? Our tests are not especially robust since it's only tested with GPKG. Should we test with other formats? |
I think what I'm getting at is that (in gdal_exp.cpp)
providing the active pointers to an open dataset. but I get I'm totally happy to go with the setup as is now, this is really good familiarization for me - just I think I'm seeing a grander refactor that could happen. (gdalraster::translate() is implemented for standalone use by spinning up a new GDALRaster, but an existing object can do GDALRaster$translate() with no spin up). Does that make sense? I don't want to derail anything or push for a big change, but I might start exploring that bigger picture. Maybe there's a reason ogrinfo() can't be approached that way? |
certainly I don't see problems with other formats, it's working on everything I try (shp in zip urls, WFS, Parquet etc) |
Yes I see what you're getting at. Please note this partially relates to recent change for GDALRaster in #606 and pending #609 for vector, just in the sense that passing those objects actually works as it should now... as references rather than by value which previously resulted in a copy of the object locally to the function scope when passed in. Anyway, that should all work properly now and I'm much more confident in how the objects are being passed in different scenarios (R side vs C++ side, and constructing from scratch in C++ and returning). Some refactor you're referring to could be worthwhile. Let me think through some more and reply in the next day or two with a little more detail. Thanks for looking at that. |
I see that we can't get meaningful info when SQL query is applied
I'm toying with changing it like this:
which seems to work. (I'm hoping to add infoAsJSON as well). Just wanted to ping in case that kind of change concerns you via things I'm not considering?
The text was updated successfully, but these errors were encountered: