-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
DriverManager::get_drivers_for_filename
for the ability to auto…
… detect compatible `Driver`s for writing data (#510) * Add DriverManager::get_drivers_for_filename * Add docstring to DriverManager::get_drivers_for_filename; use match * Satisfy clippy * Improve readability for DriverManager::get_drivers_for_filename * only test for available drivers in DriverManager::get_driver_by_name * Add test for ESRI Shapefile for .shp file extension * bool for vector/raster in DriverManager::get_drivers_for_filename * Fix: modify test for gpkg.zip only for gdal v 3.7 onwards * Fix: modify test for shp.zip only for gdal v 3.1 onwards * Fixed the test failed due to Elasticsearch name capitalization change * Rename the function and minor changes * Use DriverIterator for looping through drivers * Make `DriverManager::all()` return an Iterator * Add function to get a single driver based on file extension * Use `AsRef<Path>` instead of `&str` in guess_driver(s)_for_write * Small cleanups * Fix test * Try to debug test * Remove debugging code * Rename methods and ignore case * Add PR link to CHANGES.md * Rename DriverProperties to DriverType * Fix: wrong PR link location --------- Co-authored-by: Laurențiu Nicola <[email protected]>
- Loading branch information
1 parent
82db2fe
commit 87497bf
Showing
3 changed files
with
219 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters