Questions tagged [polygon]

On a map, a closed shape defined by a connected sequence of x,y coordinate pairs, where the first and last coordinate pair are the same and all other pairs are unique.

Filter by
Sorted by
Tagged with
1 vote
2 answers
55 views

Editable polygon with different sized two part border (inner and outer, in meters) in Leaflet?

I'm a beginner in Leaflet JS and I have a polygon drawn on the map: var coords= [ [27.40839959582344,-82.40601726602196], [27.40859871554781,-82.40638191331237], [27.40834938302612,-82....
1 vote
1 answer
51 views

Leaflet Turf JS - polygon with negative offset missing some parts

I'm new in Turf JS and I have a polygon with a negative offset like: const coords= [ [25.085416706126708,55.1561039686203], [25.085351117322578,55.15612542629241], [25.08549687017286,55....
7 votes
1 answer
1k views

Removing small holes from the polygon

I am writing a post-processing flow on Python. I am trying to come up with an algorithm to remove the small holes from the polygon. I am using osgeo OGR right now, but I'm ok to do this part with ...
15 votes
3 answers
34k views

Cut polygon shapefile by line shapefile

I have two shapefiles, a polygon shapefile (lake) and a line shapefile (boudary) I want to create a new shapefile "polygon to the north of the boundary" What tool can I use in QGIS or other ...
-1 votes
0 answers
12 views

How to transform a Linestring to a polygon? [closed]

I have a linestring object rings to a square, I want to turn this object to polygon format. How to do this?
1 vote
1 answer
35 views

Calculating area's region in DEM

