5,071 questions
0
votes
0
answers
51
views
Using SVG for the pattern with asColorLike argument to Style the fill of a polygon
Is it possible to use a data URI containing a SVG image for the 'src' attribute in a PatternDescriptor?
I have found examples of using PNG files, but not SVG. Please can someone post an example of ...
Advice
2
votes
2
replies
131
views
Generating Random Polygons in R
I need help coming up with a spatial workflow in R, or to be pointed in the direction of a package or something, I have no idea where to start with this.
I have a raster called "Suit" (epsg:...
Advice
0
votes
6
replies
123
views
Polygon centroid calculation - centroid outside the polygon
I have 2 polygons which are very simmular but one has is centroid inside and the other outside.
Polygon 1 (inside) with
"X: 2590431 Y: 5823888"
"X: 2590433 Y: 5823881"
"X: ...
3
votes
1
answer
111
views
tmap MAP_COLORS not coloring adjacent polygons distinctly
I am trying to use tmap with the MAP_COLOR argument which is supposed to plot the given shapefile with unique colors for adjacent polygons. However, it seems to be failing when I use it on two ...
-1
votes
0
answers
26
views
How to get a border on polygon? [duplicate]
This is my polygon css. Can I get a border around this polygon instead of background color?
.clip-details-shape {
height: 200px;
position: relative;
clip-path: polygon(100% 0, 100% 76%, 80% 100%,...
0
votes
2
answers
68
views
How to find identical polygons
I have an algorithm that takes as input a list of polygons - each polygon is a list of 32 bit x and y coordinates, and the length of the coord list.
It then needs to normalise the coordinates to the ...
0
votes
0
answers
84
views
How should given edges be discarded when calculating a straight skeleton?
I want to calculate the straight skeleton of a polygon using the CGAL library in C++, but I want to discard some edges from the skeleton calculation. I thought this would be possible using the ...
1
vote
0
answers
89
views
How do I cut a single edge of a block and round it?
folks!
So basically, in the design, there are blocks that have bottom right edge cutted. One - with border, second - with background. Edge looks ike that:
I tried different approaches and none of ...
17
votes
3
answers
366
views
Ordering points that roughly follow the contour of a line to form a polygon
I have a list of points (x,y). A line is drawn somewhere 'inside' these points (within the area they form). I have been trying different algorithms for ordering these points to create a polygon, with ...
5
votes
2
answers
122
views
Optimize reverse polygon with edge attributes
I have a closed polygon, that has attribute parameters at each edge. These are stored at the point at the beginning of the following line segment. So, point[0] holds the attribute for the edge point[0]...
0
votes
0
answers
27
views
rounding svg corners [duplicate]
I have this svg code
<svg width="200" height="200" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<polygon
points="
13.5,13.5
13.5,40.5
3.5,50
13....
0
votes
1
answer
152
views
R Convert a list of polygons into a shapefile, where each polygon is a feature of the shapefile
I'm trying to convert this list of polygons, named all_buffers, into a shapefile. I'd like each polygon to be its own feature in the shapefile. Everything I've tried has only exported one single ...
0
votes
0
answers
49
views
How to set the outside area color of a Circle or Polygon in react-native-maps?
I'm using the react-native-maps package.
When I use the fillColor property on a Circle or Polygon, it fills the inside of the shape — which works as expected.
However, I want to achieve something ...
0
votes
0
answers
47
views
Which of the 10,000 properties are in a drawn polygon
I have Javascript code that can detect the coordinates of a polygon that is drawn on Google map. I also have 10,000 property addresses. What is the fastest way to find which of the 10,000 properties ...
2
votes
2
answers
234
views
Voronoi mesh for a 3D polygon
I spent my last week looking for a mesh generator that, given the vertices of a 3 dimensional polygon (such as a cube or a tetrahedron or a dodecahedron and so on) and the number of points (internal ...
2
votes
1
answer
110
views
drawing from OpenCV fillConvexPoly() does not match the input polygon
I'm trying to follow the solution detailed at this question to prepare a dataset to train a CRNN for HTR (Handwritten Text Recognition). I'm using eScriptorium to adjust text segmentation and ...
4
votes
2
answers
326
views
Optimizing a complex, custom data problem - find the optimal polygon that contains a give fraction of data, with constraints
I am working with Uranium-Lead geochronological datasets. This type of data is typically interpreted in what is called a "Wetherill" concordia diagram, an x-y coordinate space where each ...
1
vote
0
answers
56
views
How to fix holes caused by self-intersecting polygons in polybool.dart difference operations?
My Problem is, that I need this library: polybool dart, to be able to handle self-intersection. Right now if I do a difference onto a self-intersecting polygon, there will be a hole where the self-...
0
votes
2
answers
67
views
How to assign pre-determined RGB values to polygons
I have a map defined by polygons in a shape file that I have read into R. Each polygon has a character value assigned to it in a column called "UNIT_250K", and each of those character ...
0
votes
0
answers
29
views
Getting values of contour within polygon path
I have the following issue. I have a function of two variables defined on a regular grid via np.meshgrid and I would like to get the coordinates of the points on some contour, within a bounding region ...
1
vote
0
answers
38
views
How to Deploy a Smart Contract and Have Someone Else Sign the Transaction? Polygon
I'm trying to deploy a Smart Contract on the Polygon mainnet, but I need the deployment transaction to be signed by someone else's wallet (so they become the contract owner and receive the tokens).
I’...
3
votes
1
answer
135
views
Find direction that closest point of a polygon is from another polygon
How do I find the direction that the closest point of polygon_sf2 is from polygon_sf1 divided into one of eight directions (north, north-east, east, south-east, south, south-west, west, north-west)? ...
0
votes
1
answer
39
views
Is it possible to subdivide the surface of a 3D Sphere (Earth) using 256 sided polygons?
Background for purpose sparse/compressible data structure/compressible honeycumbs, vague description to give you an idea: This would allow an array of [0..255] connection points hopefully. If all of ...
2
votes
1
answer
106
views
How can I convert a turf "intersect" polygon to a Leaflet polygon?
In general, a turf polygon can be converted to Leaflet as per https://gis.stackexchange.com/questions/448435/converting-turf-polygon-to-leaflet-polygon .
But there seems to be a difficulty when the ...
0
votes
0
answers
77
views
How can I add a polygonally-clipped Voronoi diagram to a Leaflet map?
I have a map made with Leaflet which includes a polygonal boundary: the area enclosed by the boundary is non-convex, but simply-connected: there are no holes. Within this boundary there are various ...
0
votes
0
answers
58
views
QGIS Buffer function is buffering from the centre of my polygon but I want it to buffer from the edges
I have a polygon which I wish to buffer 120 meters from the edges. However, whenever I use the buffer feature it buffers from the centre of the polygon. How do I fix this?
I have tried the buffer ...
0
votes
0
answers
304
views
Unable to execute token swap using Uniswap v4 SDK on React js
I am trying to build a feature in React where a user can input two ERC20 tokens on Polygon and swap them using the Uniswap v4 SDK. The component is here: https://github.com/mauruszach/Uniswap_swap. ...
0
votes
0
answers
37
views
How to get intersecting values between two polygon layers?
I need help with R code to calculate intersecting area between two polygon layers.
The first layer is polygons I created by making a 250m buffer around a points layer - I'm calling it "buffer&...
1
vote
0
answers
62
views
Multiple Sphere creations inside a 3d polygon
Let n be a given number.
The data I have is a set of (x,y) points plotting the contour of a polygon on each z slice, giving multiple images that can be stacked on the z axis to get a polyhedron.
How ...
-1
votes
1
answer
69
views
Vector polygons from aerial orthophotography
I frequently create ortho mosaics from drone photos, then manually have to trace them to create vector habitat polygons.
Is there any software that can do this (preferably command line)? I do not ...
2
votes
0
answers
43
views
Drawing a simple polygon with D3.js doesn't work
Can't find the issue why the polygon is not drawn with the following code in d3:
<script type="module">
import * as d3 from "https://cdn.jsdelivr.net/npm/d3@7/+esm&...
0
votes
0
answers
176
views
Shapely intersection function not giving desired result
I am using python to work on polygons. I want to find intersection of two polygons and then find the intersection of the intersected polygon with two lines.the intersection of a polygon with a line ...
6
votes
1
answer
75
views
Plotting a function inside a polygon in MATLAB
Is there a way to plot a given function with the domain restricted to a polygon with given vertices, in MATLAB?
For example, how can I plot the function
f =@(x,y) x.*y
inside the polygon whose ...
0
votes
0
answers
57
views
Change .shp polygon color based on .csv single cell value
I have a pyplot with three .shp polygons as sublots. I would like to change the color of each polygon based on the values from a .csv file of 3 columns and 2 rows (headers and values). I would like ...
-1
votes
1
answer
26
views
Invalid Freshly Pasted Geometry in a PostGis Polygon Layer
After deleting all shapes and pasting fixed ones into a PostGIS layer, i edited a couple shapes and some got invalid (rings without enough points, etc). This made saving the pasted shapes impossible. ...
0
votes
2
answers
61
views
converting multiple connecting polygon's to 1 polygon
I am building a floor planner app (react/typescript), currently I have all walls as polygon where we define 4 corners.
I need a logic/algorithm to merge connecting walls. I did try convex/concave hull ...
3
votes
2
answers
222
views
Merging diagonal-touching polygons from raster using terra
Consider the following binary raster, with patches in various shapes:
Using terra to get separate polygons for each patch, I converted to vector via as.polygons() and then disaggregated via disagg(). ...
0
votes
0
answers
63
views
Labelling a map with python
I want to create a map with all the countries labelled, but the text within each country's boundaries. For readability, I want the text to follow the curve of the country boundary. I tried an example ...
0
votes
1
answer
126
views
Create geojson polygon from point feature collection
I have this feature collection with a lot of points that form a shape:
I need to create a polygon feature collection with this shape, I tried using the shapely multipoint.convex_hull method but the ...
0
votes
0
answers
33
views
How do I modify this code to send 0.1 POL from 1 account to an address and avoid exception?
I got error:
{"Invalid account used signing"}
The code is this
Public Shared Async Function send02Pol(privateKey As String, destination As String) As Task
'Dim chainId As UInteger = 137
...
0
votes
0
answers
47
views
Python and OpenGL: Texture Not Filling Polygon Correctly in Koch Snowflake Rendering [duplicate]
Question:
I’m working on rendering a Koch snowflake with a sinus-plasma texture using PYTHON and OpenGL. The initial polygon is star-shaped, evolving into the Koch snowflake. My goal is to fill this ...
0
votes
0
answers
36
views
MySQL POINT and POLY not Representing GEO data
I need to store POINT and POLY fields that represent points and areas on an Image Map, not GEO lat/lng coordinates.
Because I'm not representing Geography does not make sense to use the ...
1
vote
1
answer
70
views
Reading Polygon data from Teradata into Tableau
I understand Tableau can't read a clob field in Teradata where I have the Polygons. However I understand there is a work around to extract data that can be used by Mapping capabilities of Tableau. Can ...
1
vote
1
answer
110
views
How to Select an Area in Mapbox Using Selenium with Java?
I am working on automating the selection of an area on a Mapbox map using Selenium with Java. I’ve tried multiple approaches, including using the Action class and JavaScript, but none of them have ...
1
vote
1
answer
159
views
Can I use leaflet to cut out an area from my map and blacken out the rest?
I use leaflet to show maps on my website. I want to blacken out everything EXCEPT for the area in the polygon I am showing. For instance, showing the rest of the map with a black background (maybe 90% ...
1
vote
0
answers
94
views
How to calculate the angle between the x-axis and the line along which a generic polygon develops most?
I would like to calculate the angle between the x-axis of the reference system and the line along which a generic simple, convex or concave polygon develops most.
By having the points of its vertices ...
0
votes
3
answers
243
views
Is there a way for st_intersection to return a value of 0 instead of cutting non intersecting features?
I have a 1km buffer shapefile and a roads shapefile and I'm trying to figure out the total length of roads that intersect with each buffer so I can calculate road density within each buffer. There are ...
0
votes
1
answer
68
views
Polygon contract deployment takes long, really long
I am trying to deploy a smart contract with an NFT collection erc721, however I did the deployment couple of hours ago and still is not visible yet on polygon scan, I tried deploying several times, no ...
1
vote
0
answers
76
views
Scanline Polygon Filling Issue in OpenGL 3
I'm trying to implement a scanline fill polygon algorithm using OpenGL3, and I'd like the algorithm to calculate the vertices of the line segments that need to be drawn to achieve the filling effect, ...
0
votes
1
answer
130
views
How can I fix this geojson with unwanted vertices?
I'm working with a GeoJSON file that represents the area of the United States at 0 feet elevation. However, when I load it into QGIS, a strange diagonal line appears, stretching across the map. This ...