evilGmonkey / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

Enhancement: URLs for file grabs #309

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Want a URL that points to a download of the CSV or KML.

I got it all setup and can get the KML or CSV (CSV has time but KML
does not) and display it in ArcMap but it is a manual process.  Just
wanted a way to grab the KML file from a URL so i can do it easily in
Python like this that I did for EPICollect.  

import  arcpy, os, urllib, sys

# Setup URL
kmlURL = 
"http://epicollectserver.appspot.com/getMapKML?projectKey=ahBlcGljb2xsZWN0c2Vydm
VychALEgdQcm9qZWN0GJ-E3AEM"

kmlFile = "c:/temp/epilitter.kml"

# Get html page and store in a local file
urllib.urlretrieve(kmlURL, kmlFile)

Hope that makes sense.  I will submit it online.

Thanks a lot

Original issue reported on code.google.com by dougb...@gmail.com on 25 Aug 2011 at 6:37

GoogleCodeExporter commented 9 years ago

Original comment by wbrune...@gmail.com on 25 Aug 2011 at 9:53