Skip to content

Commit

Permalink
use pygeos w/ pyrosm
Browse files Browse the repository at this point in the history
  • Loading branch information
darribas authored Oct 19, 2023
1 parent 46eae0a commit e7aef5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gds_py/check_py_stack.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"os.environ['USE_PYGEOS'] = '1'\n",
"import geopandas\n",
"import pyrosm\n",
"from pyrosm import get_data\n",
"# Download data for the city of Helsinki\n",
Expand Down Expand Up @@ -339,6 +342,9 @@
"import contextily as ctx\n",
"tl = ctx.providers.CartoDB.Positron\n",
"\n",
"os.environ['USE_PYGEOS'] = '0'\n",
"import geopandas\n",
"\n",
"db = geopandas.read_file(ps.lib.examples.get_path('us48.shp'))\n",
"db.crs = \"EPSG:4326\"\n",
"dbp = db.to_crs(epsg=3857)\n",
Expand Down

0 comments on commit e7aef5d

Please sign in to comment.