博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
android+spatialite数据离线存储涉及的工具包
阅读量:4557 次
发布时间:2019-06-08

本文共 801 字,大约阅读时间需要 2 分钟。

1、spatialite操作手册:

spatialite支持的格式:

  • Well-Known Text (WKT) format
  • Well-Known Binary (WKB) format
  • Internal BLOB format [the one used by SpatiaLite to store geometries in SQLite columns]

SELECT AsText(geometry) FROM table;这就把数据读取出来

2、GeometryEngine 参考:

jsonToGeometry

public static  jsonToGeometry(org.codehaus.jackson.JsonParser json)
Imports the MapGeometry from it's JSON representation. M and Z values are not imported from JSON representation. 
 
Parameters:
json - The JSON representation of the geometry (with spatial reference).
Returns:
The MapGeometry instance containing the imported geometry and it's spatial reference.
 

3、想法:数据存在spatialite里面,用SELECT AsText(geometry) FROM table选取出来,然后把WKT专成json,最后用jsonToGeometry生成Geometry实现地图的绘制。

转载于:https://www.cnblogs.com/pShan/archive/2013/03/31/2991374.html

你可能感兴趣的文章
latex 去掉(不显示)空白页的页码与页眉
查看>>
Spring MyBatis多数据源分包
查看>>
HDOJ 1879 继续畅通工程
查看>>
spring Springmvc mybatis maven整合
查看>>
方法参数(值调用,引用调用)
查看>>
有名管道的非阻塞设置
查看>>
Git使用教程-idea系列中git使用教程
查看>>
diff.js 列表对比算法 源码分析
查看>>
模块运用,文件搜索
查看>>
基于托管C++的增删改查及异步回调小程序
查看>>
hdu 1811 Rank of Tetris
查看>>
56. Merge Intervals 57. Insert Interval *HARD*
查看>>
java 调整jvm堆大小上限
查看>>
浏览器全屏之requestFullScreen全屏与F11全屏
查看>>
软件包管理:rpm命令管理-安装升级与卸载
查看>>
旋转图像
查看>>
字符串中的数字(字符串、循环)
查看>>
15.select into
查看>>
缓存-->Java中缓存的原理
查看>>
运行web项目端口占用问题
查看>>