You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run url tests on real urls on one runner (3.14 on Ubuntu)
Try usgs.gov instead of github.com for doctests
Put https://github.com/nvkelso/natural-earth-vector tests in a separate localhost only test function
Avoid nvkelson's repo (natural-earth-vector)
don't do doctests
Try true / false instead of yes / no
Try to test remote urls from one job in the test matrix only
Add extra url of .zipped shapefile and test it
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -435,7 +435,7 @@ Finally, you can use all of the above methods to read shapefiles directly from t
435
435
>>> sf = shapefile.Reader("https://github.com/JamesParrott/PyShp_test_shapefile/raw/main/gis_osm_natural_a_free_1.zip")
436
436
437
437
>>> # from a shapefile collection of files in a github repository
438
-
>>> sf = shapefile.Reader("https://github.com/nvkelso/natural-earth-vector/blob/master/110m_cultural/ne_110m_admin_0_tiny_countries.shp?raw=true")
438
+
>>> sf = shapefile.Reader("https://pubs.usgs.gov/of/2000/of00-006/gisdata/coverage/airports.shp")
439
439
440
440
This will automatically download the file(s) to a temporary location before reading, saving you a lot of time and repetitive boilerplate code when you just want quick access to some external data.
0 commit comments