shapely Questions

3

Solved

I have been trying to debug this problem but unable to do so. I am trying to find the intersection of two Polygon objects. It works most of the time but for the following case, it raises the follow...
Lucite asked 25/10, 2012 at 5:47

1

Solved

I've just installed Anaconda in my new laptop, and created an environment with geopandas installed in it. I've tried to upload the world map that comes with geopandas through the following code: im...
Nolin asked 13/8, 2022 at 19:8

2

Solved

I'm working with shapely to do GIS, but I'm running into memory errors when loading the geometry of each zip code into memory because the geometry is so jagged and complicated. I'd like to make t...
Phantasy asked 3/4, 2014 at 14:1

2

Solved

I have a LineString defined by two points, so essentially a straight line segment, and I wanted to project a point on to it. I am aware of .project and .interpolate. However when the point is "outs...
Robber asked 2/3, 2018 at 1:43

5

Solved

I want to create a polygon from shapely points. from shapely import geometry p1 = geometry.Point(0,0) p2 = geometry.Point(1,0) p3 = geometry.Point(1,1) p4 = geometry.Point(0,1) pointList = [p1, p...
Concession asked 26/5, 2015 at 11:20

5

I'm trying to use shapley, and to use it for what I need it for, I have to import "from shapely import geometry" but I get the error OSError: Could not find lib geos_c.dll I've tried to i...
Montcalm asked 28/6, 2019 at 20:50

1

How do you triangulate a polygon in Shapely? Shapely actually offers a triangulate() function, but that only triangulates the vertices of the polygon as a point set. For convex polygons the solutio...
Glut asked 26/11, 2020 at 9:21

2

Solved

How do I fund the nearest LINESTRING near a point? First I have a list of LINESTRING and point value. How do I have the nearest LINESTRING to the POINT (5.41 3.9) and maybee the distance? from shap...
Tumbrel asked 7/1, 2022 at 19:27

3

Solved

i have a geoJSON geo = {'type': 'Polygon', 'coordinates': [[[23.08437310100004, 53.15448536100007], [23.08459767900007, 53.15448536100007], [23.08594514600003, 53.153587050000056], (...) [23.0...
Groves asked 17/8, 2021 at 15:27

2

Solved

I have a geodataframe showing ~25 locations represented as point geometry. I am trying to come up with a script that goes through each point, identifies the nearest location and returns the name of...
Imperialism asked 10/6, 2019 at 5:8

2

I'm working with Shapely polygons and I need a way to delete all smaller polygons contained within a bigger polygon. I tried using the .contains() method which Shapely provides, but the method does...
Actable asked 6/7, 2019 at 10:52

4

Solved

I am using shapely in python and trying to generate evenly spaced points in a grid that fall within a shape in the fastest O(n) time. The shape may be any closed polygon, not just a square or circl...
Frankfort asked 2/2, 2021 at 13:44

9

I'm just trying to use the demo code. I run the following in Jupyter Notebook: from shapely.geometry import shape Which gives me the following: OSError Traceback (most recent call last) <ipyt...
Californium asked 12/10, 2016 at 6:22

0

Good morning all, I am trying to load a .pbf file using the pyrosm library's documentation. My code below. import pyrosm # Get filepath to test PBF dataset fp = pyrosm.get_data("wisconsin&quo...
Yellow asked 28/10, 2021 at 9:34

2

I am using the parallel_offset function of the shapely package to get offset structures to some polygons that are closed rings. I have several polygons at once, many with similar shapes. Around 10-...
Sidonius asked 26/1, 2018 at 13:12

2

Is there a method to extract a grid of coordinates (purple dots) from a center coordinate, with a 100 meters distance between each coordinate for example? For example having an input of latitude a...
Cento asked 1/10, 2021 at 17:2

2

I've installed shapely with pip install shapely and importing it as from shapely.geometry import Point. I get this error: from shapely.geometry import Point ModuleNotFoundError: No module named '...
Kinesiology asked 16/3, 2019 at 15:21

3

Solved

Could not find library geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so'] using the python:3.5.1 image I am trying to run a container that includes among other things it install...
Terms asked 7/9, 2016 at 19:44

4

Solved

I am using python and I have defined the latitudes and longitudes (in degrees) of a polygon on the map. My goal is to check if a generic point P of coordinates x,y falls within such polygon. I woul...
Oxyacetylene asked 10/5, 2017 at 12:24

1

I have a geodataframe with a Multipolygon geometry: I would like to convert them to Polygons i.e. fill in the holes of multipolygon and make it a single polygon. I have tried the code from this si...
Precipitancy asked 20/8, 2021 at 11:4

4

Solved

I have a set of LineStrings which are intersected by other LineStrings and I want to split the LineString into separate segments at these intersection points. I have a solution but I don't think it...
Lutenist asked 12/1, 2016 at 22:15

3

Solved

I want to calculate the overlapped area "THE GRAY REGION" between red and blue rectangles. Each rectangle is defined by its four corner coordinates. The resulted unit of the overlapped area is ...
Conciliar asked 26/11, 2014 at 15:27

5

Solved

I have to install Shapely package (http://toblerity.org/shapely/project.html#installation). But when I am using: pip install Shapely I am getting this error: Collecting Shapely Using cached S...
Buhler asked 6/6, 2017 at 19:24

3

Solved

How can I check if a polygon entity is actually a multipolygon? I've tried: if len(polygon) > 1: but then get the error: TypeError: object of type 'Polygon' has no len() I've tried Nill, ...
Jankell asked 25/8, 2016 at 10:30

3

Solved

Say I have the following Polygon and Point: >>> poly = Polygon([(0, 0), (2, 8), (14, 10), (6, 1)]) >>> point = Point(12, 4) I can calculate the point's distance to the polygo...
Hilel asked 23/10, 2015 at 21:24

© 2022 - 2024 — McMap. All rights reserved.