Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- details4kml

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
details4kml
Synopsis
/infobank/programs/kml/details4kml/details4kml.for
Description
  Program to create details4kml.kml file

  Author
  Alex Ma     9/29/2007

       
Reads
      read (90, '(q,a)', end=199) Record1Length, 
     *                   Record1(1:Record1Length)
      read (Record1(RecTab(1)+1:RecTab(2)-1), '(f16)') North
      read (Record1(RecTab(2)+1:RecTab(3)-1), '(f16)') South
      read (Record1(RecTab(3)+1:RecTab(4)-1), '(f16)') East
      read (Record1(RecTab(4)+1:RecTab(5)-1), '(f16)') West
      read (95, '(q,a)', end=298) OtherRecLength, 
     *                 OtherRec(1:OtherRecLength)
      read (95, '(q,a)', end=299) OtherRecLength, 
     *                 OtherRec(1:OtherRecLength)
      read (96, '(q,a)', end=399) KmlRecLength,
     *                   KmlRec(1:KmlRecLength)
Writes
      write (91, '(a)') '<?xml version="1.0" encoding="UTF-8"
      write (91, '(a)') 
     *     '<kml xmlns="http://earth.google.com/kml/2.0
      write (91, '(a)') '<Documen
      write (91, '(2x,a)') '<name>Area Details&l
      write (91, '(2x,a)') '<LookA
      write (91, '(4x,a)') '<longitude>-113.33</lo
      write (91, '(4x,a)') '<latitude>41.1</l
      write (91, '(4x,a)') '<range>7600000<
      write (91, '(2x,a)') '</LookA
      write (91, '(2x,a)') '<visibility>0</vis
          write (91, '(4x,a)') '<Folde
          write (91, '(6x,a)') '<name&
     *          AtlasName(1:AtlasNameLength)//'</nam
          write (91, '(6x,a)') KmlRec(1:KmlRecLength)
              write (91, '(6x,a)') '<visibility>0</vis
              write (91, '(6x,a)') KmlRec(1:KmlRecLength)
          write (91, '(4x,a)') '</Folde
      write (91, '(a)') '</Documen
      write (91, '(a)') '</km
Opens
      open (unit = 99,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/badregions.temp')
      open (unit = 90,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/tmp/finalarealist.temp')
      open (unit = 91, 
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/kml'//
     *             '/details4kml/details4kml.kml')
      open (unit = 95,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/tmp/atlaskmlsuite.other.list')
      open (unit = 96,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = OtherRec(1:OtherRecLength-1)//'l' )
Calls
      call system ('/bin/cp /infobank/programs/kml/atlaskmlsuite/'//
     *             'gazette.sorted.keep '//
     *             '/infobank/tmp/finalarealist.temp')
      call includeit (91,
     *    '/infobank/programs/keep/infobank_style.keep')
      call changecase ('SMALLS', AtlasID(1:AtlasIDLength))
      call changecase ('CAPITALS', CapAtlasID)
      call system ('(/usr/bin/ls -1 /infobank/programs/html/kml'//
     *             '/regions/'//AtlasID(1:AtlasIDLength)//
     *             '/*.kmz > /infobank/tmp/atlaskmlsuite.other.list)
     *             ' >& /dev/nul
      call kmlzip 
     *  ('/infobank/programs/kml/details4kml/details4kml.kml')

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/details4kml/details4kml.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:39:06 PDT 2013  (chd)