线,面的数据在mysql中大家都是怎么存储的?

6 views
Skip to first unread message

ylzyd12345

unread,
Mar 1, 2010, 9:51:27 PM3/1/10
to 谷歌地图 API 论坛
点很简单,使用lat,lng字段就可以了,但是线和面呢,大家是使用的字符串用,分开存贮,然后再解析后返回给前台的吗?

chenillen

unread,
Mar 13, 2010, 10:36:53 PM3/13/10
to 谷歌地图 API 论坛
我也占个位,请教一下。

@@

unread,
Mar 15, 2010, 2:50:49 AM3/15/10
to google-map...@googlegroups.com
mysql的那个geo扩展没有线这个字段吗?
postgre的geo扩展是直接有点 线 面 这些的

没什么精度要求的话可以考虑geo encode了储存

2010/3/2 ylzyd12345 <qigaof...@163.com>

Dorian

unread,
Mar 19, 2010, 5:17:34 AM3/19/10
to 谷歌地图 API 论坛
使用encoded polyline 之类的编码后存储。
Reply all
Reply to author
Forward
0 new messages