Category "geopandas"

Is there a way to control which vertices connect in a plotly.express.line_geo map?

I'm trying to make a connection map that has the option to use an animation_frame to show different months/years. Plotly.express has this option, but the plotly

How to force geopandas to plot a map with "missing values" (legend) in a columns without "missing values"?

I want to make some maps (each column is a date), and for some columns (aka dates) there are some missing values, and for others are not. When I used the functi

How to force geopandas to plot a map with "missing values" (legend) in a columns without "missing values"?

I want to make some maps (each column is a date), and for some columns (aka dates) there are some missing values, and for others are not. When I used the functi

Is there a way to make directional line with geographic data in Hvplot

I'm using hvplot to make flow representations. So far, looking in the documentation, I haven't found ways to direct the lines. I'm using the line representation

Is there a way to make directional line with geographic data in Hvplot

I'm using hvplot to make flow representations. So far, looking in the documentation, I haven't found ways to direct the lines. I'm using the line representation

geopandas doesn't find point in polygon even though it should?

I have some lat/long coordinates and need to confirm if they are with the city of Atlanta, GA. I'm testing it out but it doesn't seem to work. I got a geojson f

CRSError: Invalid projection: epsg:4326: for geopandas

I am using anaconda for geopandas. However, everytime I try to use epsg:4326:, it gives an error. CRSError: Invalid projection: epsg:4326: (Internal Proj Error:

Improve performance of LineString creation, that currently is created by a lambda function

I have a dataframe like this (this example has only four rows, but in practice it has O(10^6) rows): DF: nodeid lon lat wayid 0 1 1.70

fiona ImportError: ... Library not loaded: @rpath/libpoppler.91.dylib

I reinstalled Anaconda (Anaconda 3, Python 3.9) on my Mac (MacOs Monterey 12.2) today. I installed geopandas through conda-forge and imported it successfully in

Efficient way to update values in a GeoDataFrame based on the result of DataFrame.within method

I have two large GeoDataFrame: One came from a shapefile where each polygons has a float value called 'asapp'. Second are the centroids of a fishnet grid with 3

How do I find all the polygons of a GeoDataframe that contain any point of another GeoDataframe in GeoPandas?

I have a GeoDataframe of about 3200 polygons, and another GeoDataframe of about 26,000 points. I want to get a third GeoDataframe of only the polygons that cont

GeoPandas.GeoDataFrame: type "geometry" does not exist

Ubuntu 20.04.3 LTS (WSL2) fiona 1.8.21 geopandas 0.10.2 geopandas-base 0.10.2 geopy

Geopy distance between two point tuples of (lat, lon) coordinates

I've been trying to measure geographic distance between points in a GeoDataframe (gdb['geometry']) and one specific point, let's say, b_xy. gdb['geometry'] is a

Geopandas not plotting correct colors

My Geopandas DataFrame has 3 polygons and 9 points with color_rgba column computed with matplotlib.colors.to_rgba function: import contextily as ctx import geop

Calculate centroid of entire GeoDataFrame of points

I would like to import some waypoints/markers from a geojson file. Then determine the centroid of all of the points. My code calculates the centroid of each poi

Installing the GeoPandas

GeoPandas Installing When I am installing GeoPandas they show me a error in Anaconda prompt several times. They indicated me Failed with initial frozen solve of

Combine and sum values of overlapping Polygons in GeoPandas

I have a GeoPandas dataframe with a.o. polygons as 'geometry' column and a corresponding value in a different column. E.g. like such: import numpy as np import

Replacing ID values of polygons in a geodataframe to values of polygons from another geodataframe

I have polygons inside another bigger single polygon and I want to be able to replace the ID values (for example) of the former polygon to that of the latter. S

Flipping longitude and latitude coordinates in GeoPandas

I'm working with datasets where latitudes and longitudes are sometimes mislabeled and I need to flip the longitudes and the latitudes. The best solution I could

Creating custom colourmap for geopandas.explore plot

all code: def rgb2hex(r,g,b): return '#{:02x}{:02x}{:02x}'.format(r,g,b) def rg(num): num = int(np.round((num / 100) * 124)) r = (124 - num) g