Questions tagged [polygon]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

How to merge two shape files or Dfs (one containing centroid locations and other is a region wise shapefile)

Want to merge two shapefiles one is df1 Longitude Latitude -4.096801 55.775258 -2.694467 53.725098 -0.121930 51.000306 -1.837491 52.677722 Other is df2 Region geometry North East ...
Python997's user avatar
-2 votes
0 answers
16 views

Angular/Openlayers7.2.2: draw a polygon on a map

Could you please advise, what i am doing wrong. I can't compile the angular project with openLayers, geoJSON. export class CGeometry { type: string; coordinates: Coordinate | Coordinate[]| Array<...
Anna Korotkova's user avatar
-2 votes
0 answers
9 views

How to find the coordinates of an irregular polygon, knowing the number of vertices and edges [closed]

Is this possible, if so how? I have not been able to find the answer by searching on google. Where can I research this, any pointers would be helpful. Not sure what other information I can provide in ...
GKS's user avatar
  • 1
0 votes
0 answers
6 views

Why the JPanel Graphics2D drawing appers above the scroll bar?

Why the JPanel Graphics2D drawing appers above the scroll bar? I tried to solve this issue but I couldn't succeed. enter image description here I tried validate() and repaint() with jpanel also with ...
Ghaith Thamer's user avatar
0 votes
1 answer
35 views

How to get a list of lat/long values between two locations to show a polyline by street in flutter

polyLine.add(Polyline( polylineId: PolylineId("route1"), color: Colors.blue, patterns: [ PatternItem.dash(20.0), PatternItem.gap(10) ], width: 3, points: [ LatLng( ...
priyank apps's user avatar
0 votes
0 answers
31 views

random points inside the n-gon [closed]

Need to create a program that draws a polygon with two points inside for WindowsForm. The number n (number of angles) is given at the input. Coordinates are entered, the number of which is equal to ...
Данил 1's user avatar
0 votes
0 answers
27 views

drawing a polygon using fabric js and angular

I was trying to convert this code which is from the github gist into an angular app and updated the code which as you can see below , the github code gist works fine but when I tried to convert to ...
Mr. Mark Tawin's user avatar
-1 votes
1 answer
42 views

SFML: Draw Polygons with List of Vertices

I'm trying to figure out how to draw polygons with crinkled edges in SFML. I've tried a couple of things, including LineStrip, TriangleStrip, and just Triangles. I've been able to get a couple of ...
KitChaos's user avatar
0 votes
0 answers
21 views

Loading large geoJson object as layer on google map

i have geoJson file over 40 MB i want to load this file on google map as i required each feature to have featureClickListener. i am getting chunks of geoJson file from server which i am reading and ...
user17795444's user avatar
-1 votes
1 answer
24 views

Eth::Client::ContractExecutionError - transaction underpriced

I am using the eth gem ruby library https://q9f.github.io/eth.rb/ to execute a function called from the ABI but it keeps getting the error transaction underpriced. I assume that it has something to do ...
javanoob2pro's user avatar
3 votes
1 answer
28 views

ggplot2: Fill isn't working for ellipses using geom_polygon()

I'm working on a new version of the ggbiplot package in this github repo and have a problem with filling data ellipses for the points in various groups. This is described in this issue. Perhaps ...
user101089's user avatar
  • 3,768
0 votes
0 answers
9 views

How create polygons around points with specific area and without overlapping?

I have a layer of points and I want to draw a polygon around each point (similar to buffer or voronoid polygons functions do). However, polygons cannot overlap with each other (as often occurs with ...
vdvra26's user avatar
0 votes
0 answers
46 views

Check if (pos/neg) polygon is inside another (pos/neg) polygon

Description I have the problem to decide if a region A is inside a region B. These regions are defined by a list of vertices polyA and polyB: If the vertices polyA are counter-clockwise, then A is ...
Carlos Adir's user avatar
0 votes
0 answers
11 views

Polygon decomposition into simple polygons

I am looking for solutions for dividing a complex non-self intersecting 2d polygon into simple polygons (triangles, rectangles, parts of a circle). This is so I can assemble human readable proof of ...
Dimitar Baldzhiev's user avatar
0 votes
0 answers
34 views

How to add polygon points and draw it on an image in fabric js (angular)

Currently I have a code based on the github repo where I can add shapes on the image like square, circle etc which works except one thing which I can't create a polygon on the image. How do we solve ...
Mr. Mark Tawin's user avatar
-2 votes
0 answers
11 views

We are trying to Add the new token at the end of the token array in src/tokens/polygonTokens.json & we are running npm run build command & error comes

error we follow polygon github read me => https://github.com/maticnetwork/polygon-token-list we are doing to add token in polygon-token-list. error is => The syntax of the command is incorrect. ...
Harshad Mestry's user avatar
0 votes
0 answers
4 views

Maps using chilemapas

I’m trying to do a map of five counties (comunas) of Chile by using the chilemapas package, by I haven’t been capable of showing the polygons that are in my working dataset on the map of the streets ...
Isidora's user avatar
-1 votes
0 answers
16 views

Pending Transactions on Polygon

Can someone please help why these transactions are pending https://www.oklink.com/polygon/address/0x34ee060eecf5f2c6b6afb5d7c7eb895a7626dd44 Already, changed the nonce and increased gas fees. Tried ...
Shan B's user avatar
  • 1
-1 votes
0 answers
36 views

Create a polygon with given latitude and longitude - R/Python

I have a dataset with given area, latitudes and longitudes (snapshot added) and I want to create a polygon of the given area with the specific points. eg:- latitude = 23°38'34.4'', longitude = 72°27'...
user20377784's user avatar
0 votes
1 answer
30 views

ethers.js transferFrom USDT. Numeric_fault Underflow

Error: underflow [ See: https://links.ethers.org/v5-errors-NUMERIC_FAULT-underflow ] (fault="underflow", operation="BigNumber.from", value=178193613693.6, code=NUMERIC_FAULT, ...
Hahan't's user avatar
  • 497
1 vote
0 answers
38 views

How to cede overlapping area in polygons in QGIS to one of the polygons based on a condition

I have a shape file with 2745 individual sites/polygons in the Philippines, each site represents a tree planting project, with relevant information (30 attributes to be precise), including the year ...
badiskhiari's user avatar
0 votes
1 answer
20 views

Python shapely difference between polygon and a collection of circles not working properly

I am trying to measure the vacancies within a cluster of circles. A vacancy is a empty area whose surface area is bigger than a target area The algorithm I am targeting should work like this: I first ...
mugenop's user avatar
  • 23
-1 votes
0 answers
17 views

Filling a Polygon on a drawn on satellite map with images of PV Panel - Google Map API

I am working on a project where I have a polygon drawn on a satellite map using the Google Maps API. This polygon represents an area where I want to simulate the placement of photovoltaic (PV) panels. ...
freerider's user avatar
1 vote
1 answer
45 views

Identify non self-intersecting polygons

I have a shiny app where the user can define a polygon, but I want to throw a warning if the polygon self-intersects. I made the MWE below. polygon=data.frame(x_coord=c(1,2.5,7.5,6.75,4), y_coord=c(5,...
DaniCee's user avatar
  • 2,443
1 vote
1 answer
36 views

Assign color to Voronoi

I would like to assign each Thiessen polygon the same color as the point used to generate the tessellation. We can use the meuse dataset. library(sf) # 'simple features' representations of spatial ...
arkriger's user avatar
  • 221
-2 votes
0 answers
22 views

Area of the shaded region for each intervals from contourf plots

Is there any way to get the area of the shaded region (in percentage) of each polygon for all intervals of the colorbar? For example; In the attached figure, for the circled polygon, how much area (%) ...
Aristocrat's user avatar
1 vote
1 answer
40 views

How to make a background like the one in the picture using polygon

I'm wondering how to make such a header using the clip path polygon command. It would be simpler to insert an image but I'd like to learn and use animation for this in CSS which I can do. When I tried ...
dododdo's user avatar
0 votes
0 answers
24 views

How do you find the orthographic projection of a convex polyhedron with maximum or minimum area?

An orthographic projection of a convex polyhedron has an outline which is a convex polygon whose shape depends on the projection direction. How do you choose the direction to maximise or minimise the ...
user258279's user avatar
0 votes
1 answer
37 views

Merge dataframe with spatial polygons dataframe to create a leaflet map

I have the df below: df<-structure(list(Geography = c("Alameda", "Alpine", "Amador", "Butte", "Calaveras", "Colusa", "Contra ...
firmo23's user avatar
  • 7,540
1 vote
0 answers
104 views

pyvista ray trace detects only one intersection

I try to do detect the intersections of a ray with a polygon using pyvista. In this case the polygon is a cube. The cube is defined by points in 2d and then extruded. Why does this simple example ...
Bulbasaur's user avatar
  • 135
0 votes
0 answers
32 views

Google Map Flutter: Polygon, Circle and Marker

How to draw polygons on top of markers in Flutter? example. I am building a mobile application using google_map_flutter to display markers and draw polygons on it. I'm facing an issue where the drawn ...
PNT's user avatar
  • 1
0 votes
0 answers
17 views

finding intersecting shapes in R using shapefiles

I have two shapefiles shapefile1 and shapefile2 I want to find shapes which are intersecting with each other and then want to write new shapefile using it . I wrote some r code to find the same but ...
walle_eva's user avatar
0 votes
0 answers
17 views

How to create k-means clustering in geopandas dataframe?

I want to build k-means clustering on my map But I end up with this result: So how to build kmeans clustering depends on color indicator values? Which means clustering points are closer to the ...
tekelulo's user avatar
0 votes
0 answers
30 views

Maximum call stack size exceeded when using turf difference between 2 simple polygons

I am getting following error: RangeError: Maximum call stack size exceeded image When I use turf difference function between 2 polygons: const pol1 = [ [ [49.93317115095019, ...
KubiO's user avatar
  • 1
0 votes
1 answer
39 views

JTS::Ray Casting Algorithm Giving Unexpected Results for Point-in-Polygon Check

I am using the ray casting algorithm to determine whether a given point is inside a polygon. The polygon's edges are defined in counterclockwise order. However, I am consistently getting unexpected ...
Sunil Chormale's user avatar
0 votes
0 answers
11 views

QGIS : edit feature is disable after using the merge vector layer tool

I have merged two layers in gpkg format using the merge layer tool. Everything looks correct in the attribute table. Now the problem is that for certain polygons after I have selected them with ...
Aaron's user avatar
  • 11
1 vote
0 answers
26 views

Algorithm to find optimal pose of known polygon to cover a set of points

I have the following problem: Given a set of points S in the plane and a known polygon P, find the optimal translation (Δx,Δy) and rotation φ such that P translated and rotated by this transform ...
oarfish's user avatar
  • 4,124
0 votes
0 answers
14 views

Selective polygon visualization around a specified location using geospatial analysis

I have a shapefile containing multiple polygons, as illustrated in this example: My objective is to display only the polygons that encompass a specific location, rather than visualizing all of them. ...
John Smith's user avatar
  • 1,604
0 votes
0 answers
26 views

Generate d3 contours without overlapping of previous thresholds

I am generating d3 contours and later parsing it to lat/lng and showing them on map, however each next threshold overlap with previous one (last threshold contains everyting) and I want to prevent it. ...
KubiO's user avatar
  • 1
0 votes
1 answer
49 views

How do I set points on an svg polygon using variables defined by a source XML file?

I cannot for the life of me find out how, or if its even possible, to set points on an svg polygon using variables that are defined by an XML document that is always changing. I just want to set the ...
StrugglingToCode's user avatar
3 votes
0 answers
38 views

Is there a way to approximate a polygon to a polygon in a road network

I'm working with polygons in maps. I have a df, df_polygons, each row in the df refers to a different polygon. And df_polygons['polygon'] retrieves a specific polygon, defined by a set of ordered ...
Beatriz Santos's user avatar
0 votes
1 answer
38 views

Decode eth_call response without a given ABI

My task is to call a view function from a contract, deployed on the Polygon network, using only the hexadecimal selector of the function. I did that through an eth_call. The response I get is the ...
iliev951's user avatar
2 votes
2 answers
84 views

Is there a way in R i can create a new polygon (representing a certain constant value) based on two polygons representing 2 different constant values

I have two polygons, an outer polygon and an inner polygon The inner polygon is a polygon pol1 (red) for a parameter with a value = 10 The outer polygon is a polygon pol2 (blue) for a parameter with ...
jjunju's user avatar
  • 505
0 votes
0 answers
31 views

Google earth engine table export of multiple polygons

I have this script on GEE. I created a graph of time series of NDVI values with Sentinel 2 over multiple polygons (with removing of cloud pixels, overlapping tiles, etc). However, I wanted, instead of ...
user3355655's user avatar
0 votes
0 answers
12 views

Error in Block Creation using etc_sendrawTransaction using web3j in polygon-mumbai

when sending the encoded function in eth_sendRawTransaction is creating failed block creation in polygon. My Contract has Metadata with struct as parameter and in java service sending the meta data as ...
Mrinmoyee Mandal's user avatar
0 votes
0 answers
44 views

How to connect points to create a polygon

I want to connect a set of points to create a polygon. I tried connecting points clockwise, but did not receive the expected results. Could anyone suggest how to improve the code so that I could get ...
A.Klim's user avatar
  • 31
1 vote
0 answers
34 views

Stop two polygons from overlapping by removing equal area from both

I need to create a hitbox for two lines, the lines never cross. To do so, I use shapely buffer, which gives me polygon around the line that serves as a hitbox (shown on image below). The problem is ...
Matt's user avatar
  • 31
0 votes
0 answers
36 views

How to polygon a file with tif extension as desired?

This is an image of agricultural land in which I did the clustering operation, now I want to consider each rectangle as a polygon regardless of the value of each pixel, what should I do? I wrote ...
Milad_py99's user avatar
0 votes
0 answers
65 views

How do I find what parts of a polygon are behind the camera, and only render the parts that are?

I am working on a 3D renderer software in C, and I am currently having problems with what to do with polygons that are behind the camera. Currently, what I do is check if any of the verteces are ...
Maxim Ricardo's user avatar
-1 votes
1 answer
40 views

How to transfer USDT on polygon chain from one EOA account to another EOA account

I believe I have to use transferFrom function of ERC20. But I didn't get success. I also want to know will this approach show volume on chain for my contract address or I need to change the flow to ...
Ishan Agrawal's user avatar

1
2 3 4 5
92