About 90,600 results
Open links in new tab
  1. Python Shapely - find if parts of two multi polygons overlap

    Oct 3, 2018 · Check for overlapping: To check if two Multipolygons overlap you can use object.intersects(other) . See this example (not the MultiPolygons from your picture though):

  2. shapely.overlaps — Shapely 2.1.0 documentation - Read the Docs

    Return True if A and B spatially overlap. A and B overlap if they have some but not all points/space in common, have the same dimension, and the intersection of the interiors of the two geometries has the same dimension as the geometries themselves.

  3. numpy - Overlapping polygons in Python PIL - Stack Overflow

    Nov 8, 2014 · Have you tried clipping one polygon to the other polygon to produce their intersection, and then drawing that intersection polygon? Or are there so many overlapping polygons in your full data set that O(2^n) of the polygons' power set grows unacceptably?

  4. python - Calculate overlap efficiently - Stack Overflow

    Jul 4, 2018 · In my code I would like to calculate the overlap between multiple polygons and another polygon. As an example, I made the following three polygons ('tracks') and a square polygon. I need to calculate the overlay of the tracks with the square.

  5. python - Merge overlapping/neighboring polygons - GeoPandas ...

    Feb 3, 2020 · I can extract all the polygons in it with .explode() which works great and I get 130+ polygons. How can I merge the ones that are next to each other? I know the 130+ resulting polygons represent two islands, and I want to get each as a polygon.

  6. python - Quickly find all polygons that overlap with two or …

    Apr 10, 2019 · I have a set of Polygons (in Shapely) that I wish to find all intersections that are comprised of overlaps of two or more polygons. I have been working based off the code found in this answer. I have a code so far that works in the if 1: …

  7. python - How to computational efficiently check if there are any ...

    You could do a spatial join on the features that intersect, then select the input polygons that were joined and collect the ID numbers. In your code add a condition to check your lest of IDs and skip (or do a different operation on) the polygons that are in the list of overlapping IDs.

  8. python - union overlapping polygons until no overlap - Stack Overflow

    Mar 14, 2017 · I have a list of geometries(could be a point or polygon) and I need to union the geometries that overlap(or contained within another geometry) in to one geometry. Any ideas on how to do this efficiently using shapely?

  9. 5 Best Ways to Detect Rectangle Overlap in Python

    Mar 11, 2024 · Python has geometry libraries such as Shapely that provide sophisticated spatial analysis functions. One can use the intersection method provided by the library to detect an overlap between polygon shapes representing the rectangles. Here’s an example: Output: True.

  10. Creating a Union of Polygons in GeoPandas and Shapely using Python 3

    Jun 26, 2024 · In this article, we will explore how to create a union of polygons using the powerful Python libraries GeoPandas and Shapely. The union of two or more polygons is a new polygon that encompasses the combined area of the input polygons.