项目作者: alex0112

项目描述 :
Translate Delorme Street Atlas Plus draw files to KML for use in google maps
高级语言: Perl
项目地址: git://github.com/alex0112/mappy.git
创建时间: 2016-04-27T20:51:36Z
项目社区:https://github.com/alex0112/mappy

开源协议:GNU General Public License v3.0

下载


mappy

Quick script to turn old Delorme Street Atlas Plus draw files into KML files for use in google maps.

Created to solve this problem

Usage:

perl mappy.pl inputfile.txt outputfile.kml

Example:

  1. BEGIN POLY
  2. 40.644178,-74.161223
  3. 40.641818,-74.143576
  4. 40.643535,-74.134298
  5. 40.643878,-74.125925
  6. 40.648084,-74.109972
  7. 40.644178,-74.161223
  8. END

Becomes:

  1. <?xml version='1.0' encoding='UTF-8'?><kml xmlns='http://www.opengis.net/kml/2.2'><Document><name>NAME GOES HERE.</name><description><![CDATA[LAYER NAME GOES HERE]]></description><Folder><name>Auto Generated Layer From Delorme</name>
  2. <Placemark><Polygon><outerBoundaryIs><LinearRing><tessellate>1</tessellate>
  3. <coordinates>
  4. -74.161223,40.644178,0
  5. -74.143576,40.641818,0
  6. -74.134298,40.643535,0
  7. -74.125925,40.643878,0
  8. -74.109972,40.648084,0
  9. -74.161223,40.644178,0
  10. -74.161223,40.644178,0
  11. </coordinates></LinearRing>
  12. </outerBoundaryIs>
  13. </Polygon>
  14. </Placemark>
  15. </Folder></Document></kml>

Also supports Symbols, Lines, and Notes.