Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- projects4kml

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
projects4kml
Synopsis
/infobank/programs/kml/projects4kml/projects4kml.for
Description
  Program to form collections of navigation .kmls by project.

       
COMMENTS
  This program uses collections of IDs from projects2idshtml

    
RELATED_PROGRAMS
  platforms4kml.for       years4kml.for    regions4kml.for    

  participants4kml.for    organizations4kml.for
    
AUTHOR
  Clint Steele    4/28/2006

    
AUTHOR
  Sumy Tom        12/21/2010 modified for .keep change


    
Reads
      read (ControlFile, '(q,a)', end = 99) ProjectLineLength, 
     *    ProjectLine
          read (IDFile, '(q,a)', end = 98)
     *        JpgLength, Jpg(1:JpgLength)
      read (TempName, '(q,a), end = 97')
     *    ZipNameLength, ZipName(1:ZipNameLength)
Writes
      write (ProjectLine, '(1024x)')
      write (Project, '(1024x)')
Opens
      open (unit = ControlFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/projects4kml.control.temp')
      open (unit = IDFile,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'unknown',
     *      name = '/infobank/tmp/projects4kml.150px.temp')
Calls
      call system ('/bin/rm /infobank/programs/'//
     *             'kml/projects4kml/projects/*')     
      call system ('/bin/ls /infobank/programs/keep/translate/'//
     *                      'projects > /infobank/tmp/
     *                      'projects4kml.control.temp')
      call changecase ('SMALLS', Letter)
      call stringlen (Project, ProjectLength)
      call system ('/bin/grep '//
     *    '150px.jpg '//
     *    '/infobank/programs/html/projects2idshtml/'//
     *    Letter//'/"'//
     *    Project(1:ProjectLength)//
     *    '"_ids.html > 
     *    '/infobank/tmp/projects4kml.150px.temp')
          call system ('/bin/mkdir /infobank/tmp/projects4kml')
          call system ('/bin/cat '//Jpg(InfoBank:Dot)//'*nav.kml '//
     *        ' | grep -v "<?xml version" 
     *        ' | grep -v "<kml xmlns" 
     *        ' | grep -v "</kml>
     *        ' > /infobank/tmp/projects4kml/
     *        Jpg(Slashb4Dot + 1 : Dot-1)//'.nav.kml')
      call system ('/bin/cat '//
     *    '/infobank/programs/keep/kmlhead.keep '//
     *    '/infobank/tmp/projects4kml/*.kml '//
     *    '/infobank/programs/keep/kmlfoot.keep '//
     *    ' > /infobank/programs/kml/projects4kml/
     *    '/projects/"'//
     *    Project(1:ProjectLength)//'".kml')
      call kmlzip (ZipName(1:ZipNameLength))
      call system ('/bin/rm '//
     *             '/infobank/tmp/projects4kml/*.kml')
      call system ('/bin/rmdir '//
     *             '/infobank/tmp/projects4kml')
      call system ('/bin/rm '//
     *             '/infobank/tmp/projects4kml.*.temp')

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