Questions tagged [polygon]

For issues relating to the creation, manipulation and rendering of polygons in graphical user interfaces.

A polygon is a two-dimensional figure that is bounded by a closed path composed of a finite sequence of straight line segments. Polygons are drawn and rendered in graphical user interfaces.

4546 questions
1
vote
0 answers

Pyspark Sedona: Want to Spatial Join but got Error "Points of LinearRing do not form a closed line string"

So my two dataframes look like this spatial_wi_df (contains POINTS) root |-- timestamp: timestamp (nullable = true) |-- wagonnumber: long (nullable = true) |-- latitude: double (nullable = true) |-- longitude: double (nullable = true) |-- speed:…
pi_janes
  • 63
  • 5
1
vote
3 answers

Unordered lines to closed polygon

Is there a way to convert a set of unordered lines in R (e.g. using terra) into a polygon? Here is an example: library(terra) geom <- as.matrix(data.frame( "id" = rep(1:6,each = 2), "x" = c(1,1,3,3,4,3,3,1,4,3,1,3), "y" =…
Zoe
  • 906
  • 4
  • 15
1
vote
1 answer

How to create NetworkX graph with n nodes (OSMnx compatible) from Shapely object

Let's assume we have the following Shapely object: from shapely import geometry # (lat, long) coordinates p1 = geometry.Point(-96.87,32.88) p2 = geometry.Point(-96.77,33.00) p3 = geometry.Point(-96.67,32.95) p4 =…
illuminato
  • 1,057
  • 1
  • 11
  • 33
1
vote
2 answers

SVG clipPpath multiple polygon elements does not work because xor

This is first time I use SVG to make transparent areas on thr picture(marked red) and probably I have very naive question, I wrote this code according to this answer and all elements are closed with /> as noted in this answer. The problem is its not…
Sevi
  • 863
  • 4
  • 15
  • 33
1
vote
1 answer

How to extract coordinates from Sympy Polygon as a List

I have got a Sympy Polygon after splitting given polygon to two polygons. I am wondering how to extract the coordinates of upper or lower polygons as a list of coordinates back like polycord. from sympy import Polygon, Line polycord=[(0, 0), (100,…
SW84
  • 25
  • 5
1
vote
1 answer

Automate optimal screw placement on a letter shape

I'm completely uneducated in this area of expertise. I would like to automate placements of support posts on shapes, specifically letters. Basically I'm screwing large, physical 3D letters to a wall and I want to automate the optimal placement of…
1
vote
0 answers

Is it possible to filter custom polygon layers in Mapbox Visual in Power BI?

Problem: I've drawn custom polygons in Mapbox Studio. I am using Mapbox Visual in Power BI and I would like to filter the polygons. I have given the Polygons ID values to differentiate them and to make it easier to filter them later on. I am able to…
1
vote
0 answers

mysql gis poylgon insert fail

i'm a brazilian, and have a project that I using Google Maps API + GWT + MySQL but, i've problem, i can't create a polygon geometry in BD with more then 3 decimal places. If I run the query: INSERT INTO monografia.locais (nome,descricao,tags,…
1
vote
1 answer

R function to convert polygon (sf, wkt) into mask (matrix, array)

I have an image stored as matrix with grayscale for each pixel. On this image I use SLIC algorithm to divide it into areas. So I get a simple feature (sf) with polygons, I am able to extract in well-known-text (wkt). But what I really need is a…
Allerleirauh
  • 115
  • 3
1
vote
0 answers

St_Contains Polygon returns part of results on MySQL 8.0

I have the same MySQL DB on my Local and Server. I exported DB file on my local and imported it on Server. My Local MySQL Version is MariaDB 10.4 and Server MySQL Version is MySQL 8.0 I'm running this query on both to get results. SELECT * FROM…
LoveCoding
  • 1,121
  • 2
  • 12
  • 33
1
vote
1 answer

creating a polygon that covers other polygons layer using python

I have a layer with polygons (buildings) and I would like create a polygon that limits the area where the polygons are using geopandas or other python module SO I have these buildings: and I would like to have a new layer with a polygon that covers…
Ricardo Gomes
  • 229
  • 1
  • 5
1
vote
1 answer

Combining several polygons

with my python script I create a cross-section out of several polygons. They are different surfaces with different material parameter. My problem is that I have severall polygons which are very close to each other but not connected. For further…
1
vote
1 answer

SQL Server Geography Data Type - why do two separate Polygons Intersect?

I have two geometry variables and I want to find out if they intersect. My first variable is called @orderBounds2. DECLARE @orderBounds2 geography I set it to a value set @orderBounds2 =…
AlastairS
  • 11
  • 1
1
vote
1 answer

Terra function intersect() and crop() on large SpatVector returns Large list in R

I have what I think is a fairly simple workflow on ArcGIS that I am trying to automatise using r/terra to run different scenarios for the same flow. I am quite an advanced ArcMap user and fluent in R and data manipulation, but 100% new to Terra and…
1
vote
1 answer

determine if a line segment is within a polygon

I am trying to find out if a given line segment consisting of two or more points is inside a polygon here is a drawing to help capture the idea: picture to help visualize the problem All I found on the internet was a code that accepted a line…
Learner
  • 25
  • 7
1 2 3
99
100