Skip to content

asShape is deprecated and buggy #271

@frafra

Description

@frafra

Shapely has deprecated asShape and similar methods in version 1.8. There are some non-critical bugs that will not be fixed: shapely/shapely#1149 (comment)

It would be a good idea to replace asShape with shape.

The adapters to create geometry-like proxy objects with coordinates stored outside Shapely geometries are deprecated and will be removed in Shapely 2.0 (e.g. created using asShape()). They have little to no benefit compared to the normal geometry classes, as thus you can convert to your data to a normal geometry object instead. Use the shape() function instead to convert a GeoJSON-like dict to a Shapely geometry.
-- https://shapely.readthedocs.io/en/latest/migration.html

Note: ckanext-spatial does not pin to a specific version of shapely, so it could break when shapely 2.0 is released at the moment

Shapely>=1.2.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions