Skip to content

Commit cd2d45c

Browse files
authored
Change to epsg:4269 in WaterData request
It looks like the USGS GeoServer layers were changed in the last 24 hours!! They no longer support epsg:900913 (web mercator), and now only accept epsg:4269. `NWIS.get_info` now fails because of this. I updated the epsg code on the WaterData call, and that should fix it. I've run WaterData calls with epsg:4269 on other layers (FYI, huc12) and it works.
1 parent ddb08a4 commit cd2d45c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hydrodata/hydrodata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ class methods to generate the queries.
375375

376376
sites = sites[sites.site_no.apply(len) == 8]
377377

378-
gii = WaterData("gagesii", "epsg:900913")
378+
gii = WaterData("gagesii", "epsg:4269")
379379
hcdn = gii.byid("staid", sites.site_no.tolist())
380380
hcdn_dict = hcdn[["staid", "hcdn_2009"]].set_index("staid").hcdn_2009.to_dict()
381381
sites["hcdn_2009"] = sites.site_no.apply(

0 commit comments

Comments
 (0)