5,072 questions
-1 votes
1 answer
67 views
I can't display curved polygon structures in mapLibre 3D in bare react native [closed]
I'm working on a 2D/3D map with Maplibre in a bare React Native project. I can display 3D buildings with elevations thanks to Maplibre's fill-extrusion feature. However, Maplibre's fill-extrusion ...
Advice
2 votes
2 replies
125 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
111 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
109 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 ...
0 votes
0 answers
24 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
80 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
88 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
358 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
149 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
47 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
45 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
216 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 ...