Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- sampsnavshelper

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
sampsnavshelper
Synopsis
/infobank/programs/kml/samps2kmlinc/sampsnavshelper.for
Description
  Subroutine to help sampsnavfolder

  To draw triangle or square by label
  according to the start or end 
  co-ordinates
       
AUTHOR
  Sumy Tom        3/28/2008

  Carolyn Degnan, 8/2/2012, Added sp format specification to output positive lat/lons with plus signs.

    
Reads
      read (OnOffFile, '(q,a)', end = 199) 
     *    ALineLength, ALine(1:ALineLength)
 2     read(ALine(Loop:StartNameLength + Loop), 
     * '(a)')
     * StartName
 3     read(ALine(Loop:OnNameLength + Loop),
     * '(a)')
     * OnName
 4     read(ALine(Loop:EndNameLength + Loop),
     * '(a)')
     * EndName
 5    read(ALine(Loop:OffNameLength + Loop),
     * '(a)')
     * OffName
         read (ALine, '(t16,f9.5,t26,f10.5)', err=1) Lat, Long
         read (ALine, '(t17,f10.6,t28,f11.6)', err=1) Lat, Long
Writes
      write (ALine, '(1024x)')
      write (SampsNavUnit, '(2x,a)') '<Placemark
         write (SampsNavUnit, '(4x,a)') '<styleUrl>#Triangle</s
         write (SampsNavUnit, '(4x,a)') '<styleUrl>#Square</s
      write (SampsNavUnit, '(4x,a)') '<visibility>1</vis
      write (SampsNavUnit, '(4x,a)') '<Poin
      write (SampsNavUnit, '(6x,a)') '<coordinate
      write (SampsNavUnit, '(sp,8x,f11.6,a,f10.6,a)') 
     *   Long,',',Lat,',0'
      write (SampsNavUnit, '(6x,a)') '</coordinates
      write (SampsNavUnit, '(4x,a)') '</Poin
      write (SampsNavUnit, '(2x,a)' ) '</Placemar
Opens
Calls

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