Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- kmllookat

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
kmllookat
Synopsis
/infobank/programs/share/kmllookat.for
Description
  Subroutine to add the LookAt section to KMLs.

       
AUTHOR
  Clint Steele     7/15/2007

  Carolyn Degnan   2/23/2009 added check for seis in second component of suffix

    
Reads
      read (50, '(t10,f9.5,1x,f9.5,1x,f10.5,1x,f10.5)')
     *    North, South, East, West
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>'//AkaID(1:AkaIDLength)//
     *       '           seis</nam
              write (KmlFile, '(2x,a)') 
     *            '<name>'//AkaID(1:AkaIDLen
     *            '  '//DataType//'</name>'    
              write (KmlFile, '(2x,a)')
     *            '<name>'//AkaID(1:AkaIDLength)//
     *            DataType//'  '//
     *            FileName(Underscore+1:FileNameLength)//
     *            '</nam
      write (KmlFile, '(2x,a)') '<LookA
      write (KmlFile, '(4x,a,f10.5,a)')
     *    '<longitude>',Long,'</lo
      write (KmlFile, '(4x,a,f9.5,a)')
     *    '<latitude>',Lat,'</l
      write (KmlFile, '(4x,a,f9,a)') '<altitude>',Range,'</a
      write (KmlFile, '(4x,a)')   
     *            '<altitudeMode>relativeToGround</altit
      write (KmlFile, '(4x,a,f9,a)') '<range>',Range,'<
      write (KmlFile, '(4x,a)')   '<tilt>0&l
      write (KmlFile, '(4x,a)')   '<heading>0</
      write (KmlFile, '(2x,a)') '</LookA
      write (KmlFile, '(a)') ' '
Opens
      open (unit = 50,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/'//ID(1:1)//'/'//ID(1:IDLength)//
     *             '/meta/'//LongID(1:IDLength+3)//'.navarea')
Calls
      call stringlen (FileName, FileNameLength)
      call stringlen (DataType, DataTypeLength)
      call stringlen (AkaID, AkaIDLength)
      call includeit (KmlFile,
     *    '/infobank/programs/keep/infobank_style.keep')

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