我想显示从google map API中的SHP文件中提取的Shapefile数据:
DATA:数组
(
[Id] => 0
[area] => 164.914
[PARCID] =>
[已删除] => 0
)
SHAPE:数组
(
[xmin] => 539544.25
[ymin] => 3947728.5
[xmax] => 539559.4375
[ymax] => 3947745.75
[numparts] => 1
[numpoints] => 15
[部分] =>排列
(
[0] =>排列
(
[points] =>排列
(
[0] =>排列
(
[x] => 539546
[y] => 3947731.75
)
[1] => Array
(
[x] => 539544.25
[y] => 3947732
)
[2] => Array
(
[x] => 539545.5
[y] => 3947736.5
)
[3] => Array
(
[x] => 539546.375
[y] => 3947739.5
)
[4] => Array
(
[x] => 539546.8125
[y] => 3947741
)
[5] => Array
(
[x] => 539548.1875
[y] => 3947745.75
)
[6] => Array
(
[x] => 539556
[y] => 3947743
)
[7] => Array
(
[x] => 539556.1875
[y] => 3947743.5
)
[8] => Array
(
[x] => 539559.4375
[y] => 3947742.25
)
[9] => Array
(
[x] => 539557.8125
[y] => 3947737
)
[10] => Array
(
[x] => 539556.75
[y] => 3947733
)
[11] => Array
(
[x] => 539555.375
[y] => 3947728.5
)
[12] => Array
(
[x] => 539554.5
[y] => 3947728.75
)
[13] => Array
(
[x] => 539549.3125
[y] => 3947730.75
)
[14] => Array
(
[x] => 539546
[y] => 3947731.75
)
)
)
)
)
但当我检查它获得LATLNG坐标时,任何人都可以帮助将这些X,Y数据放在谷歌地图数据上!!!!
谢谢
答案 0 :(得分:0)
确定要使用的是JSON来解析它并将其发送到Google地图。首先,您需要将数字格式化为实际纬度经度坐标。以下是如何使用JSON解析它:http://code.google.com/apis/maps/documentation/localsearch/jsondevguide.html
或者,我不确定您要对数据做什么,但您可以通过查询字符串发送它。 (例如http://maps.google.com/maps?q=52.961875,55.003296)。