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

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 5 days ago
urschrei commented 5 days 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 4 days 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.