Releases: mggg/maup
v2.0.2 Release
What's Changed
This is a quick patch for functionality that broke in the assign()
function as noted in #96.
Full Changelog: v2.0.1..v2.0.2
v2.0.1 Release
What's Changed
This patch is primarily for some bug fixes. Here are the changes:
- Added code to detect and handle an unusual configuration of polygons around a gap that wasn't covered before
- Added the ability for the user to control the precision of the grid to snap coordinates to
- Added a check/fix for empty geometries
- Added fix for line segment fragments that are created after shapely's
make_valid
function. The new functionmake_valid_polygons
filters through theGeometryCollection
objects and filters out any non-polygonal results. (Special thanks to @coreyryanhanson for finding and providing preliminary code to fix this error)
v2.0.0 Release
What's Changed
- The function
autorepair
has been renamed toquick_repair
but maintains it's former moniker as an alias - A new, more sophisticated repair function called
smart_repair
has been added. Details pertaining to what the new function does and how to use it are in the README and in the API documentation.
Full Changelog: v1.1..3..v2.0.0
v1.1.3 Release
What's Changed
Small, but important bug fix to make sure that our docs examples work. In the previous release that updated maup to accommodate pandas 2, we forgot to fix one case of the assign function that handled the situation where none of the sources were completely contained in a single target.
Full Changelog: v1.1.1..v1.1.2
v1.1.2 Release
What's Changed
This is a hot patch for version 1.1.1 released in preparation for a workshop
Patched Items
Updated the required version of GeoPandas to 0.14.0. The introduction of version 0.14.0 of GeoPandas on 15 Sept. 2023 changed the API for some of the function calls in GeoPandas relevant to our project, and anyone using an older version (e.g. 0.12.2) would see several hundred instances of FutureWarning: the convert_dtype parameter is deprecated
when using Maup.
Full Changelog: v1.1.1..v1.1.2
v1.1.1 Release
What's Changed
This is a hot patch for version 1.1.0
Patched Items
- Fixed unexpected behavior in the indexed_grometries.py file. Specifically, if two targets completely overlap a particular source, then the source is now randomly assigned to one of the targets rather than to both of them.
- Pandas dependency updated to 2.1.2
Deprecated Items
- Due to the update in pandas, support for Python 3.8 has been removed
Full Changelog: v1.1.0..v1.1.1
v1.1.0 Release
v1.1.0 Release
What's Changed
Several major updates were made to the main files of maup
__init__.py
- Moved the source for the import of "make_valid" from .repair to shapely since a better version of this function now exists in Shapely 2.0.
adjacencies.py
- Added an option to the "adjacencies" function to output the result as a
GeoDataFrame instead of a GeoSeries. - Made an adjustment to the "adjacencies" function to handle the case when there are
no adjacencies. (Thanks to Hazel Brenner for suggesting the solution included here.
indexed_geometries.py:
-
Removed the lines defining "geometry.index" for each individual geometry because
geometries are now immutable. -
Updated syntax for STRtree queries to accommodate new behavior in Shapely 2.0.
intersections.py:
- Added an option to the "intersections" function to output the result as a
GeoDataFrame instead of a GeoSeries.
Default value is "geoseries" to replicate prior behavior.
repair.py:
-
Changed "type(x)" to "x.geom_type" to accommodate new behavior in Shapely 2.0.
-
Replaced "buffer(0)" with "make_valid" throughout.
-
Modified the "autorepair", "remove_repeated_vertices", "snap_to_grid", and
"count_overlaps" functions so that the input may be either a GeoSeries or a
GeoDataFrame. (Previous versions required a GeoDataFrame.) -
Added a "count_holes" function analogous to "count_overlaps".
-
Removed the "make_valid" function since a better version of this function is
now available in Shapely 2.0. -
Added "index_parts=False" option to the "explode" function occurring inside the
definition of the "expand_to" function to accommodate a FutureWarning in
geopandas. -
Modified the "doctor" function so that it gives a complete report of invalid
geometries, overlaps, and gaps without throwing up an error if it encounters
any of these, and also so that the input may be either a GeoSeries or a GeoDataFrame. -
Modified the "dedup_vertices" and "snap_polygon_to_grid" functions to work
correctly in the case that the input polygon is not simply connected.
Tests
- Most of the tests have been updated to account for the changes to the maup package.
Full Changelog: v1.0.7...v1.1.0
v1.0.8 Release
What's Changed
- Bump numpy from 1.20.3 to 1.21.0 by @dependabot in #68
- Bump numpy from 1.20.3 to 1.21.0 in /docs by @dependabot in #67
- Allow higher versions of Geopandas by @calebclimatecabinet in #70
New Contributors
- @dependabot made their first contribution in #68
- @calebclimatecabinet made their first contribution in #70
Full Changelog: v1.0.7...v1.0.8
1.0.7 Release
This release contains mostly bug fixes, etc. Note that only the PyPI package has been updated; conda-forge has not.
What's Changed
- Add expand_to function by @InnovativeInventor in #46
- Fix maup.doctor typo with target_union by @InnovativeInventor in #45
- Fix AttributeError when relevant_geometries is empty by @InnovativeInventor in #44
- Fix TypeError when nothing is assigned by covering by @InnovativeInventor in #48
Full Changelog: v1.0...v1.0.7
1.0.0 Release
Better repair features, bug fixes, and more comprehensive tests! Use maup
for all your geospatial (dis)aggregation and manipulation needs!
This release of maup
includes:
- Best practice guidelines: https://github.com/mggg/maup/blob/master/best-practices.md
- Comprehensive documentation: https://maup.readthedocs.io/en/latest/