Cartagen

Latest version: v1.0.1

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.0.2

====================

1.0.1

=====

- **New features**:

. Added new kernel methods for the :func:`heatmap <cartagen.heatmap>` function:
epanechnikov, gaussian, uniform and triangular. :pr:`12` (:user:`gowestmen`)

- **Improvements**:

. Renamed :func:`detect_pastiness <cartagen.coalescence_splitting>` to
:func:`coalescence_splitting <cartagen.coalescence_splitting>` to better
reflect the usage and litterature.

- **Bug fixes**:

. Fixed an issue in the :func:`collapse_branching_crossroads <cartagen.collapse_branching_crossroads>`
function where :func:`linemerge() <shapely.ops.linemerge>` could input a LineString instead of
a MultiLineString.

1.0.0

=====

- **New features**:

. Exposed three new functions used inside the network enrichment functions:

- :func:`is_roundabout <cartagen.is_roundabout>`
- :func:`is_branching_crossroad <cartagen.is_branching_crossroad>`
- :func:`is_dual_carriageway <cartagen.is_dual_carriageway>`

- **Improvements**:

. All undocumented/unwanted functions are now hidden.

. Removed all circular import inside the library.

. Renamed :class:`Constraint <cartagen.LeastSquaresMethod>` to :class:`LeastSquaresMethod <cartagen.LeastSquaresMethod>`
to better reflect if usage and enhanced its documentation.

1.0rc2

======

- **New features**:

. Added :func:`li_openshaw <cartagen.li_openshaw>` to simplify lines. (:user:`jberli`)

. Added :func:`square_polygon_naive <cartagen.square_polygon_naive>` to square polygons. (:user:`jberli`)

. Added :func:`heatmap <cartagen.heatmap>` creation. :pr:`8` (:user:`gowestmen`)

. New covering algorithms to create convex and concave hull:

- :func:`hull_delaunay <cartagen.hull_delaunay>` (:user:`gtouya`)
- :func:`hull_swinging_arm <cartagen.hull_swinging_arm>` :pr:`4` (:user:`Vpech77`)

. Added :func:`reduce_labelgrid <cartagen.reduce_labelgrid>` function as a new point reduction method.
:pr:`3` :pr:`6` (:user:`Vpech77`) :pr:`9` (:user:`gowestmen`)

. Added :func:`tessellate <cartagen.tessellate>` to create a tesselation of a given shape. This method
has been taken from :pr:`3` :pr:`6` (:user:`Vpech77`) and wrapped inside a new function.

. Added :func:`partition_grid <cartagen.partition_grid>` to partition objects using the new tessellations.

. Added :func:`strokes_roads <cartagen.strokes_roads>` (:user:`ACourtial`) function to detect strokes inside a road network.
This allows an easy strokes calculation by reducing the number of steps.

- **Improvements**:

. Renamed point reduction functions:

- :func:`reduce_points_kmeans <cartagen.reduce_kmeans>` to :func:`reduce_kmeans <cartagen.reduce_kmeans>`.
- :func:`reduce_points_quadtree <cartagen.reduce_quadtree>` to :func:`reduce_quadtree <cartagen.reduce_quadtree>`.

. Every point reduction method, namely :func:`reduce_kmeans <cartagen.reduce_kmeans>`,
:func:`reduce_quadtree <cartagen.reduce_quadtree>` and :func:`reduce_labelgrid <cartagen.reduce_labelgrid>`
now takes GeoDataFrame as input and have the same modes available (selection, simplification and aggregation).

. :func:`gaussian_smoothing <cartagen.gaussian_smoothing>` can now treat polygons.

. AGENT rectangle transformation now depends on the minimum rotated rectangle that shares at least
one edge with the original rectangle. This allows the resulting rectangle to be more aligned
with the original building.

- **Bug fixes**:

. Fixed the :func:`morphological_amalgamation <cartagen.morphological_amalgamation>` issues function caused by:

- The ``__edge_removal`` function. The function was reworked.
- The ``straight_line_intersection`` method of the ``Segment`` class crashed
because of the use of the deprecated numpy array method ``itemset``.
- The ``Vector2D.from_segment`` method which was fixed.

. Fixed bugs in the network enrichment functions:

- :func:`detect_roundabouts <cartagen.detect_roundabouts>`
- :func:`detect_branching_crossroads <cartagen.detect_branching_crossroads>`
- :func:`detect_dead_ends <cartagen.detect_dead_ends>`
- :func:`detect_dual_carriageways <cartagen.detect_dual_carriageways>`
- :func:`rural_traffic <cartagen.rural_traffic>`

They now return an empty GeoDataFrame if no entity was detected.

. Fixed a bug in :class:`PointSetQuadTree` where negative coordinates could cause problems.

1.0rc1

======

The first official beta pre-release of CartAGen.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.