Skip to main content

Questions tagged [geoseries]

Use this tag when referring to GeoPandas geoseries

Filter by
Sorted by
Tagged with
2 votes
1 answer

AttributeError: 'GeoSeries' object has no attribute 'is_valid_reason' in GeoPandas

I was going over the documentation for checking on valid geometries. When I wanted to try the example for is_valid_reason, got this error: import geopandas as gpd from shapely.geometry import Polygon ...
saQuist's user avatar
  • 826
3 votes
2 answers

Getting GeoSeries with all the points and their coordinates from GeoSeries that has multiple types of geometries in GeoPandas

I'm writing a program that reads two MultiLineString shapefiles and intersects them, then processes the result in various ways. The intersection normally will give me a GeoSeries of points, like this: ...
cfnnm's user avatar
  • 33
2 votes
1 answer

Overlaps function in GeoPandas/GeoSeries is not working

There seems to be wrong with the overlaps function. Suppose I have this GeoDataFrame consisting of LineString geometries only with crs='EPSG:3347: Then I went ahead to extract only the first row's ...
M. Fire's user avatar
  • 31
0 votes
1 answer

Draw buffer circle over a map using Geoseries

buf_df = geodata.copy() buf_df['geometry'] = buf_df['geometry'].buffer(10) fig, ax = plt.subplots(figsize=(10,10)) tx_shapefile.plot(ax=ax, facecolor='Grey', edgecolor='k',alpha=1,linewidth=1,cmap=&...
Karthik Eswar's user avatar
4 votes
2 answers

Generate points inside multipolygons using GeoPandas

I have a shapefile which has multipolygon geometries. I want to generate random points inside them using GeoPandas. I tried with the below code but it's not giving geodataframe of points. df = gpd....
hashalluring's user avatar
1 vote
1 answer

Attempting to get the distance between two Point objects. Getting AttributeError: 'GeoSeries' object has no attribute '_geom'

I am a beginner in GIS. Using the code below to get the distance between two Point objects from two separate GeoDataframe. Using the shapely distance function. Can someone please explain to me what I ...
P. Saha's user avatar
  • 13
0 votes
0 answers

Using Yelp API lat/long in Folium -- CRS needed?

I understand the default crs for Folium is EPSG3857. I am pulling lat/long data from a yelp query and am not sure if I need to be converting to a GeoSeries and assigning a CRS to the GeoSeries. It ...
userfriendly's user avatar
4 votes
3 answers

How to convert GeoSeries polygons to lists of coordinates?

I have a GeoDataFrame consisting polygons. How can I convert each polygon into a list of coordinates? Is there any attribute, method or function in GeoPandas to do this?
Vinay's user avatar
  • 231
17 votes
6 answers

Finding distance between two points with GeoSeries.distance

When I want the distance between two points [(117.454361,38.8459879),(117.459880 ,38.846255)] (longitude,latitude) on the earth, I take the GeoSeries.distance method, but the method does not give me ...
CJ Xu's user avatar
  • 341
13 votes
2 answers

How to convert a GeoSeries to a GeoDataFrame with Geopandas

I'm new in GeoPandas and I try to create my first script. I successfully opened a shapefile and made a union of all entity and an envelope. As it said in GeoPandas doc, after these 2 geometric ...
Tim C.'s user avatar
  • 1,516
1 vote
1 answer

Projecting Geoseries Geopandas doesn't work

I have on geoseries that I would like to project to equal area conic of lambret. However my code doesn't work. What is wrong with it? #piece of g_source {GeoSeries}: 156 POINT (-40....
Diogo Caribé's user avatar