#!//usr/bin/sh # # Using limit: 5000 # echo "Start time: "`date` echo "Downloading: 1 -> 5000" curl -s 'http://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0/usbuildingfootprints/collections/DC_Building_Footprints/items?f=json&limit=5000' > LOG0000.json sleep 5 echo "Downloading: 5001 -> 10000" curl -s 'http://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0/usbuildingfootprints/collections/DC_Building_Footprints/items?f=json&startIndex=5001&limit=5000' > LOG0001.json sleep 5 echo "Downloading: 10001 -> 15000" curl -s 'http://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0/usbuildingfootprints/collections/DC_Building_Footprints/items?f=json&startIndex=10001&limit=5000' > LOG0002.json sleep 5 echo "Downloading: 15001 -> 20000" curl -s 'http://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0/usbuildingfootprints/collections/DC_Building_Footprints/items?f=json&startIndex=15001&limit=5000' > LOG0003.json sleep 5 echo "Downloading: 20001 -> 25000" curl -s 'http://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0/usbuildingfootprints/collections/DC_Building_Footprints/items?f=json&startIndex=20001&limit=5000' > LOG0004.json sleep 5 echo "Downloading: 25001 -> 30000" curl -s 'http://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0/usbuildingfootprints/collections/DC_Building_Footprints/items?f=json&startIndex=25001&limit=5000' > LOG0005.json sleep 5 echo "Downloading: 30001 -> 35000" curl -s 'http://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0/usbuildingfootprints/collections/DC_Building_Footprints/items?f=json&startIndex=30001&limit=5000' > LOG0006.json sleep 5 echo "Downloading: 35001 -> 40000" curl -s 'http://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0/usbuildingfootprints/collections/DC_Building_Footprints/items?f=json&startIndex=35001&limit=5000' > LOG0007.json sleep 5 echo "Downloading: 40001 -> 45000" curl -s 'http://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0/usbuildingfootprints/collections/DC_Building_Footprints/items?f=json&startIndex=40001&limit=5000' > LOG0008.json sleep 5 echo "Downloading: 45001 -> 50000" curl -s 'http://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0/usbuildingfootprints/collections/DC_Building_Footprints/items?f=json&startIndex=45001&limit=5000' > LOG0009.json sleep 5 echo "Downloading: 50001 -> 55000" curl -s 'http://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0/usbuildingfootprints/collections/DC_Building_Footprints/items?f=json&startIndex=50001&limit=5000' > LOG0010.json sleep 5 echo "Downloading: 55001 -> 60000" curl -s 'http://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0/usbuildingfootprints/collections/DC_Building_Footprints/items?f=json&startIndex=55001&limit=5000' > LOG0011.json echo "End time: "`date`