spatialdata icon indicating copy to clipboard operation
spatialdata copied to clipboard

transparent `ShapesModel.parse` geometry arguments

Open MobiTobi opened this issue 1 year ago • 1 comments

The geometry argument is used to select which kind of shapes to create when using ShapesModel.parse. The possible arguments are 0, 3 and 6 which map to Circles, Polygon and MultiPolygon respectively.

Instead of relying on an incomplete enumeration of GEOS geometry types the argument should accept strings ( "circles", "polygon", "multipolygon").

MobiTobi avatar Jun 30 '23 12:06 MobiTobi

@giovp I also like this proposal, could you implement it please when doing the io refactoring?

LucaMarconato avatar Jul 02 '23 22:07 LucaMarconato