I have a DEM map in my project Tsunami Assesment project.The white area below the mentioned map is sea and we know that possible tsunami height is 14 meters(please neglect the line, there is an error ...
0 votes
1 answer
42 views

Join multiple geospatial polygons to their nearest lat/long point in a different table using GeoPandas or other Python tool

I've got a list of voting precinct geospatial polygons that need to join to a different table with just lat/long points for each zip code. How can I join each of the precinct polygons to its nearest ...
0 votes
1 answer
67 views

Extract Points by Attribute for each Intersecting Polygon in ArcGIS Pro

I have a points shapefile and a polygon shapefile, each with millions of features. All points lie spatially within polygons so that there is one or more points within each polygon. The points have an ...
5 votes
2 answers
170 views

Ordering polygons from north to south in QGIS

In QGIS 3.10 I want to order 22 polygons north to south based on their position using their centroids. I have used the centroids tool to determine where their middle is. But now I'm not sure now how ...
0 votes
1 answer
61 views

Storing MultiSurface and PolygonPatches in SQL database - conversion to basic OGC geometry types

I am new to GIS. I am working on a requirement of storing in the database administrative units (states, counties, communities, cities, etc.) as geometries (borders / areas) in order to be able to make ...
1 vote
1 answer
78 views

Creating polygon mask in QGIS

In QGIS 3.22.5, is there possible to use polygons for the masking layer? I want to use numerous little polygons to mask lines (only layer which consists of lines). In ArcGIS that works just by ...
0 votes
1 answer
153 views

Orphaned holes in LoCoH K

I am trying to estimate the home range of wolves and would like to use LoCoH to do that. However I am running into a orphaned hole problem that I really do not know how to solve. var <- read.csv(&...
0 votes
0 answers
19 views

R : Reading KMZ and appending geography to polygon from png

Question: How do I make a png embedded within a kmz useable as a polygon? Context: I am trying to read a KMZ file generated by a free 3rd party tool and to make the .png image within useable as a ...
1 vote
0 answers
31 views

How to remove areas of overlap within the same layer in QGIS

I'm currently working with some data on soil survey areas in the US, and have run into a small issue when intersecting this data with another set of parcel areas. The problem appears to be that there ...
0 votes
0 answers
31 views

Problem Importing KML QGIS

I'm pretty new at QGis. Whenever I try to import KML into QGIS, I do not see any of the points I imported. Somedays ago I could. I don't understand what's happening and the reason about this.
0 votes
0 answers
31 views

Merging DEM with polygons/lines

I want to connect my DEM (digital elevation model) with the map which was divided into polygons/lines. I am analyzing tsunami events in my project. I have the following documents: one of them contains ...
2 votes
1 answer
27 views

How to determine data used for plotting polygons in QGIS

I have this shapefile of soil characteristics in Massachusetts, but when looking at its attribute table, I can't determine what values are being used to plot each polygon. This becomes an issue when I ...
28 votes
1 answer
74k views

How do I change the polygon fill color and border color for SpatialPolygons objects?

I have SpatialPolygons or SpatialPolygonsDataFrames which I'd like to plot. How do I change the color using the three plotting systems in R (base graphics, lattice graphics, and ggplot2)? Example ...
1 vote
1 answer
23 views

Checking surface area of com.vividsolutions.jts.geom.Polygon

I would like to compare the area of a polygon created with some coordinates passed and ensure that it is less than half the sky or a set area. My approach to create the Polygon is as follow: Geometry ...
0 votes
1 answer
290 views

How to delete polygon points in Google Earth web app?

I’m using Google Earth web app, because I can’t see how to create a publicly shareable link to a project created from a KML file and uploaded to Google Earth. When I draw a rough polygon, and then I ...
3 votes
1 answer
29 views

Request attribute information from multiple polygons below a point

In QGIS I created a "grid" with points 100 m apart from each other. Below this layer of points there are multiple layers of polygons. Each polygon has a column with values in its attribute ...
1 vote
1 answer
37 views

Leaflet.PolylineOffset Polyline drawing issue

I don't have much experience with Leaflet JS and I'm using Leaflet.PolylineOffset in order to draw a polyline around a polygon: L.polygon(coords, { fillColor: 'white', fillOpacity: 0.5, weight: 20, ...
1 vote
2 answers
59 views

Leaflet.PolylineOffset Polyline with offset is drawn on the inside of a polygon

I'm new in Leaflet JS and I'm using Leaflet.PolylineOffset in order to draw a polyline around my polygon: L.polygon(coords, { fillColor: 'red', fillOpacity: 0.5, weight: 20, color: 'red', opacity: 0.5,...
9 votes
3 answers
1k views

Alternatives to Zonal Statistics which include partial pixels (QGIS)

The task I want to complete is essentially exactly what the Zonal Statistics plugin for QGIS aims to achieve: gives statistics about the values of a raster layer in areas defined by polygons. However,...
1 vote
1 answer
55 views

Distance between polygons and points in GeoPandas

I have a main polygon of polygons that have areas mapped out on a map and a bunch of points such as sample below NAME lt ln 1 12.9336806 77.6122669 2 12.974768 77.767745 ...
5 votes
2 answers
143 views

Flipping polygon around arbitrary axis in QGIS

I want to flip a vector polygon about an arbitrary axis. What I would like to do is select the polygon to flip, pick two points (A & B in image below) identifying the axis about which the flip ...
3 votes
1 answer
65 views

Removing black lines in between shapes in QGIS

In QGIS 3.22.7 I have a large dataset consisting of small square geometries (for reproducibility, a sample of this data can be downloaded from here; the total file size is 9 KB for all of them). When ...
10 votes
3 answers
10k views

Removing visual polygon borders in QGIS

I have a GML layer representing a hexagonal grid that I would like to include in some maps. In QGIS 2.14.2 I applied a graduated style and completely removed the polygon border: However, in the map ...
1 vote
1 answer
41 views

Leaflet js add polygon with offset around another polygon

I am pretty new in working with Leaflet js and I have a polygon var coords = layer.getLatLngs(); L.polygon(coords, { fillColor: 'red', fillOpacity: 0.5, weight: 20, color: 'red', opacity: 0.5, fill: ...
4 votes
3 answers
1k views

Calculating interior angles of polygons or lines in QGIS

The problem In QGIS, it's easy to calculate areas of polygons or lengths of lines using QGIS expressions with area ($geometry) / $area or length($geoemtry) / $length respectively. However, there is no ...
1 vote
1 answer
21 views

QGIS 3.22.8 Raster sampling with polygons

This is a DEM of a slope. I have made a polygon grid 10X10. I can't find a command to sample the raster by polygons. I've thought something similar with r.neighbours picking the minimum value of the ...
1 vote
2 answers
81 views

Same symbology and color for all attributes of layer in QGIS

In QGIS 3.22.0 (Bialowieza) I have a polygon layer with different attributes. I'm making a categorized map for each attribute in my table. For that I'm duplicating and renaming my layer corresponding ...
0 votes
0 answers
34 views

Looking for QGIS equivalent of ArcGIS tool for buffering without polygons overlapping regions of neighboring boundaries

Is there a way to create buffers around a group of polygons (vector file) in QGIS where the overlapping buffer parts are not in the result? Please see picture example: I've seen a question asked ...
0 votes
0 answers
14 views

Bringing in another layer in the Geometry Expression coding

Im looking to create a output triangle using the Geometry by expression tool. I have two layers, layer 1 is a viewpoint and central location and layer two is a collection of locations. I want make a ...
1 vote
1 answer
43 views

Exporting data from points to a polygon

I'm new on GIS. We were migrating from an old map program to QGIS. My problem is that I need to have Polygons with data. And I have the information that I need in the polygons in "entities" ...
0 votes
0 answers
18 views

There's any way to export data from Access to polygons without having UniqueIDs?

I have polygons. I would need to have more information on them. I have that information in an Access database. But I don't have any identifier to serve as a reference. When I do a CSV import, it doesn'...
0 votes
0 answers
17 views

Multiple hatched fills in polygon layer (ArcGIS Pro)

The problem I am facing is, that the "historical" map has different pipes in terms of orientation as well as separation and I need to digitize them: The historical map contains several pipe ...
0 votes
0 answers
36 views

Split polylines at each polygon boundaries in QGIS [duplicate]

How to split polylines at each polygon boundary in QGIS ?
3 votes
2 answers
2k views

QGIS "Sum Line Lengths" return 'nan.'

I have a polygon shapefile and a (merged) line shapefile (both are zipped). When I use Vector -> Analysis Tools -> Sum Line Lengths on these shapefiles, I get a layer with some of the LENGTHS filled ...
2 votes
1 answer
544 views

Generate tiles from Leaflet polygons

I have a set of shapes drawn in Leaflet (using Leaflet.draw). I need to rasterize these into a tileset and export it because I need to use the images elsewhere. My initial idea was to go through ...
1 vote
1 answer
94 views

Calculating number of polygons needing to be crossed?

I have a bunch of polygons (parcels, green areas) and a bunch of wells (point, black triangles). How do I calculate the number of parcels I need to cross to get to the closest well to each parcel? ...
3 votes
2 answers
177 views

Extracting lines from polygons/buildings based on adjacency to lines/streets

I have a building and street shapefile of a district. I am looking for a way to select and eventually extract those lines or edges of the buildings that face the street. however the extracted edges ...
2 votes
3 answers
351 views

Randomising colour for many of polygons in QGIS

Is there a way in QGIS to randomise the colour of all the polygons present in a single layer? I'm currently using QGIS 3.20.3 and a lot of the plugins for this that I've found online are not ...
1 vote
1 answer
64 views

Calculate Average Vector Value Based on Points in Polygon

I initially had two layers that I "joined attributes by location." Now I have one layer. In this layer I have several points with values from 1 - 10 and several polygons that are census ...
1 vote
1 answer
61 views

Specifying the number of points per class (not per feature) when doing stratified sampling

I am quite new to QGIS (3.16 / Win 10) and have a raster of one band with integer values from 1 to 14. I polygonized this raster in order to generate random points afterwards. The derived polgonized ...
1 vote
1 answer
49 views

Map View in R: Labelling Name for Polygon in Map

I have created following choropleth map for cropland. The code I used is:- library(mapview) library(dplyr) library(sf) setwd("C:/Users/lenovo/Desktop/IEM") Province3Miscellaneous<-...
2 votes
1 answer
158 views

Can a self-intersecting banana polygon be made OGC-compliant in an Azure SQL Database using spatial functions?

I'm an experienced Postgres / PostGIS user fiddling with SQL Server / Azure SQL Database spatial capabilities for the first time. Banana Polygon For the banana polygon pictured above, I believe there ...
1 vote
1 answer
238 views

Possibility to use polygon as global area parameter for overpass query

I have been trying to provide a polygon with an array of coordinates as a global parameter for my overpass query. But the query is through syntax error. [bbox:poly:"50.7 7.1 50.7 7.2 50.75 7.15"]; ...
2 votes
1 answer
32 views

Dividing a square into smaller squares by using their shapes rather than their bounding boxes in R

I want to divide a square into 25 smaller squares. The square layer has a UTM coordinate system, so when plotted, it doesn't have flat bottoms and tops. When I try st_make_grid() function to overlay a ...
28 votes
8 answers
28k views

Calculating area in km² for Polygon in WKT using Python

I have polygons in WKT that looks like this POLYGON ((24.8085317 46.8512821, 24.7986952 46.8574619, 24.8088238 46.8664741, 24.8155239 46.8576335, 24.8085317 46.8512821)) I would like to calculate the ...

1
2 3 4 5
81