【问题标题】:Read & write shapefiles in android or java (.shp)在 android 或 java (.shp) 中读写 shapefile
【发布时间】:2017-02-27 09:43:31
【问题描述】:

在 android 或 java 中读写 shapefile

如何在 Android 或 java 中读写 shapefiles

.shp .shx 等

我搜索了很多,但什么也没有

我想读取文件和编辑信息并写入同一个文件或新文件。

这很重要,我可以写入文件。我可以读取文件,但这不是我的问题

谢谢

【问题讨论】:

    标签: android gis shapefile


    【解决方案1】:

    试试Gdal for android

    • 格达尔

    一个光栅和矢量地理空间数据格式的转换器库,由开源地理空间基金会在 X/MIT 风格的开源许可下发布。作为一个库,它为所有支持的格式向调用应用程序提供单个光栅抽象数据模型和单个矢量抽象数据模型。它还带有用于数据转换和处理的各种有用的命令行实用程序。新闻页面描述了 2017 年 1 月的 GDAL/OGR 2.1.3 版本。

    http://www.gdal.org/

    • 读/写 API 教程

    http://www.gdal.org/ogr_apitut.html

    • 在 Linux 上为 Android 构建

    https://trac.osgeo.org/gdal/wiki/BuildingForAndroid

    • 要么,谷歌预编译包

    【讨论】:

    • @YasharPanahi 你设法让 GDAL 工作了吗?当我尝试Driver driver = ogr.GetDriverByName("ESRI Shapefile"); 它返回null。我似乎无法让司机上班。
    • @WhizBoy 我没问题
    • @YasharPanahi 也许你可以分享 .aar 文件,如果你还有它?有人告诉我可能存在一些编译选项问题,但当时我似乎无法解决。除驱动程序外,其他一切都有效。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-01-14
    • 1970-01-01
    • 1970-01-01
    • 2022-08-17
    • 2013-11-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多