I'm trying to download the latest congressional district files from here:
https://hub.arcgis.com/datasets/7a29abb3bc1d4acf86903560dd95b98f_0?geometry=-179.861%2C-16.763%2C-179.510%2C72.141
The download link is broken.
I've also tried fetching the shapefile via curl, using the url that shows up in the javascript console.
$ curl "https://opendata.arcgis.com/datasets/7a29abb3bc1d4acf86903560dd95b98f_0.zip"
{"status":"Failed/rescheduled","type":"Map Service","serviceUrl":"https://geo.dot.gov/server/rest/services/NTAD/Congressional_Districts/MapServer/0"}
Can someone help to fix this or give me an alternate path to the shape data? Thanks.
You could query the Esri layer, too.
If you just want the equivalent data, you can get this from the Living Atlas on AGOL. Getting that download link to work (I can't get it either) would probably require the data owner to change some settings on their end.
Thanks, Josh! How can I download the Living Atlas data? I don't see a way.
If you're working with the service in desktop software, you should be able to export the features. If you want to skip that step and just directly download a shapefile, you'd need to find a direct download link that works, perhaps outside of the various Esri sites.
I've looked around at the usual places (data.gov, US Census shapefiles) and do not see the 117th districts as having been added yet. You might try contacting the user who manages the Living Atlas layer to find out more about the original source .
Thanks, Josh! I called ESRI and they gave me the email of someone on the Living Atlas Team who might be able to at least direct me to someone who could help. If you have a contact on that team I'd love to have it.
Like you, I looked in the usual places and I googled a bunch and I couldn't find the dataset anywhere else.
It sounds like worst case is that I purchase a $100/year non-commercial license to the software and, as you say, I download the features I want.
Thanks again!
I'm very comfortable with Python and APIs. But, the REST endpoint query link you provided goes to DOT and, when I query their endpoint I get an error. So, I'm back to waiting and hoping that someone at Living Atlas either has the shapefiles or has a contact at DOT that I can ask about them.
Keeping my fingers crossed.
Thanks!
Oooh! That's very interesting. So, with enough queries, or one very broad query if it doesn't blow up, I could transfer all of the data to my local machine and then figure out how to turn it into a shape file, right? I have thousands of coordinate pairs to map to congressional districts so I prefer to download all of the data.
That's right! Not to toot my own horn, but there's a similar post related to "chunked" style queries I responded to here.
Outside of the ArcGIS Python API, GeoPandas can also read the JSON response from a URL query into geometry features.
Awesome! I'm keeping my fingers crossed that I can get that link fixed or an alternate source of that data. If not then I'll try your approach. Thanks very much.
Hey! Have you found a solution for this? I am unfamiliar with queries
okay great, thank you!
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.