Skip to content

Releases: mggg/maup

v2.0.2 Release

22 Feb 21:41
78dfedb
Compare
Choose a tag to compare

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

22 Dec 21:37
d71150f
Compare
Choose a tag to compare

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 function make_valid_polygons filters through the GeometryCollection 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

07 Dec 22:35
0508cc5
Compare
Choose a tag to compare

What's Changed

  1. The function autorepair has been renamed to quick_repair but maintains it's former moniker as an alias
  2. 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

21 Nov 03:03
c5d8dd0
Compare
Choose a tag to compare

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

31 Oct 14:22
2a7bc29
Compare
Choose a tag to compare

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

28 Oct 21:41
5b58b04
Compare
Choose a tag to compare

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

24 Oct 23:02
52a6b16
Compare
Choose a tag to compare

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

12 Jun 01:35
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0.7...v1.0.8

1.0.7 Release

16 May 12:52
Compare
Choose a tag to compare

This release contains mostly bug fixes, etc. Note that only the PyPI package has been updated; conda-forge has not.

What's Changed

Full Changelog: v1.0...v1.0.7

1.0.0 Release

17 Jun 14:50
Compare
Choose a tag to compare

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: