peterstace / simplefeatures

Simple Features is a pure Go Implementation of the OpenGIS Simple Feature Access Specification
MIT License
133 stars 19 forks source link

Implement the json.Unmarshaller interface for each concrete geometry #403

Closed peterstace closed 3 years ago

peterstace commented 3 years ago

Currently, the json.Unmarshaller interface is only satisfied by the Geometry and GeometryCollection types.

The concrete geometry types (Point, LineString etc) should also implement this interface.

peterstace commented 3 years ago

We should do a similar thing for the SQL related methods as well.

peterstace commented 3 years ago

We need to be careful here to ensure that geometries remain immutable after creation (with unit tests to show it).

peterstace commented 3 years ago

We should do a similar thing for the SQL related methods as well.

This part was already completed in https://github.com/peterstace/simplefeatures/issues/351