georust / wkt

Rust read/write support for well-known text (WKT)
https://crates.io/crates/wkt
Apache License 2.0
51 stars 25 forks source link

Relax the parens requirement for multipoint #70

Closed audunska closed 3 years ago

audunska commented 3 years ago

Postgis' ST_AsText function will serialize multipoints like MULTIPOINT(0 1, 2 3), which would fail to deserialize because we expect a string like MULTIPOINT((0 1), (2 3)).

In fact, the Postgis ST_GeomFromText function even accepts mixed bracketing, like MULTIPOINT((0 1), 2 3).

This PR updates the parsing of multipoints to allow all these styles.

michaelkirk commented 3 years ago

bors r+

bors[bot] commented 3 years ago

Build succeeded: