Expanded Description
| Topic |
Description |
| Name |
mergekml |
| Synopsis |
/infobank/programs/kml/mergekml/mergekml.for |
| Description |
Program to create collections of .kml files
|
| AUTHOR |
Clint Steele 1/31/2008
|
| Reads |
read (5, '(q,a)', end = 999)
* ControlLength, Control(1:ControlLength)
read (5, '(q,a)', end = 999)
* TitleLength, Title(1:TitleLength)
read (ControlFile, '(q,a)', end = 299)
* ALineLength, ALine(1:ALineLength)
read (TempFile, '(q,a)', end = 99)
* ALineLength, ALine(1:ALineLength)
|
| Writes |
write (KmlFile, '(a)')
* '<?xml version="1.0" encoding="UTF-8"
write (KmlFile, '(a)')
* '<kml xmlns="http://earth.google.com/kml/2.0
write (KmlFile, '(a)') '<Documen
write (KmlFile, '(2x,a)')
* '<name>'//Title(1:TitleLength)//'&l
write (KmlFile, '(2x,a)') '<LookAt&g
write (KmlFile, '(4x,a)') '<longitude>-113.33</lo
write (KmlFile, '(4x,a)') '<latitude>41.4</l
write (KmlFile, '(4x,a)')
* '<altitudeMode>relativeToGround</altit
write (KmlFile, '(4x,a)') '<range>10800000.0<
write (KmlFile, '(4x,a)') '<tilt>0&l
write (KmlFile, '(4x,a)') '<heading>0</
write (KmlFile, '(2x,a)') '</LookA
write (KmlFile, '(a)') '</Documen
write (KmlFile, '(a)') '</km
|
| Opens |
open (unit = ControlFile,
* access = 'sequential',
* form = 'formatted',
* status = 'unknown',
* name = Control(1:ControlLength))
open (unit = TempFile,
* access = 'sequential',
* form = 'formatted',
* status = 'unknown',
* name = '/infobank/tmp/mergekml.cattedfiles.temp')
open (unit = KmlFile,
* access = 'sequential',
* form = 'formatted',
* status = 'unknown',
* name = '/infobank/programs/kml/mergekml'//
* '/collections/'//KmlName(1:KmlNameLength))
|
| Calls |
call stringlen (KmlName, KmlNameLength)
call system ('/bin/cat '//
* ALine(1:ALineLength)//' >&g
* '/infobank/tmp/mergekml.cattedfiles.temp')
call includeit (KmlFile,
* '/infobank/programs/keep/infobank_style.keep')
call kmlzip ('/infobank/programs/kml/'//
* 'mergekml/collections/'//KmlName(1:KmlNameLength))
|
|