harsha2010 / magellan

Geo Spatial Data Analytics on Spark
Apache License 2.0
534 stars 149 forks source link

WKT parser problem #226

Closed geoHeil closed 6 years ago

geoHeil commented 6 years ago

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

harsha2010 commented 6 years ago

can you attach an example where the parser fails?

geoHeil commented 6 years ago

I have contacted you with an example

harsha2010 commented 6 years ago

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