polygon Questions

2

Solved

So I want to merge adjacent polygons in javascript this is what I actually have with my code: I want to remove inside stroke but keep border stroke. So I want to go from this: To this: I want to...
Inanity asked 16/6, 2021 at 15:45

3

Solved

I'm working on implementing various subdivision algorithms (such as catmull-clark); to do this efficiently requires a good way to store information about a grid of tesselated polygons. I implemente...

10

Solved

How do you get/extract the points that define a shapely polygon? Thanks! Example of a shapely polygon from shapely.geometry import Polygon # Create polygon from lists of points x = [list of x va...
Neri asked 9/12, 2013 at 15:40

4

Solved

Given a polygon (not necessary convex) in the Cartesian coordinate, i wonder if there are any way to check the symmetricalness of that polygon? I can think of an O(N) solution: using rotating cali...

5

If I have a vector (a line consisting of 2 points) on a 2D plane how can I determine if it has passed through a polygon? I know I can take each line which makes up the polygon and see if any inters...
Trueblood asked 18/5, 2011 at 20:5

3

I'm trying to execute a simple st_intersects query: select st_intersects('MULTIPOLYGON(((1 5,4 8,7 5,4 2,1 5)),((5 5,8 8,11 5,8 2,5 5)))','POLYGON((3 4.5,3 5,4 5,4 4,3 4.5))'); which crush the c...
Oddson asked 6/3, 2017 at 13:45

11

From the man page for XFillPolygon: If shape is Complex, the path may self-intersect. Note that contiguous coincident points in the path are not treated as self-intersection. If shape is Conv...
Shorter asked 23/1, 2009 at 5:16

3

I have a shapefile with several contiguous polygons and I want to reduce their number of nodes keeping the adjacent polygons topologically consistent. I was thinking of deleting nodes based on the...
Lienlienhard asked 1/2, 2018 at 12:24

7

Solved

I need to create a numpy 2D array which represents a binary mask of a polygon, using standard Python packages. input: polygon vertices, image dimensions output: binary mask of polygon (numpy 2D a...
Travistravus asked 6/9, 2010 at 21:5

6

I've found the way to set the visibility of a marker using the following: // create the marker blueMarker = new google.maps.Marker({ position: new google.maps.LatLng(33.514428, -112.2905653428...
Bothnia asked 30/11, 2011 at 22:54

13

Solved

I have a set of points and would like to know if there is a function (for the sake of convenience and probably speed) that can calculate the area enclosed by a set of points. for example: x = np....
Megalomania asked 28/6, 2014 at 14:49

42

Solved

I'm trying to create a fast 2D point inside polygon algorithm, for use in hit-testing (e.g. Polygon.contains(p:Point)). Suggestions for effective techniques would be appreciated.

11

I have input values of x, y coordinates in the following format: [[1,1], [2,1], [2,2], [1,2], [0.5,1.5]] I want to draw polygons, but I don't know how to draw them! Thanks
Millinery asked 15/5, 2017 at 3:42

3

Solved

Hope someone can help me with this issue. I'm trying to open an info windows on click for each polygon that my users created. I used the same code for a marker and works well but i couldn't make i...
Eponym asked 22/10, 2012 at 18:57

2

I want to separate CO (a polygon) into sections (also polygons) that are not split by roads (linestrings). Which is to say I want the sections of smaller polygons to be bounded by roads or state bo...
Kohl asked 9/9, 2020 at 16:0

8

I'm using PIL (Python Imaging Library). I'd like to draw transparent polygons. It seems that specifying a fill color that includes alpha level does not work. Are their workarounds? If it can't be ...
Louielouis asked 11/12, 2008 at 15:26

6

Solved

I'm not sure how to approach this problem. I'm not sure how complex a task it is. My aim is to have an algorithm that generates any polygon. My only requirement is that the polygon is not complex (...
Intine asked 25/1, 2012 at 2:16

4

Solved

I want to calculate the centroid of a figure formed by the points: (0,0), (70,0), (70,25), (45, 45), (45, 180), (95, 188), (95, 200), (-25, 200), (-25,188), (25,180), (25,45), (0, 25), (0,0). I kno...
Helga asked 10/3, 2023 at 17:2

2

Solved

The Docstring says: Polygon.contains Returns True if the geometry contains the other, else False Polygon.within Returns True if geometry is within the other, else False How are they different?
Aachen asked 23/5, 2015 at 20:18

15

Solved

How would I "inflate" a polygon? That is, I want to do something similar to this: The requirement is that the new (inflated) polygon's edges/points are all at the same constant distance ...
Bimestrial asked 10/7, 2009 at 13:32

6

Solved

As shown below, Is it possible to split a Polygon by a Line? (into two Polygons). If the line doesn't go all the way across the polygon it would fail. Is this possible? If so, how would I do t...
Redemptioner asked 2/9, 2010 at 3:50

2

i need to merge all touching polygons from a shapefile with geopandas. So is there a solution for. for example, the image below must be one polygon instead of multiple polygons. thanks
Uric asked 27/4, 2021 at 9:48

25

Solved

Having a list of points, how do I find if they are in clockwise order? For example: point[0] = (5,0) point[1] = (6,4) point[2] = (4,5) point[3] = (1,5) point[4] = (1,0) would say that it is ant...
Cafeteria asked 22/7, 2009 at 14:24

3

Solved

I have a bunch of coplanar points defining a polygon in 3D space. These are always wound the same way (e.g. clockwise). I need to determine the signed normal to the plane containing this polygon, i...
Hazelwood asked 28/8, 2015 at 15:3

9

Solved

I have a convex polygon (typically just a rotated square), and I know all of 4 points. How do I determine if a given point (yellow/green) is inside the polygon? EDIT: For this particular project...
Pigweed asked 4/1, 2012 at 2:41

© 2022 - 2024 — McMap. All rights reserved.