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 · 5 comments

Comments

@marcomeng
Copy link

No description provided.

@jiayuasu
Copy link
Member

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

@marcomeng
Copy link
Author

sent the mail, thanks.

@jiayuasu
Copy link
Member

@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
Copy link
Author

Thanks a lot! I just tried, it works!

@yijialee
Copy link

now you should write like this:

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

Kontinuation pushed a commit to Kontinuation/sedona that referenced this issue Oct 11, 2024
Co-authored-by: jameswillis <james@wherobots.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants