Questions tagged [geoseries]

Use this tag when referring to GeoPandas geoseries

Filter by
Sorted by
Tagged with
2 votes
1 answer
285 views

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
323 views

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
2k views

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
2k views

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
206 views

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
14k views

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
42k views

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
  • 331
13 votes
2 answers
30k views

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,506
1 vote
1 answer
3k views

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