Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- zipcollections4kml

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
zipcollections4kml
Synopsis
/infobank/programs/kml/zipcollections4kml/zipcollections4kml.for
Description
  Program that prompt for type of directory, then 

  zips all .kml files into .kmz files
  AUTHOR
  Alex Ma     5/3/06

       
Reads
      read (*, '(i)', end=999) ZipType
      read (80, '(q,a)') CWDLength, CWD
      read (82, '(q,a)', end = 666) FileNameLength, FileName
      read (82, '(q,a)', end = 777) FileNameLength, FileName
Writes
Opens
      open (unit = 80,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/tmp/current.temp')
      open (unit = 82,
     *      access = 'sequential',
     *      form = 'formatted',
     *      status = 'old',
     *      name = '/infobank/tmp/kmllist.temp')
Calls
          call stringlen(Collection(Loop), NameLength)
      call stringlen(Collection(ZipType), NameLength)
      call system ('/usr/bin/pwd > /infobank/tmp/current.tem
      call stringlen(newDir, newDirLength)
      call system ('/usr/bin/cp '//newDir(1:newDirLength)//
     *             '/*.kml '//CWD(1:CWDLength))
      call system ('/bin/ls -1 '//newDir(1:newDirLength)//
     *             '/*.kml > /infobank/tmp/kmllist.tem
      call system ('zip '//NewFile(1:NewFileLength)//' '
     *             //FileName(1:FileNameLength))
      call system ('/bin/cp '//NewFile(1:NewFileLength)//
     *             ' '//newDir(1:newDirLength))
          call system ('/bin/rm '//
     *                  FileName(1:FileNameLength))
          call system ('/bin/rm '//
     *                  NewFile(1:NewFileLength))

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