Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- staff4kml

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

       
AUTHOR
  Clint Steele    4/12/2006

  changed value in the variable NameEnd, .200jpg to .jpg
  Sumy Tom        4/19/2010

    
Reads
          read (90, '(q,a)', end = 99)
     *        ALineLength, ALine(1:ALineLength)
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 (CapLine, '(1024x)')
      write (91, '(a)') '<Folde
      write (91, '(2x,a)') '<nam
          write (91, '(4x,a)') CapLine(Underscore+1:NameEnd)//' '//
     *                         CapLine(NameStart:Underscore-1)
          write (91, '(4x,a)') CapLine(NameStart:NameEnd)
      write (91, '(2x,a)') '</nam
      write (91, '(a)') '<GroundOverla
      write (91, '(2x,a)') '<descriptio
      write (91, '(4x,a)') '<![CDAT
          write (91, '(6x,a)') '<a href="http://walrus.wr.usgs.gov
     *    '/infobank/programs/html/staff2html/staff/'//
     *    CapLine(Underscore+1:NameEnd)//'_'//
     *                         CapLine(NameStart:Underscore-1)//
     *                         '.html" target="new">
     *                         CapLine(Underscore+1:NameEnd)//' '//
     *                         CapLine(NameStart:Underscore-1)//'</
          write (91, '(6x,a)') '<a href="http://walrus.wr.usgs.gov
     *    '/infobank/programs/html/staff2html/staff/'//
     *    CapLine(NameStart:NameEnd)//
     *                         '.html" target="new">
     *                         CapLine(NameStart:NameEnd)//'</
      write (91, '(4x,a)') ']]&g
      write (91, '(2x,a)') '</descriptio
      write (91, '(2x,a)') '<nam
      write (91, '(4x,a)') 'staff page'
      write (91, '(2x,a)') '</nam
      write (91, '(2x,a)')   '<visibility>1</vis
      write (91, '(2x,a)') '<Ico
      write (91, '(4x,a)') '<href&
     *    'http://walrus.wr.usgs.gov'//
     *    ALine(1:ALineLength)//'</hre
      write (91, '(2x,a)') '</Ico
      write (91, '(2x,a)') '<LatLonBo
      write (91, '(4x,a,f,a)') '<north>', North, '<
      write (91, '(4x,a,f,a)') '<south>', North-13.3, '<
      write (91, '(4x,a,f,a)') '<east>', West + 10.0, '&l
      write (91, '(4x,a,f,a)') '<west>', West, '&l
      write (91, '(2x,a)') '</LatLonBo
      write (91, '(a)') '</GroundOverlay
      write (91, '(a)') '</Folde
      write (91, '(a)') '</Documen
      write (91, '(a)') '</km
Opens
      open (unit = 90,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/staff4kml.temp')
      open (unit = 91,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/programs/kml/staff4kml/staff.kml')
Calls
      call system ('/bin/ls -1 /infobank/programs/html/staff2html'//
     *    '/photos/*.jpg > /infobank/tmp/staff4kml.tem
      call system ('/bin/rm '//
     *    '/infobank/programs/kml/staff4kml/staff.km*')
      call changecase ('CAPITALS', CapLine(NameStart:NameStart))
      call changecase ('CAPITALS', CapLine(Underscore+1:Underscore+1))
         call system ('/bin/rm /infobank/programs/kml/staff4kml/'//
     *                         'staff.kmz')
      call system ('/bin/zip '//
     *  '/infobank/programs/kml/staff4kml/staff.kmz '//
     *  '/infobank/programs/kml/staff4kml/staff.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/staff4kml/staff4kml.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:38:57 PDT 2013  (chd)