Intro
In [1]:
Copied!
import scorchgeo
import scorchgeo
In [2]:
Copied!
m = scorchgeo.Map()
url = "https://github.com/opengeos/datasets/releases/download/us/us_states.geojson"
m.add_geojson(url)
m
m = scorchgeo.Map()
url = "https://github.com/opengeos/datasets/releases/download/us/us_states.geojson"
m.add_geojson(url)
m
Out[2]:
In [3]:
Copied!
m = scorchgeo.Map()
url = "https://github.com/opengeos/datasets/releases/download/us/us_states.zip"
m.add_shp(url, name="US States")
m
m = scorchgeo.Map()
url = "https://github.com/opengeos/datasets/releases/download/us/us_states.zip"
m.add_shp(url, name="US States")
m
/home/runner/.local/lib/python3.11/site-packages/pyogrio/raw.py:200: RuntimeWarning: /vsizip/vsicurl/https://github.com/opengeos/datasets/releases/download/us/us_states.zip/us_states.shp contains polygon(s) with rings with invalid winding order. Autocorrecting them, but that shapefile should be corrected using ogr2ogr for example. return ogr_read(
Out[3]:
In [4]:
Copied!
m = scorchgeo.Map()
url = "https://github.com/opengeos/datasets/releases/download/us/us_states.zip"
m.add_vector(url, name="US States")
m.add_basemap()
m
m = scorchgeo.Map()
url = "https://github.com/opengeos/datasets/releases/download/us/us_states.zip"
m.add_vector(url, name="US States")
m.add_basemap()
m
/home/runner/.local/lib/python3.11/site-packages/pyogrio/raw.py:200: RuntimeWarning: /vsizip/vsicurl/https://github.com/opengeos/datasets/releases/download/us/us_states.zip/us_states.shp contains polygon(s) with rings with invalid winding order. Autocorrecting them, but that shapefile should be corrected using ogr2ogr for example. return ogr_read(
Out[4]: