harsha2010/magellan

WKT parser problem

geoHeil opened this issue · 3 comments

the WKT parser fails with Caused by: java.lang.RuntimeException: Extra(... 48.3118488844536))), [traced - not evaluated])
however, regular JTS parser seems to work fine.

can you attach an example where the parser fails?

I have contacted you with an example

spark.read.parquet("...")
.filter(! ($"indoor_geo" contains "MULTIPOLYGON"))
.withColumn("polygon", wkt($"indoor_geo")("polygon")).collect()

Looks like this file has a mix of polygon and multi polygon. We don't yet support multi polygons. Thats why this is failing I think