Hi there, I'm wondering if anyone has a suggestion for a tool or method that would be an efficient solution for my need.
I need to be able to automatically download a shapefile from the usgs website when an earthquake (event) over magnitude 5 occurs in California.
The shapefile contains polygons of shaking intensity bands which will be fed into an internal workflow to perform further analysis.
I believe there are a few ways that this can be achieved (eg. custom python script and/or SSIS). My hope is there is a tool available that I'm not aware of
There is an rss feed from USGS which could be the trigger. I have looked at ESRI GeoEvent processor but it doesn't have the ability to download that I can find.
I'm thinking of using SSIS to receive the rss data to an sql server table which can be searched for the region and magnitude but then I need a way to go to the event url and download a zipfile automatically.
I appreciate any advice or experience others may have with similar projects.
Thanks
I am not aware of any ArcGIS Geoprocessing tool that does that but if you know little bit of Python, the following answer should help: How do I download a file over HTTP using Python? - Stack Overflow
In any case, try to be gentle with automated download so you don't take the service down or deny the service to other people by accident. If the information you need is already in the RSS feed, writing a new shapefile based on the RSS feed might be a more elegant option.
Thanks Filip,
There is some information we need in the RSS such as location and magnitude which we can filter but not all the shake intensity polygon data. I wondering now if that is available as geojson and could be written to a new shapefile, hadn't thought of that .