我正在开发移动 GIS Android 应用程序。我想导出 ESRI Shapefiles来 self 的 Spatialite用户离线时的数据库。我怎样才能做到这一点?有什么图书馆可以帮助我吗?
最佳答案
在spatialite.h
你可以找到这个函数:
SPATIALITE_DECLARE int dump_shapefile (sqlite3 * sqlite, char *table,
char *column, char *shp_path,
char *charset, char *geom_type,
int verbose, int *rows,
char *err_msg);
这正是您要找的。p>
但是,您必须找到支持该功能的 Android 包装器(它可能不可用)。另一种方法是使用 GDAL for Android使用 spatialite 驱动程序将数据转换为 Shapefile:在 this utility 中查看他们是如何做到的包含在 geotools-android 中。
关于android - 如何从android中的spatialite数据库获取导出shapefile,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49706767/