geos

Getting "AttributeError: module 'shapely.geos' has no attribute 'lgeos'"

Getting "AttributeError: module 'shapely.geos' has no attribute 'lgeos'" Question: I am trying to do this exercise from momepy (https://github.com/pysal/momepy/blob/main/docs/user_guide/getting_started.ipynb), but on the third codeblock f, ax = plt.subplots(figsize=(10, 10)) buildings.plot(ax=ax) ax.set_axis_off() plt.show() I got the following error AttributeError Traceback (most recent call last) Cell In[12], line 5 1 buildings = gpd.read_file(momepy.datasets.get_path(‘bubenec’), 2 layer=’buildings’) 4 f, …

Total answers: 1

Cartopy not able to Identify GEOS for PROJ install on Windows

Cartopy not able to Identify GEOS for PROJ install on Windows Question: I am trying to install Cartopy on Windows. I have installed all the dependencies from their website, however when I go to run pip install Cartopy I get: Complete output (5 lines): setup.py:117: UserWarning: Unable to determine GEOS version. Ensure you have 3.7.2 …

Total answers: 3

Coordinates of the closest points of two geometries in Shapely

Coordinates of the closest points of two geometries in Shapely Question: There is a polyline with a list of coordinates of the vertices = [(x1,y1), (x2,y2), (x3,y3),…] and a point(x,y). In Shapely, geometry1.distance(geometry2) returns the shortest distance between the two geometries. >>> from shapely.geometry import LineString, Point >>> line = LineString([(0, 0), (5, 7), (12, …

Total answers: 2