forked from aiddata/python-rasterstats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGELOG.txt
141 lines (111 loc) · 4.91 KB
/
CHANGELOG.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
0.19.0
- Drop Python 2 support, Python 3 style updates #283
- Sort imports #284
- Add support for Fiona>1.9 #287
0.18.0
- Move project metadata to pyproject.toml #277
- Black formatting #278
- Don't cast integers to int64, use numpy accumulator dtype #279
- Warn about nodata only once, io.NodataWarning type #280
0.17.1
- Fixes to keep up with recent versions of dependencies: #275 fiona, #266 shapely, #264 click
- Added a pyproject.toml #265
- Added CI testing for python 3.7 through 3.11
0.17.0
- Fix performance regression due to platform.architecture performance #258
0.16.0
- Fix deprecation warning with shapely 1.8+ #250
0.15.0
- Fix deprecation warning with Affine #211
- Avoid unnecessary memory copy operation #213
0.14.0
- Add support return statement to zone_func #203
- Take into account per dataset mask #198
- Accessing geometry properties for user-defined stats #193
- Updated method calls for numpy v1.16 #184
0.13.1
- Bug fix for io.read_features with Fiona 1.8+
0.13.0
- Require Rasterio>=1.0
- Fix buffer logic for boxify_points (#171)
0.12.1
- Cast all integer data to int64 if we're on a 64 bit platform (#159)
0.12.0
- zone_func argument to apply a function to the masked array before computing stats
- support shapely 1.6 exceptions
0.11
- change `band_num` parameter to `band`
- add example of multiprocessing
- updated for compatibility with upcoming Rasterio 1.0 release
- using latest pytest and pytest-cov for testing
- overhauled NaN handling logic to treat them directly as nodata
0.10.3
- initial attempt at nan logic
0.10.2
- Setup.py bugfix: Include requirements in manifest
0.10.1
- Bug fix for geopandas dataframes
0.10.0
- Added a generator variant of zonal_stats (gen_zonal_stats) and point_query
(gen_point_query) which yield results instead of returning a list
- Dependency on cligj to standardize the geojson input/output args and opts
- Input/Output can be geojson sequences; allows for stream processing
0.9.2
- added __version__ attribute
0.9.0
- Completely removed osgeo.ogr in favor of fiona
- Completely removed osgeo.osr, spatial referencing is external to this module
- Removed optional dependency on GeoRaster lib
- Extensive cleanup of tests
- Extensive refactoring to encapsulate coordinate transforms and data access
- Use of affine lib instead of GDAL-style geotransform tuples
- Support for category maps to get human readable keys for categorical rasters
- Greatly improve speed of categorical and any stat requiring pixel counts
- Simplified and sped up travis builds for faster feedback
- Nones instead on nans returned when polygon doesn't intersect raster pixels
- Removed deprecated rasterstats script and unused util functions
- Added support for `nodata` count
- GeoJSON features and geometries accepted as CLI inputs
- point_query function and CLI
- fixed bug in zonal_stats points with all_touched
- GeoJSON Feature output supported directly, geojson_out=True
0.8.0
- Rasterio CLI plugin; rio zonalstats
0.7.2
- install bug, completely remove GDAL dep
0.7.1
- Utility function to enable CLI with geojson features
0.7.0
- Removed dependency on osgeo.gdal
- Added dependency on rasterio; used for rasterizing geometries and raster reads
- Optional use of the affine library to handle transformations ala rasterio
- Use OGR fids if available
- Raise builtin Exceptions (IOError, etc) for general errors rather than RasterStatsError
- global_src_extent doesn’t require OGR vector layer, assumes full raster extent
- Optional support for GeoRaster output (http://github.com/ozak/georasters)
0.6.2
- fix bug in percentiles where feature covers only nodata values
- pep8 cleanup
0.6.1
- Use GetNextFeature to iterate over OGR layers
0.6
- Added a `percentile_q` statistic to calculate the qth percentile for each feature.
- Removed undocumented rasterstats script (may be replaced with more robust CLI tool by 1.0)
- Optional support for outputing "mini-rasters": the clipped, masked numpy array for each feature. (thanks to @ozak again!)
- Support for dynamically adding third-party stats functions - which take a masked array and return a scalar value. (thanks to @ozak)
- Additional examples and ipython notebooks in docs
0.5
- new method for clipping to raster extents, changes bbox_to_pixel_offsets to fix src_array edge cases (thanks @allhailwesttexas and @timcera)
0.4
- Added examples directory with ipython notebooks
- proper pip requirements files
- Deprecated `raster_stats` in favor of `zonal_stats`
- Support for GeoJSON-like FeatureCollections (any things that implements FeatureCollections in the __geo_interface__)
- Support for in-memory numpy arrays and geopandas dataframes
0.3.5
- Add optional "all_touched" rasterization strategy whereby all pixels that touch a geometry are considered (thanks @ozak)
0.3.4
- Gaurd against touching (but not overlapping) polygons. Fixes #27... thanks @engelmannjens
0.3.3
- Create in-memory layer with proper spatial reference object
- don't call ogr.UseExceptions unless needed