Sean Gillies
3b604c8ae5
Add out_dtype parameter to dataset's read() ( #1630 )
...
* Add out_dtype parameter to dataset's read()
Resolves #1627
* Allow out array to direct type casting
2019-02-11 08:59:00 -07:00
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 Gillies
259864f111
Fill out 2D out_shape to match indexes
...
Resolves #1150
2017-09-18 14:33:17 -06:00
Sean Gillies
f0d3eb0bfb
Fix last lingering window errors
2017-06-28 15:05:16 +02:00
Matthew Perry
9d90842a1f
merge master
2016-06-30 13:29:51 -04:00
Sean Gillies
863434735c
New io module
...
Resolves #743
Replaces #793
2016-06-30 10:29:30 -06:00
Kevin Wurster
ef952def3b
Merge master.
2016-06-14 21:09:27 -07:00
Kevin Wurster
40cbc26d73
Switch src.transform to an instance of affine.Affine() and add a warning deprecating src.affine.
...
Switch src.affine to src.transform in tests
2016-06-05 14:29:34 -04:00
James Hiebert
c8185796f4
Removes the crs_wkt property from DatasetReader
...
With the addition of the simpler `wkt` property to the CRS class, this
commit removes the crs_wkt property and methods to simplify the
interface
2016-06-04 11:03:03 -07:00
Kevin Wurster
c71ddf1318
Add out_shape to read_masks(), and tests. Slighly modified the out vs. out_shape logic in read().
2016-06-02 22:11:55 -04:00
Kevin Wurster
c3f79def45
Add out_shape to read()
2016-06-02 21:18:56 -04:00
Erik Seglem
a31e3c8c16
Standardize on import numpy as np.
2016-06-01 22:47:33 -04:00
Sean Gillies
0c9b86278c
Skip two tests.
...
One is a Homebrew crasher, the other requires a format driver that
isn't installed with Homebrew.
2016-05-31 19:58:12 -06:00
Kevin Wurster
b9205b1fcb
Remove references to read_band() but not the actual method.
2016-04-12 20:50:50 -04:00
Matthew Perry
7b4118a84b
return tuples, not lists from DatasetReader
2016-04-11 11:34:14 -04:00
Even Rouault
1306a81063
meta(): use dtype = 'float_' for 0 band dataset
2016-03-08 10:20:54 +01:00
Even Rouault
80433405c0
Fix crash in meta() method with zero-band rasters
...
Some GDAL datasets like HDF5 have just a list of subdatasets, but no
raster band themselves. DatasetReader.meta currently segfaults on such
datasets.
2016-03-05 19:07:21 +01:00
Sean Gillies
62138e5c9a
Change tests to expect masked=False default.
2015-04-06 12:04:28 -06:00
Sean Gillies
c61357c36d
Eliminate the masked=None option.
...
Instead, we default to masked=True and return a masked array,
but use the np.ma.nomask shortcut when there's no nodata value
defined.
2015-03-06 16:51:35 -07:00
Sean Gillies
2b4f7284ba
Working rio-merge with main features of gdal-merge.py
...
Closes #242
2015-01-12 15:21:34 -07:00
Sean Gillies
cea4bc3d20
Better test of read windowing and a fix.
2014-12-02 10:16:11 -07:00
Sean Gillies
73943ce434
More graceful handling of windows.
...
Intent is to return no data when the window is beyond the dataset's
extent and clip to the dataset's extent when the window overflows.
In other words, just like Python slices and Numpy extended slices.
Closes #191 .
2014-12-01 11:26:53 -07:00
Sean Gillies
943fa8e099
New layout, tests moved.
2014-09-01 22:00:56 -06:00