Developer's Corner Aggregation ArcSDE Internet Work Layer Process changes and make updates Free le download from source Serve Content ArcGIS Server Client Consumption Web Services (SOAP/REST) Intranet/ Internet Current Layer History Layer Local File System ArcMap Documents Layer Files Spatial Views An overview of the aggregated live feed methodology rem ***************** rem * Start process * rem ***************** :Main echo. >>%log% echo Feed Update Started:%TIME% %DATE% >>%log% echo ------------------------------------------------ >%TempLog% echo. echo Starting `%feedtitle%' load routine echo -----------------------------------------------echo. call :SetWorkDir if not defined Abort ( call :DownloadRoutine if not defined Abort ( call :CheckArcSDE if not defined Abort ( call :TruncateLayer for %%i in (%FileMask%) do ( if not defined Abort ( call :CheckShapefile "%%i" if not defined Skipped ( call :ProcessFile "%%i" ) ) ) ) ) ) www.esri.com Figure 1: Sample code for shapefile loader to download feed content from the Internet, which avoids having many users requesting the same feed content. Clients can access these local services as operational layers or fuse them with other basemaps and operational content. The current methodology can handle shapefiles from vendors such as DTN/ Meteorlogix (www.dtnmeteorlogix.com); stream gauge information in a variety of spatial formats from the U.S. Geological Survey (USGS) at water.usgs.gov/waterwatch; and earthquake information in XML format (also from USGS) at earthquake.usgs.gov/ eqcenter/catalogs/. It can use Internet sources such as Common Alerting Protocol (CAP/ XML) content from the National Weather Service (www.weather.gov/alerts). CAP data is supplied in an open, nonproprietary standard data interchange format and provides details about weather and public safety warnings and alerts. Aggregated live feeds can also make use of raw ASCII, comma-separated values (CSV), and some custom formats. The application makes use of utilities that allow the scripts to handle decompressing files. Once the data is pushed into ArcSDE, ArcGIS Server services are authored and served. Monitoring and notification on the availability of ArcGIS and ArcIMS services are furnished by ServiceMonitor, a Windows batch script developed by Dodd that uses DOS and a few off-the-shelf public domain utilities to monitor the availability of most Continued on page 38 ArcUser Spring 2009 37