JAK KML java合并文本到kml

时间:2013-11-25 15:44:19

标签: java kml google-fusion-tables

有没有人有使用JAK kml包的经验?我正在尝试生成一个KML文件。我从谷歌融合表中提取已经生成的多边形对象。

如何将其传递到JAK而无需通过每个纬度/长线对并调用;

.addToCoordinates(-122.3662784465226,37.81884427772081,30)

 <Polygon><outerBoundaryIs><LinearRing><coordinates>-88.47298,34.99603,0.0 -88.47288,34.99603,
0.0 -88.37504,34.99561,0.0 -88.30513,34.99561,0.0 -88.24958,34.99546,0.0 -88.20006,34.99563,
0.0 -88.20006,34.99564,0.0 -88.09899,34.88335,0.0 -88.10789,34.8091,
0.0 -88.13023,34.64853,0.0 ,0.0 -88.63014,34.99547,0.0 -88.52806,34.99583,0.0</coordinates></LinearRing></outerBoundaryIs></Polygon>

1 个答案:

答案 0 :(得分:0)

如果你能以某种方式获得坐标列表,可以使用LinearRing类中的setter:setCoordinates(java.util.List coordinates)。 (http://www.nilab.info/docs/jak091130/de/micromata/opengis/kml/v_2_2_0/LinearRing.html#setCoordinates%28java.util.List%29