anboralabs / spatia-room

Implementation of spatia lite database to android component Room
MIT License
41 stars 4 forks source link

GeometryConverters: add support for collection types #35

Closed johan12345 closed 1 year ago

johan12345 commented 1 year ago

PR #24 implemented TypeConverters for the basic geometries Point, LineString and Polygon. This adds support for the remaining geometries MultiPoint, MultiLineString, MultiPolygon and GeometryCollection. So now, all seven 2D (XY) geometry types are supported.

Also, I added generic converters fromGeometry and toGeometry that can convert from/to any of the supported geometry types.

dalgarins commented 1 year ago

@johan12345 thanks a lot, for your contributions.