georust / wkt

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

Add Support For EWKT #108

Open hendursaga opened 1 year ago

hendursaga commented 1 year ago

Extended WKT is a simple variant used in PostGIS and related software, in particular, the SRID. Presently trying to parse something like SRID=4326; throws InvalidWKT("Invalid type encountered") as the error.

It appears there already is an issue opened for the up to 4 ordinate values part of the spec.

The BNF spec provided by PostGIS would be a helpful guide.

zdannar commented 2 months ago
urschrei commented 2 months ago

As ever, @zdannar and @hendursaga, we're severely time-constrained so this is extremely unlikely to get done in the foreseeable future. If you have a requirement for it, we're happy to talk through it with a view to accepting a PR.

zdannar commented 2 months ago

After looking into it more, I am not sure it makes sense to include it into this code base. From what I have read, EWKT is a postgres specific format meaning that it probably should not exist in this domain.