16 Commits

Author SHA1 Message Date
Sean Gillies
f934c3428a
Change _CRS class to make WKT canonical (#1597)
* Refactor of _CRS class to make WKT canonical

* Finish work on making WKT canonical

Many test assertions needed update

* Accept {'init': 'EPSG:xxxx'}

Also removed commented code

* Restore previous rio-info behavior when there's an EPSG code

* Remove unneeded import

* Use from_proj4 in from_epsg

* Rewrite of _CRS to keep an OGRSpatialReferenceH (#1602)

* Rewrite of _CRS to keep an OGRSpatialReferenceH

Rewrite of CRS to use _CRS by composition, not inheritance

New OGRErr handling function exc_wrap_ogrerr

* Remove commented code

* Add back in the error stack check for ImportFromProj

Also fix up docstrings
2019-01-22 11:17:12 -07:00
Sean C. Gillies
caddbf1611 Watch out for absolute path differences 2018-05-23 10:57:49 -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
Kevin Wurster
ccb0ff9442 Use '--colorinterp red,green,blue' instead of '--colorinterp 0=red,2=green,3=blue'. 2017-11-01 21:36:48 -04:00
Kevin Wurster
c90a79222d Merge master. 2017-10-26 19:36:26 -04:00
Kevin Wurster
897d0f5292 Need to indicate when '--like' flag has been used. 2017-10-26 19:18:51 -04:00
Kevin Wurster
c5da3ed23b Switching to 'rasterio.shutil.exists()' for validating paths produces a different exit code, and in some places raises an exception higher in the call stack. 2017-10-14 01:42:00 -04:00
Sean Gillies
1bc395f27d Add subdatasets method and surface in rio-info 2017-08-29 00:15:41 -06:00
Sean Gillies
493dd8ef5b Add a edit-info nodata option handler, marker, and inline funcs 2016-12-06 16:25:12 +01:00
Sean Gillies
fc52b0f99d Initial support for GDALDeleteRasterNoDataValue()
Towards resolving #510
2016-12-05 13:40:54 +01:00
Sean Gillies
bc998464ba Resolves #392 2016-12-02 17:24:47 +01:00
grovduck
fc12613489 Force file paths to be forward slashes even on Windows 2016-06-13 10:57:21 -07:00
Sean Gillies
fbd74c2e7f Add a force_overwrite option.
Plus some consolidation of existing options.

Closes #539
2016-01-11 15:32:05 -07:00
Sean Gillies
2ded184dba Tests of file_in_handler. 2015-11-09 15:23:06 -07:00
Brendan Ward
c59a35411b Excluded files from coverage testing, switched version option to use click builtin, added more tests 2015-01-08 20:40:50 -08:00
Sean Gillies
5d64c24661 Make -f and --format aliases for --driver
Closes #183.
2014-10-10 10:43:22 -06:00