Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- mergekml

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
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))

Skip footer navigational links

Coastal and Marine Science Centers:  Pacific   St. Petersburg   Woods Hole  
InfoBank   Coastal and Marine Geology Program   Geologic Information   Ask-A-Geologist   USGS Disclaimer  


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://walrus.wr.usgs.gov/infobank/programs/kml/mergekml/mergekml.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:39:04 PDT 2013  (chd)