Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDD Geometry toString() method prints duplicated Geometry #214

Closed
jiayuasu opened this issue Apr 17, 2018 · 0 comments

Comments

@jiayuasu
Copy link
Member

commented Apr 17, 2018

Expected behavior

Each Geometry in GeoSpark SpatialRDD should print WKT format by default and all other non-spatial attributes should be appended after the WKT string and separated by TAB.

The following command

println(spatialRDD.rawSpatialRDD.take(1)(0))

should print POLYGON(...) A B C D

Actual behavior

SpatialRDD loaded from CSV, TSV, WKT, WKB and GeoJSON except Shapefile has the following issue:

The command

println(spatialRDD.rawSpatialRDD.take(1)(0))

actually prints POLYGON(...) POLYGON(...) A B C D or POLYGON(...) WKBSTRING A B C D

The geometry part is printed twice.

Settings

GeoSpark version = 1.1.0 and earlier

Apache Spark version = 2.X

JRE version = 1.8

API type = Scala and Java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.