Index: allinsitu_2_shape/trunk/allinsitu_2_shape/allinsitu_2_shape.pl =================================================================== --- allinsitu_2_shape/trunk/allinsitu_2_shape/allinsitu_2_shape.pl (revision 54) +++ allinsitu_2_shape/trunk/allinsitu_2_shape/allinsitu_2_shape.pl (revision 55) @@ -1,3 +1,14 @@ #! /usr/bin/perl -w + +## NAME: allinsitu_2_shape.pl +## +## Converts an hourly WFS request to a shapefile for NCCOOS IM mouseovers +## +## This script makes an hourly WFS request to the main SEACOOS OBS DB via an OGC wrapper +## that returns a GML containing formatted strings of the latest observations for each station in the BBOX. +## The resultant GML is then reformatted to make its subsequent conversion to shapefile +## more clean. OGR2OGR does the conversion on only the fields of interest. The new shapefile +## is placed in a directory to be SFTP.d to Maury. This shapefile is used on Maury to power +## the Mouse Over Observations layer in the NCCOOS Interactive Map. use LWP::Simple; @@ -11,5 +22,5 @@ $dest_dir='/home/jcleary/data/'; -# GML data location on Nautilus +# GML data from Nautilus #$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';