Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- map4kml

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
map4kml
Synopsis
/infobank/programs/kml/map4kml/map4kml.for
Description
  Program to create a Ground Overlay .kml and .kmz for Google Earth.

       
AUTHOR
  Clint Steele     6/23/2006


    
Reads
      read (90, '(q,a)', end = 99) PathLength, Path
      read (90, '(q,a)', end = 99) NameLength, Name
      read (90, '(q,a)', end = 99) NorthLength, North(1:NorthLength)
      read (90, '(q,a)', end = 99) SouthLength, South(1:SouthLength)
      read (90, '(q,a)', end = 99) EastLength, East(1:EastLength)
      read (90, '(q,a)', end = 99) WestLength, West(1:WestLength)
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)') '<ScreenOverla
      write (KmlFile, '(4x,a)') '<Ico
      write (KmlFile, '(6x,a)') '<href>http://walrus.wr.usgs.
     *                     '/infobank/programs/html'//
     *                     '/tools/SmUSGS.png</hre
      write (KmlFile, '(4x,a)') '</Ico
      write (KmlFile, '(4x,a)') '<name>USGS Visual Identity&l
      write (KmlFile, '(4x,a)') '<overlayXY x="0" y="1" 
     *                     'xunits="fraction" yunits="fraction"/&g
      write (KmlFile, '(4x,a)') '<screenXY x="0" y="1" 
     *                     'xunits="fraction" yunits="fraction"/&g
      write (KmlFile, '(2x,a)') '</ScreenOverla
      write (KmlFile, '(a)')    '<GroundOverla
      write (KmlFile, '(2x,a)') '<name&
     *                     Name(1:NameLength)//
     *                     '</nam
      write (KmlFile, '(2x,a)') '<visibility>1</vis
      write (KmlFile, '(2x,a)') '<Ico
      write (KmlFile, '(4x,a)') '<href&
     *                     'http://walrus.wr.usgs.gov'//
     *                     Path(1:PathLength)//
     *                     '</hre
      write (KmlFile, '(2x,a)') '</Ico
      write (KmlFile, '(2x,a)') '<LatLonBo
      write (KmlFile, '(4x,a)') 
     *     '<north>'//North(1:NorthLength)//'<
      write (KmlFile, '(4x,a)') 
     *     '<south>'//South(1:SouthLength)//'<
      write (KmlFile, '(4x,a)') 
     *     '<east>'//East(1:EastLength)//'&l
      write (KmlFile, '(4x,a)') 
     *     '<west>'//West(1:WestLength)//'&l
      write (KmlFile, '(4x,a)') '<rotation>0</r
      write (KmlFile, '(2x,a)') '</LatLonBo
      write (KmlFile, '(a)')    '</GroundOverla
      write (KmlFile, '(a)')    '</Documen
      write (KmlFile, '(a)')    '</km
Opens
      open (unit = KmlFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = KmlFileName(1:KmlFileNameLength))
Calls
      call openem (1,0)
          call system ('/bin/rm '//Path(1:Dot)//'.kml')
          call system ('/bin/rm '//Path(1:Dot)//'.kmz')
      call stringlen (KmlFileName, KmlFileNameLength)
      call kmlzip (KmlFileName(1:KmlFileNameLength))

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