Skip to main content

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
0 votes
0 answers
4 views

Trying to match building(s) to lot(s) when data has margin of error

I have a set of building and lot GEOJSON data that I want to match and see which buildings sit on which lots. The problem is that the government data that I obtained has a significant margin of error ...
Justin Ricafort's user avatar
0 votes
0 answers
24 views

Leaflet - I want to delete a segment from a polygon and split it into a polyline or a polyline into two polylines

What I'm trying to do is have a button to delete a segment from a polygon, or a segment from a polyline. I tried attaching an eventlistenner to each segments I find in the in the drawnItems. I take ...
François Poulin's user avatar
1 vote
1 answer
58 views

How to assign tuple contents to individual variables

I have a code that creates a POLYGON. There a 5 points representing 5 x/y pairs (the last being a repeat of the first to 'close' the polygon. I can produce it either as a shapely polygon or a standard ...
WillH's user avatar
  • 479
0 votes
1 answer
58 views

Finding distance between two first vertexes of line in QGIS

I need to know if there is an expression, or tool to perform the following operations: extract the distance (2D or 3D), between the first two vertexes of a line or polygon.
Hugo Silva's user avatar
1 vote
2 answers
49 views

Extracting coordinates from shapely geometry polygon with PyQGIS

I have the following code to generate a polygon from some calculated points (x/y pairs a,b,c,d) and rotate it by a given angle (Line_Head) around a given point (Rot_Point). This works. ""&...
WillH's user avatar
  • 479
0 votes
0 answers
24 views

Saving polygon layer with custom forms in QGIS

I make a lot of polygons to calculate the area of different land use types in my work. To do this I usually custom form by opening properties > manage custom forms and field editor configuration &...
Adam's user avatar
  • 1
2 votes
3 answers
172 views

Filtering polygons by name in one column of QGIS Attribute Table

I have a file geodatabase of the ranges of every bird species on Earth, but I am only interested in a subset of 538 of them for which I have data relevant to a study on sexual dichromatism. The ...
Birdman's user avatar
  • 85
4 votes
1 answer
48 views

Creating new and separate layer from hole(s) in multiple layers in QGIS

I am trying to create a new layer that fits perfectly into the hole in the picture below. All of the orange shapes are different layers.
spatialuser201235's user avatar
-1 votes
0 answers
51 views

How would you "normalize" or find the "average" shape and size of a group of polygons? [closed]

I work with RF propagation data, primarily small cells. These cells can have a very different footprint based on the "clutter" or stuff that is nearby. However, I want to find what the "...
Noah P's user avatar
  • 57
5 votes
2 answers
230 views

Calculating area of intersection of two segmented polygons in QGIS

I have two sets of polygons. One contains villages, the other farming areas. There can be several farming areas in one village. Crucially, there can be cross-village farming areas. My approach to get ...
kemajuan's user avatar
1 vote
1 answer
57 views

ST_ReducePrecision PostGIS function throwing an error

I'm using ST_ReducePrecision in PostGIS to lower the tolerance of shapes so they can be read by ArcMap. I'm applying ST_ReducePrecision(shape, 0.0001) with a tolerance of 0.0001 to match ArcMap's ...
Sam's user avatar
  • 23
1 vote
1 answer
34 views

Convert polyline features to polygons given the attributes using ArcGIS Pro

Is there a geoprocessing tool or a technique in ArcGIS Pro to convert polylines (A) to polygons (B) taking into account the attributes? The geoprocessing tool "Feature to Polygon" allows ...
stonebe's user avatar
  • 477
3 votes
1 answer
63 views

Dissolving polygons within other polygons and accumulated one of their values in QGIS

I am planning a district heating system (pipe system in red). For this I need the total heat consumption of all cadastral units (in blue) next to the pipe to calculate the dimension. There are zero to ...
BAE_23's user avatar
  • 717
2 votes
2 answers
240 views

Rounding vertices of polygon to fixed number of decimal places in QGIS

When I digitize a polygon and snap to existing features, sometimes the coordinates end up very slightly away from where I want them to be for example 15.000000099, rather than 16. Is there a way to ...
Leigh Bettenay's user avatar
0 votes
0 answers
29 views

Preserve original number of closed/not-closed points to a shapely Polygon

In the following code: from shapely import Polygon a = Polygon([(0, 0), (0, 10), (10, 10), (10, 0)]) b = Polygon([(0, 0), (0, 10), (10, 10), (10, 0), (0, 0)]) print(f"{a=}") print(f"{...
johnthagen's user avatar
0 votes
0 answers
55 views

Split polygon at narrowest points

I have a massive polygon that looks like this : This is only a snippet of it. Given its size, it would be best to split it at its narrowest points. I've tried finding a potential solution for this ...
vivjmin's user avatar
  • 135
1 vote
0 answers
75 views

Create centerline of polygon in QGIS

I have building wall layer, and I want to extract the center line for generate the line of wall, as shown below, left is the origin polygons(complex multiple polygon with holes), red lines in the ...
giser's user avatar
  • 791
0 votes
0 answers
23 views

QGIS 3.28.9 crash when using Random Points in Polygon

I'm trying to create points in a raster layer of livestock chickens data. After creating an output raster with the values of interest, I used the Polygonize tool to vectorize the output raster. At ...
Iven Pepa's user avatar
  • 341
0 votes
1 answer
42 views

Removing true holes in a doughnut polygon

I want to create small cuts to open the holes in a shapefile, while the cuts should be contiguous without affecting the main shape and size of the polygons. The goal is not to have any true holes in a ...
mohd.elhadary's user avatar
0 votes
0 answers
39 views

Selecting multiple sections within polygon to create multiple separate polygons in QGIS

I have a large polygon split up into many different sections. Each section has an ID number ranging from 1-13. I want to be able to select all polygons with a certain ID, and then create a separate ...
Greeny's user avatar
  • 11
6 votes
4 answers
227 views

Creating new layer that shows the number of intersecting vector layers at each point in QGIS

I have a QGIS project file with over 50 layers, each representing a different species' habitat range. I would like to create a new layer that adds up the number of layers at each point in the map and ...
Achi26's user avatar
  • 61
1 vote
1 answer
45 views

Merging two (or more) selected objects in GeoJSON file within QGIS

I need to merge two selected, but spatially unconnected, polygon objects into one polygon object within QGIS. They both have the same attribute value within the one attribute field. The file is a ...
Essjacee89's user avatar
3 votes
1 answer
47 views

When moving vertex node, change the shape of each polygon that contains this node in QGIS

I digitized a surveyor's map, creating many polygons in a 1:7000 scale so that all points are almost in their correct location. I switch to a 1:1000 scale, both image and QGIS screen and want to fine-...
Martin's user avatar
  • 161
3 votes
1 answer
65 views

In PostgreSQL how to build polygons using lines around each dot

Probably a bit hard to explain but hopefully the image can explain better There are 2 datasets, one is a point, the other is a line. Intended outcome is having polygons based on them The lines form a ...
Luffydude's user avatar
  • 2,350
0 votes
0 answers
8 views

Error: Error: SaTScan in the continuous Poisson model

When I run the analysis using the continuous Poisson model in SaTScan, defining the polygon as everything within the distances between the furthest points on the map, I get the following message: &...
anna's user avatar
  • 1
2 votes
1 answer
107 views

Moving features of different geometries at the same time in QGIS

In QGIS 3.34 I would like to move a point feature and a polygon feature at the same time. The polygon is a round buffer around a point. I am only able to edit the point and polygon one after the other....
Kevin_S2021's user avatar
2 votes
1 answer
100 views

Python: Split Polygons where they overlap one another [closed]

I have a python script that produces a shapefile of polygons, created primarily using geopandas. I wish to split polygons where they overlap each other. Ideally removing all but one feature where ...
BlindedByBeamos's user avatar
2 votes
4 answers
165 views

Reducing decimal places of coordinates in vector data using QGIS

I have polygon vector data, some of the polygons are imported from another 3D program (Agisoft Metashape). The imported polygons have up to 12 decimal places in the displayed coordinates (attribute ...
chrissi's user avatar
  • 101
1 vote
0 answers
34 views

Convert ~14500 features into ~500 bounding boxes covering at least the same area in QGIS

I downloaded a shapefile from OpenStreetMap that covers all ocean and coastline. This consists of around 14500 features. What I am trying to do is generate a number of bounding boxes (say 300-1000) ...
Michael's user avatar
  • 111
1 vote
0 answers
50 views

Grouping data points based on proximity and minimal count of attribute in QGIS

I am using QGIS to map animal counts on farms in the Midwest US and using a circle polygon to show where there are more than 30,000 animals between all the farms in that specific area. Each data point ...
Ryan Whalen's user avatar
3 votes
1 answer
51 views

Merging attributes from line layer and polygon layer in QGIS

I am using QGIS 3.32 and have a grid layer with hexagons (so polygons) and a line layer. I would like the hexagons, which are overlapping the line layer to "take on" the attributes of the ...
jtheb's user avatar
  • 73
0 votes
1 answer
40 views

Filter polygons to find those which can contain specific dimensions [duplicate]

I have a dataset containing a large amount of polygons which act as potential locations for someone to park a van. To find the polygons that are suitable, they must be able to contain a 11.5 x 6.3 ...
Edward's user avatar
  • 1
5 votes
1 answer
178 views

Rendering polygon by two variables in QGIS

I have a set of polygons with two variables "variable 1" which can take values A, B, C, D, and E and "variable 2" which can take values V, W, X, Y and Z. I would want to render the ...
Stephen Clark's user avatar
0 votes
0 answers
44 views

Query to extract addresses in several parts of Germany is not working via QuickOSM

I a trying to extract addresses from the OpenStreetMap as polygons via QuickOSM using the keys: addr:street, addr:housenumber and addr:city. That works quite well, but not in every part of Germany. ...
Arne Kagermeier's user avatar
0 votes
0 answers
59 views

Extracting border from shapefile and then calculate distance to the border

I started with a states boundaries shapefile. I want to extract a part of state border and then calculate the distance of village centroids to the nearest point on this border. I have already ...
Ak2020's user avatar
  • 1
1 vote
1 answer
58 views

Looping through folders to find shapefiles and then merge them

I am trying to merge shapefiles into one shapefile by looping through folders. I merge them one by one by iterating through each file then merging it with an empty gdf that I set with columns that are ...
Ekkehardt Rosasee's user avatar
0 votes
1 answer
42 views

Combine dissolve aggfunc and lambda function

I am looking to aggregate different polygons and applies analytical functions at the same time. I have tried: df.dissolve(by=['ville','arrondissement','quartier'], aggfunc={'transaction':'count','...
bravopapa's user avatar
  • 485
0 votes
0 answers
22 views

Split a polygon in many parts by areas of specified values [duplicate]

I try to split a polygon in multiple parts based on known values. For example, if I have a 1000 sqm polygon i need to be splitted in 4 polygons (100 sqm, 600 sqm, 50 sqm and the rest of the polygon). ...
Razvan Dumbrava's user avatar
0 votes
1 answer
69 views

ST_GEOGFROMTEXT Multipolygons converted to Polygons in BigQuery

I've stumbled upon an intriguing issue while working with MultiPolygons in BigQuery. When utilizing the ST_GEOGFROMTEXT function to parse a MultiPolygon containing multiple polygons, the output ...
ebad malik's user avatar
0 votes
1 answer
50 views

How to identify polygons in contact with other polygons with a shared boundary of at least 3 meters in QGIS?

As part of my Master's Thesis, I deal with the development stages of unbuilt building land. I intend to divide the units of unbuilt building land within the selected settlements into 5 levels and for ...
Sara Golcman's user avatar
3 votes
2 answers
132 views

QGIS - Delete lines resulted from Symmetrical Difference/Clip

I used the symmetrical difference command with two shapefiles but the resulting layer containes lines due to minimal differences (see example picture below) Is there a way to automate the removal of ...
Helena's user avatar
  • 73
1 vote
1 answer
119 views

MultiPolygon to Polygon in Python [closed]

I need to change geotype from MultiPolygon to Polygon. Most of the original features are Polygon, but are automatically imported through API as MultiPolygon. How can I change all the types ...
Ilya's user avatar
  • 13
0 votes
0 answers
19 views

Setting map extents in print composer using a polygon layer?

I have a group of data points that need to be encapsulated within different polygons. I have used the geometries by expression tool to generate a layer of these polygons. I'm trying to feed the ...
user243940's user avatar
3 votes
1 answer
74 views

Centreline for vectors

I'm trying to get a centreline representation for some polygon output from OSM but having tried the approach in this post (Skeletonize vectors in QGIS/Python) I'm getting very odd results. Here's the ...
SFSDev's user avatar
  • 33
1 vote
1 answer
50 views

Calculate ratio of 2 polygons using QGIS modeler

Working with QGIS modeler, I need to do some arithmetic operations with some polygon areas. Let's say there are 2 polygons in layer A and layer B. And I'm inputting them into the model using Vector ...
Tolga Evcimen's user avatar
0 votes
0 answers
33 views

"ERROR: 22001: value too long for type character varying(6)" for polygon shapefile

I am facing an error ERROR: 22001: value too long for type character varying(6) while uploading a shapefile to online govt. portal. When I asked the person only mentioned that there is problem with ...
Rahul 's user avatar
3 votes
1 answer
139 views

QGIS - find overlapping areas between polygons and retrieve id per polygon

I'm having trouble understanding how to find overlapping areas between two polygons (using QGIS, but I'm open to coding if it's any easier), and obtain not only the output polygon, but also which ...
mto23's user avatar
  • 675
0 votes
0 answers
27 views

"Add Polygonal Object" button does not appear on toolbar

I use QGIS 3.36.2 and I would like to create Polygon by drawing directly on the map. So I would like to use the "Add Polygonal Object" button while edit mode but there is no one on my ...
Midori's user avatar
  • 1
0 votes
0 answers
44 views

QGIS - divide inside of polygon into smaller defined polygons

I have the following polygon in QGIS. It is roughly 260m x 20m Within it, I would like to create smaller polygons like so in QGIS: 12 - 20ft rectangles 15 - 40ft rectangles ^ for 7 rows (very badly ...
guest_231213's user avatar
0 votes
1 answer
75 views

Creating a vineyard map with QGIS

I'm trying to plot dots (the vines) in an irregularly shaped polygon. they are in parallel rows spaced 1.4 m apart and the vines are spaced 1.2 m apart. The rows are at a 45º angle from N. I tried to ...
Sophie Bernstein's user avatar

1
2 3 4 5
92