Skip to content

Implement wkb.dumps(geom, srid=XXX) #592

@snorfalorpagus

Description

@snorfalorpagus

In #132 @sgillies suggested an srid keyword argument to the wkb.dumps function.

Currently dumps has a include_srid keyword argument, which defaults to False. If set to True it does work as intended, although there is no way in Shapely to set the SRID of a geometry without poking the GEOS internals (GEOSSetSRID/GEOSGetSRID).

Are you still amenable to an srid=4326 style argument to dumps? If so, does it need to clone the geometry before exporting, otherwise the function will not be idempotent (although not in any way visible from Shapely).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions