11 Commits

Author SHA1 Message Date
Vincent Sarago
ba5e90c487
mapbox -> rasterio (#2321) 2021-10-22 09:04:05 -06:00
Yann-Sebastien Tremblay-Johnston
1b5f96d6e5
fix some tests (#2226)
add additional monkeypatch

skip on windows for now, unclear what intent of test is

removed third slash that is the anchor ('/') on posix but would be 'C' on windows

make ParsedPath.from_uri consistent with as_posix usage in init

fix tests
2021-10-15 10:13:02 -06:00
Sean Gillies
a1cb28a77e
Remove compat module (#2067)
* Remove compat imports in tests

* Remove compat module and future namespace imports
2020-12-11 16:30:23 -07:00
Sean Gillies
00b5096015 Cast scheme to bool in is_remote
Resolves #1967
2020-07-23 10:47:56 -06:00
Sean Gillies
85bb6f7bbe
New Path.as_vsi method to reduce ambiguity (#1895)
* Don't use "vsi_path" as variable name

Also allow a couple utility functions to take string paths.

* New Path.as_vsi method used internally instead of vsi_path

Intended to decrease ambiguity in some failure cases.

Also, parsing of Windows paths has been made more robust and a
latent regular expression pattern bug has been fixed.

* New dev version and changes
2020-04-06 09:39:58 -06:00
Sean Gillies
3a14bbbca1
Rewrite path parsing logic to handle "SENTINEL2_L1C:" paths (#1866)
* Rewrite path parsing logic to handle "SENTINEL_2:" paths

Resolves #1786

Has a small consequence for the CLI file_in_handler: we can no
longer fail early on some kinds of given paths.

* Remove commented code.

* Add support for python 2.7 string types
2020-02-11 19:32:05 -07:00
Sean Gillies
371daa2d06 Revert changes accidentally made to path parsing 2019-09-30 14:31:47 -06:00
Sean Gillies
5313d4ce67 Add a test for writing a mask to an invalid window 2019-09-27 12:40:47 -06:00
Sean C. Gillies
960a906dad Test to demonstrate zip+https parses correctly
Resolves #1151
2018-06-25 13:59:10 -06:00
Sean C. Gillies
09ee0e15e8 Resolve #1377 2018-06-20 13:19:56 -06:00
Sean C. Gillies
2308aa6d5e New rasterio.path module
The signatures of all cdef class initializers in rasterio._base and
rasterio._io have changed: these method now take instance of ParsedPath
or UnparsedPath from rasterio.path and do not take strings.

New ParsedPath and UnparsedPath classes have been added to improve input
file handling and validation. The existing parse_path and vsi_path
functions have been rewritten to use these new classes and have been
moved to the new rasterio.path module. The signature of rasterio.open
has not been changed and users of Rasterio will be unaffected.

The rasterio.vfs module and its functions are being replaced by new functions
in rasterio.path.
2018-05-23 10:05:07 -06:00