问题
Read & Write shapefiles in android or java
How can i read and write shapefiles in Android or java?
.shp .shx and etc
i much searched but nothing
I want read file and edit information and write in same file or new file.
This is important i can write to file. i can read file but this isn't my problem
Thanks
回答1:
Take Gdal for android for a try.
- Gdal
A translator library for raster and vector geospatial data formats that is released under an X/MIT style Open Source license by the Open Source Geospatial Foundation. As a library, it presents a single raster abstract data model and single vector abstract data model to the calling application for all supported formats. It also comes with a variety of useful command line utilities for data translation and processing. The NEWS page describes the January 2017 GDAL/OGR 2.1.3 release.
http://www.gdal.org/
- Read/Write API Tutorial
http://www.gdal.org/ogr_apitut.html
- Building for Android on Linux
https://trac.osgeo.org/gdal/wiki/BuildingForAndroid
- Either, google for pre-compiled package
来源:https://stackoverflow.com/questions/42482347/read-write-shapefiles-in-android-or-java-shp