About 3,540,000 results
Open links in new tab
  1. python - How to create a shapely Polygon from a list of shapely Points

    If you specifically want to construct your Polygon from the shapely geometry Points, then call their x, y properties in a list comprehension. In other words: from shapely import geometry poly = geometry.Polygon([[p.x, p.y] for p in pointList]) print(poly.wkt) …

    Missing:

    • Tin Polygons

    Must include:

  2. Create polygons from points with GeoPandas - Stack Overflow

    Feb 23, 2020 · I have a geopandas dataframe containing a list of shapely POINT geometries. There is another column with a list of ID's that specifies which unique polygon each point belongs to. Simplified input code is: import pandas as pd from shapely.geometry import Point, LineString, Polygon from geopandas import GeoDataFrame

  3. matplotlib - Creating a polygon in Python - Stack Overflow

    Aug 23, 2017 · I'm generating random coordinates in Python for each of the vertex as follows: x = random.randint(0,50) y = random.randint(0,50) points.append((x,y)) I need to create a closed polygon using these vertices. Can someone please provide me …

    Missing:

    • Tin Polygons

    Must include:

  4. Creating a polygon from a list of points - GitHub Pages

    The convex hull is probably the most common approach - its goal is to create the smallest polygon that contains all points from a given list. The scipy.spatial package provides this algorithm (https://docs.scipy.org/doc/scipy-0.19.0/reference/generated/scipy.spatial.ConvexHull.html, accessed 29.12.2018).

  5. Create Polygon from Points | Geospatial Python - MatecDev

    Jul 6, 2022 · You can create a Shapely polygon from a list of points, either by providing the point's coordinates or extracting them from a list of Shapely points.

    Missing:

    • Tin Polygons

    Must include:

  6. python - Making polygon from list of xy coordinates using

    Mar 2, 2021 · xv.append(float(cols[0])) yv.append(float(cols[1])) and I am able to add the points by typing out something like this: # x is a list of x-coordinates, y is list of y-coordinates p1 = Polygon([[xv[0], yv[0]], [xv[1], yv[1]], [xv[2], yv[2]]]) But I would like to use both lists in the Polygon function, for example: p1 = Polygon([[xv, yv]])

  7. folium/docs/advanced_guide/polygons_from_list_of_points.md at …

    For many of those working with geo data it is a common task being asked to create a polygon from a list of points. More specific, to create a polygon that wraps around those points in a meaningful manner.

  8. From Points to Polygons and Polyhedra in Python - Medium

    Aug 27, 2023 · Let’s start by creating some random points, and visualizing them using a scatter plot. We will now compute the convex hull using scipy’s ConvexHull function. This function uses the...

    Missing:

    • Tin Polygons

    Must include:

  9. How to create and plot polygons in python using shapely and

    Nov 15, 2023 · In this article, we will explore how to plot polygons in python using shapely library. Shapely is a python package for computational geometry which provides easy access to geometric objects such as points, lines, and polygons.

    Missing:

    • Tin Polygons

    Must include:

  10. python - Create polygons from points representing the corner …

    Sep 25, 2015 · What I need to do is to create individual polygons (essentially connecting points with certain nearly located points). If I will be able to connect them as on the figure below, I would create polygons from those lines (ie polygons (17,18,21,22);(18,19,22,23) and so forth).

  11. Some results have been removed
Refresh