可以使用字符串varchar,然后取出数据之后将字符串转化为double类型或float类型
可以存储这些经/纬度数据,如波纹管 -
$arr = array("13.692941, 100.750723",
"13.70649,100.75405999999998",
"13.71334,100.75428999999997",
"13.72268,100.74638000000004")
// serialize data before save to database, you should deserialized that when you will use this data after query.
$serializedArr = serialize($arr)
insert into geom (g) values ("{$serializedArr}")
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)