Open jbouffard opened 6 years ago
Casting feels like the right solution here, but it doesn't look like it's possible to cast to a less specific type given the functions available. Maybe forget the Spark JTS casting and use Spark to cast to GeometryUDT
in https://github.com/geotrellis/vectorpipe/pull/54/files#diff-f2b29a9e7b5c57acf2ea5f60fa9824eaR254 and related spots.
The
OSMReader.allGeoms
value is aDataFrame
that is supposed to contain all of the Geometries from the source file; however, thegeom
column in the schema is of typePoint
instead of typeGeometry
Because
OSMReader.allGeoms
uses the same logic asProcessOSM.constructGeometries
, that means then that the latter method also has this issue.This problem is most likely the result of the
union
that occurs, and one possible solution would be to reverse it. However, it's not clear what kind of performance impacts, if any, would occur.