NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

Changeset 55

Show
Ignore:
Timestamp:
03/29/07 10:25:36
Author:
jcleary
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • allinsitu_2_shape/trunk/allinsitu_2_shape/allinsitu_2_shape.pl

    r54 r55  
    11#! /usr/bin/perl -w 
     2 
     3## NAME: allinsitu_2_shape.pl 
     4## 
     5## Converts an hourly WFS request to a shapefile for NCCOOS IM mouseovers 
     6## 
     7## This script makes an hourly WFS request to the main SEACOOS OBS DB via an OGC wrapper 
     8## that returns a GML containing formatted strings of the latest observations for each station in the BBOX. 
     9## The resultant GML is then reformatted to make its subsequent conversion to shapefile 
     10## more clean.  OGR2OGR does the conversion on only the fields of interest.  The new shapefile 
     11## is placed in a directory to be SFTP.d to Maury.  This shapefile is used on Maury to power 
     12## the Mouse Over Observations layer in the NCCOOS Interactive Map. 
    213 
    314use LWP::Simple; 
     
    1122$dest_dir='/home/jcleary/data/'; 
    1223 
    13 # GML data location on Nautilus 
     24# GML data from Nautilus 
    1425#$file_url='http://nautilus.baruch.sc.edu/wfs/seacoos_in_situ?version=1.0.0&service=WFS&request=getfeature&bbox=-79.2,32.5,-73.9,37.2&typename=latest_in_situ_obs&time_offset_hours=2'; 
    1526