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
1 answer

Spliting intersecting polygons in the middle

I am working with some biological imaging samples and trying to create a digital model of the cell shapes. For the sake of simplicity I would like to generalize their shape by modelling them as polygons. I am struggling to split two overlapping…
Kookaburra
  • 61
  • 1
  • 8
1
vote
1 answer

Polygon in HTML SVG is clipped

I create a star via an SVG polygon. It draws fine when the stroke width is 1, but with wider strokes, the bottom left (and only the bottom left) vertex gets cut off. Does anyone know why this happens (and how to fix it)? The following snippets…
FrankK
  • 41
  • 4
1
vote
1 answer

Matplotlib patchcollection polygons do not touch

I have two polygons which are supposed to touch each other horizontally (no gap). However, when trying to plot them with PatchCollection, there seem to be a gap between the two, they are not touching: import matplotlib.pyplot as plt import numpy as…
yvrob
  • 105
  • 10
1
vote
0 answers

join proximity polygons in python

From a geopandas dataset I would like to join polygons into a single polygon when they meet the condition that they are in close proximity (touching). The following picture gives the before (A) and after(B): Remark that the result of the join are…
PeCaDe
  • 277
  • 1
  • 8
  • 33
1
vote
0 answers

Can not send transaction on polygon network using flutter

I am using web3dart to send transaction. I already connect wallet for polygon but can't sign transaction. I think it's due to credential problem. @override Future sendAmount({ required String recipientAddress, required double…
1
vote
0 answers

Apache Superset - Problems with the display of shapefile data

I have added a shapefile file in my PostgreSQL and this is how it looks visually. https://i.stack.imgur.com/sRSWz.png The same shapefile I added in Superset Apache from the PostgreSQL database and then if I take the visualization DECK.GL PATH and…
MrTrakez
  • 23
  • 2
1
vote
1 answer

Adding polygon to plotly scatterplot

I created a plotly scatterplot in R on which I would like to add a polygon. current plot This is the code I used to make the graph: fig <- plot_ly(data = data, x= ~xbeak, y = ~ybeak, color = ~coordsbeak, text = ~paste(coordsbeak), type =…
reinoud
  • 63
  • 6
1
vote
0 answers

How to find nearest distance between user's location and a polygon shape in swift?

The following code fragments determine whether an MKMapPoint located inside or outside a polygon, but I'm asking if there is any way to find the nearest distance in meters or amount of time between that point and the polygon where the polygon formed…
Shko
  • 13
  • 5
1
vote
1 answer

How can I draw multiple polygons inside a polygon object in Leaflet?

I have a marker, polyline and polygons. Marker is placed in random positions and then followed by a polyline. Simply, I make a real-time location simulator but with random coordinates. Outside of the polygon, the polyline is deleted once in a…
erselbal
  • 17
  • 8
1
vote
2 answers

Remix - Why the error occurs internal json-rpc?

After 5 days of tests and research I couldn't find the solution. Develop a simple Contract in Remix. I manage to do the Deploy in Polygon via Metamask, OK. (TH: 0xedbe038a94c26636dbe275821655e302394df424c19438dcaebbdf5eb6f2cf09) When I try to carry…
Julio Sarda
  • 29
  • 1
  • 3
1
vote
0 answers

Problem with verifying a smart contract on Polygonscan

I'm having a little problem verifying my smart contract on Polygonscan. As it didn't work when I first launched the contract I looked up how to do it afterwards and found this piece of code: from brownie import TokenCreator def verify_later(): …
Labu
  • 11
  • 1
1
vote
1 answer

Send token from owner account from nodejs backend (Custom ERC20 token)

I made a smart contract for token on the Polygon network. The server part is NodeJS. Now I'm trying to implement the functionality of sending tokens to the recipient's wallet from the token creator's wallet. The transfer method in the contract is…
1
vote
3 answers

Why am I getting one empty array item in every other array like a pattern? (JavaScript)

UPDATE AT THE BOTTOM OF THE POST! This is the first part of a program that will eventually make SVG star polygons. Only star polygons that can be made in one go, I.e. like a Pentagram, NOT like a Hexagram that can only be made with at least 2…
Eyalchu
  • 33
  • 1
  • 6
1
vote
1 answer

Need to outline several contiguous areas on map

I am working with maps that are based upon the lot and block survey system. So, for example, my house could be a parcel identified by block 34, lot 2. For every block, there are usually multiple lots and they are all within the same contiguous…
tpdietz
  • 41
  • 4
1
vote
0 answers

How to write text on Flutter Google maps, or more specifically, inside or around polygons?

I have created multiple polygons on Google Maps in a Flutter app. Now I want to write some codes inside or even outside the polygons, for example, poly-101, poly-102, and so on. How can I do that? I see that the Polygon class does not have any label…
scode
  • 11
  • 2
1 2 3
99
100