Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requests.exceptions.SSLError / NAIP no longer available through USGS National Map API? #5

Open
cmspeed opened this issue Feb 5, 2025 · 0 comments

Comments

@cmspeed
Copy link

cmspeed commented Feb 5, 2025

Hi all:

I am attempting to use this workflow to experiment with downloading NAIP imagery via the USGS National Map API.

I am running this: python download.py test.geojsons , where test.geojson looks like this:

{
"type": "FeatureCollection",
"name": "test",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "id": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -94.697848385007489, 39.259505706876944 ], [ -94.634973842109787, 39.259080878884397 ], [ -94.635240677799175, 39.219589196854983 ], [ -94.698115220696877, 39.220014024847529 ], [ -94.697848385007489, 39.259505706876944 ] ] ] ] } }
]
}

I am met with the following error:

requests.exceptions.SSLError: HTTPSConnectionPool(host='viewer.nationalmap.gov', port=443): Max retries exceeded with url: /tnmaccess/api/products?datasets=USDA+National+Agriculture+Imagery+Program+%28NAIP%29&bbox=-94.75%2C39.1875%2C-94.6875%2C39.25&outputFormat=JSON&version=1&prodExtents=3.75+x+3.75+minute&prodFormats=JPEG2000 (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] ssl/tls alert handshake failure (_ssl.c:1018)')))

Does the USGS National Map API no longer provide NAIP access? https://tnmaccess.nationalmap.gov/api/v1/products does not appear to contain the NAIP dataset anymore (though I am fairly sure it did in the past).

Thanks for any insights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant