geopandas

Open Street Map (pyproj). How to solve syntax issue?

余生颓废 提交于 2021-02-19 05:41:50
问题 Using pyproj for visualizing open street map and getting the following error: > AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyproj\crs.py:77: > FutureWarning: '+init=<authority>:<code>' syntax is deprecated. > '<authority>:<code>' is the preferred initialization method. return > _prepare_from_string(" ".join(pjargs)) The program runs but spits out a map that is blank. There's not much I could find on google. What is this and how to fix it? See code snippet below: ##Create map

Installation fails for Fiona and Geopandas with GDAL on Python 3.6 on Microsoft Windows OS?

做~自己de王妃 提交于 2021-02-18 07:54:30
问题 I need to install Geopandas which depends on Fiona and GDAL with pip on Python 3.6. I have installed the GDAL library on Python using the wheel file downloaded from here. Processing c:\users\_chena\downloads\gdal-2.4.1-cp36-cp36m-win_amd64.whl Installing collected packages: GDAL Successfully installed GDAL-2.4.1 Then I tried to pip3 install geopandas . I encountered the following error: Collecting geopandas Downloading https://files.pythonhosted.org/packages/f0/5d/916b7268ef551fa9647c

Error messages when installing OSMnx and GeoPandas

筅森魡賤 提交于 2021-02-11 14:45:25
问题 Hello I am trying to install OSMnx and GeoPandas using pip install osmnx and pip install geopandas (according to this link: https://geoffboeing.com/2016/11/osmnx-python-street-networks/) It says that in order to use OSMnx you have to install geopandas and rtree first, rtree was installed with no issues, but this happened when trying to install osmnx (actually I tried to install osmnx before I found out that I need to install geopandas, I am giving this error here in order to give you as much

Error messages when installing OSMnx and GeoPandas

[亡魂溺海] 提交于 2021-02-11 14:42:22
问题 Hello I am trying to install OSMnx and GeoPandas using pip install osmnx and pip install geopandas (according to this link: https://geoffboeing.com/2016/11/osmnx-python-street-networks/) It says that in order to use OSMnx you have to install geopandas and rtree first, rtree was installed with no issues, but this happened when trying to install osmnx (actually I tried to install osmnx before I found out that I need to install geopandas, I am giving this error here in order to give you as much

Geopandas userdefined color scheme drops colors

こ雲淡風輕ζ 提交于 2021-02-11 14:24:30
问题 I expected to get a legend of the three colors green, yellow and red, even if the bottom range is empty (no numbers below 10). Instead GeoPandas drops the yellow color and uses green twice. Is this a bug or do I miss a parameter? import pandas as pd import geopandas from matplotlib.colors import ListedColormap colors = ['green', 'yellow', 'red'] bins = [10, 30] numbers = [15, 25, 35, 35, 55] ny = geopandas.read_file(geopandas.datasets.get_path('nybb')) numbers = pd.Series(numbers, name=

How do I test if Point is in Polygon/Multipolygon with geopandas in Python?

こ雲淡風輕ζ 提交于 2021-02-11 14:15:58
问题 I have the Polygon data from the States from the USA from the website arcgis and I also have an excel file with coordinates of citys. I have converted the coordinates to geometry data (Points). Now I want to test if the Points are in the USA. Both are dtype: geometry. I thought with this I can easily compare, but when I use my code I get for every Point the answer false. Even if there are Points that are in the USA. The code is: import geopandas as gp import pandas as pd import xlsxwriter

Can not Install Geopandas [closed]

心不动则不痛 提交于 2021-02-11 12:15:56
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . Improve this question Can not install geopandas with in python 3.7. Always this error pops up: Problem Problem in anaconda Please help! 回答1: First, based on Geopandas documentations, they recommend to use conda package manager. Secondly, Geopandas relies on other packages and their installations is

GeoPandas .to_crs running into errors

断了今生、忘了曾经 提交于 2021-02-11 08:10:58
问题 I'm trying to import a shape file and change its crs in order to get a map with the correct projection. map_sh = gpd.read_file(r'C:\PATH\VG250_Gemeindegrenzen_2018.shp') map_sh = map_sh.to_crs({'init' :'epsg:25832'}) When I try executing it, I will get the following error: RuntimeError Traceback (most recent call last) <ipython-input-7-8354f57e24ce> in <module> ----> 1 map_sh = map_sh.to_crs({'init' :'epsg:25832'}) ~\AppData\Local\Continuum\miniconda3\lib\site-packages\geopandas\geodataframe

geopandas cannot read a geojson properly

筅森魡賤 提交于 2021-02-10 15:38:41
问题 I am trying the following: After downloading http://eric.clst.org/assets/wiki/uploads/Stuff/gz_2010_us_050_00_20m.json In [2]: import geopandas In [3]: geopandas.read_file('./gz_2010_us_050_00_20m.json') --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-3-83a1d4a0fc1f> in <module> ----> 1 geopandas.read_file('./gz_2010_us_050_00_20m.json') ~/miniconda3/envs/ml3/lib/python3.6/site-packages/geopandas/io/file.py

Import Error when Importing Geopandas

只愿长相守 提交于 2021-02-09 08:43:33
问题 When trying to import geopandas into my jupyter notebook I get an ImportError: DLL load failed . I have already run pip install geopandas from my terminal and get "Requirement already satisfied". I have also tried pip install --upgrade pip setuptools which hasnt worked either. Here is the full error report when trying to import geopandas: ImportError Traceback (most recent call last) <ipython-input-2-fc7d1d298f0c> in <module>() ----> 1 import geopandas ~\AppData\Local\Continuum\Anaconda3\lib