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

不支持中文。It doesn't read Chinese in the shape file correctly. Can you add the UTF-8 support? #190

Closed
marcomeng opened this issue Feb 15, 2018 · 4 comments

Comments

@marcomeng
Copy link

commented Feb 15, 2018

No description provided.

@jiayuasu

This comment has been minimized.

Copy link
Member

commented Feb 15, 2018

@marcomeng Can you point me to your shapefile? Or can you send me your shapefile? My email is jiayu2@asu.edu

@marcomeng

This comment has been minimized.

Copy link
Author

commented Feb 16, 2018

sent the mail, thanks.

@jiayuasu

This comment has been minimized.

Copy link
Member

commented Feb 20, 2018

@marcomeng Solved. See PR #192

This PR is already pushed to GeoSpark 1.1.0-SNAPSHOT. To use GeoSpark SNAPSHOT version, please read [1].

To read your shapefile, add the following line before your shapefile reader.

System.setProperty("geospark.global.charset","utf8")

For instance,

System.setProperty("geospark.global.charset","utf8")
spatialRDD.rawSpatialRDD = ShapefileReader.readToGeometryRDD(sparkSession.sparkContext, "/PATH/realestate_mall_polygon/")

[1] GeoSpark Maven coordinates: https://github.com/DataSystemsLab/GeoSpark/wiki/GeoSpark-All-Modules-Maven-Central-Coordinates

@marcomeng

This comment has been minimized.

Copy link
Author

commented Feb 22, 2018

Thanks a lot! I just tried, it works!

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