morpc 0.2.7__tar.gz → 0.2.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {morpc-0.2.7/morpc.egg-info → morpc-0.2.9}/PKG-INFO +1 -1
- {morpc-0.2.7 → morpc-0.2.9}/morpc/__init__.py +1 -1
- {morpc-0.2.7 → morpc-0.2.9}/morpc/morpc.py +2 -1
- {morpc-0.2.7 → morpc-0.2.9/morpc.egg-info}/PKG-INFO +1 -1
- {morpc-0.2.7 → morpc-0.2.9}/.gitattributes +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/.github/workflows/python-publish.yml +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/.gitignore +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/README.md +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/demo/morpc-py-demos.ipynb +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/morpc/census/__init__.py +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/morpc/census/census.py +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/morpc/frictionless/__init__.py +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/morpc/frictionless/frictionless.py +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/morpc.egg-info/SOURCES.txt +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/morpc.egg-info/dependency_links.txt +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/morpc.egg-info/requires.txt +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/morpc.egg-info/top_level.txt +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/pyproject.toml +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/release_new_package.md +0 -0
- {morpc-0.2.7 → morpc-0.2.9}/setup.cfg +0 -0
|
@@ -978,6 +978,7 @@ def assign_geo_identifiers(points, geographies):
|
|
|
978
978
|
TODO: add docstring
|
|
979
979
|
"""
|
|
980
980
|
import geopandas as gpd
|
|
981
|
+
import pyogrio
|
|
981
982
|
import requests
|
|
982
983
|
from io import BytesIO
|
|
983
984
|
|
|
@@ -1038,7 +1039,7 @@ def assign_geo_identifiers(points, geographies):
|
|
|
1038
1039
|
raise RuntimeError
|
|
1039
1040
|
|
|
1040
1041
|
# Read the polygon data
|
|
1041
|
-
r = requests.get(filePath,
|
|
1042
|
+
r = requests.get(filePath, headers = {"User-Agent": "Firefox"})
|
|
1042
1043
|
polys = pyogrio.read_dataframe(BytesIO(r.content))
|
|
1043
1044
|
# polys = gpd.read_file(filePath, layer=layerName, driver=driverName) # Return 403 due to changes in Census website
|
|
1044
1045
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|