georust/wkt

Wkt parser should parses geometry type as case insensitive

manhquang144 opened this issue · 2 comments

The following value is a valid WKT : "polygon((153.05 -27.52 , 153.03 -27.648, 153.05 -27.59, 153.05 -27.52 ))", but the parser is throwing an error - Expect geometry type.

https://docs.opengeospatial.org/is/18-010r7/18-010r7.html

Can you provide more context? Using the current version of the library this returns a Polygon object.

let mut wkt: Wkt<f64> = Wkt::from_str(
    " polygon((153.05 -27.52 , 153.03 -27.648, 153.05 -27.59, 153.05 -27.52 ))",
)

@manhquang144 - I'm going to close this as we cannot reproduce your issue. Let me know if you can provide more details.