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
17 views

Getting horizontal distorted lines after reprojecting a polygon layer to Eckert IV using .to_crs()

I need a projected shapefile and my extent is whole globe. I am getting the horizontal lines with Eckert IV, Robinson and Mollweide. I need shape and area preserve accurately. How to reproject or how ...
Anushriya Jain's user avatar
-1 votes
0 answers
17 views

Yearly mapping and yearly/seasonal trend of polygon in Python [closed]

I have a NetcDF file with the following specifications: dimensions(sizes): time(1826), lat(25), lon(21) variables(dimensions): int8 crs(), int32 time(time), float64 lat(lat), float64 lon(lon), int32 ...
coulou's user avatar
  • 1
2 votes
1 answer
88 views

Run a Geographically Weighted Logistic Regression in R

I have the following data set containing socioeconomic variables: > glimpse(df) Rows: 730,099 Columns: 9 $ id <int> 25500, 25501, 25502, 25503, 25504, 25505, 25506, 25507, 25508, 25509, ...
Saïd Maanan's user avatar
0 votes
2 answers
48 views

Exporting polygon as DXF using PyQGIS

I am working on a script to export my dissolved polygon into Dxf but I get an error. Could somebody teach me how to do this? Here is my code: from qgis import processing from datetime import datetime, ...
PyCher's user avatar
  • 105
0 votes
0 answers
48 views

Expression works in one QGIS project, but not another

I have an expression in a Print Layout that populates a label with an attribute, based on which polygons are selected in map view. In the QGIS project that I made, it works perfectly. I tried copying ...
Winet's user avatar
  • 9
4 votes
1 answer
142 views

Expression for calculating the longest edge of a polygon rectangle in QGIS

I want to be able to calculate the longest edge of a rectangle polygon to create an expression for a style. The styled rectangles will have variable orientations, widths and lengths. I want to use ...
Kat's user avatar
  • 161
2 votes
0 answers
45 views

QGIS highlighted cell issues

Does anyone know why this is occurring? I obviously want the yellow highlighted polygon boundary to be always on top. Currently, the non selected shared boundaries are rendering on top of the ...
user225165's user avatar
1 vote
1 answer
43 views

Summing length of lines of a specific category from another layer in QGIS

I have a polygon layer of ski resorts call skiResorts. I have a liner layer of pistes called pistes. The pistes layer has 2 several attributes and include aa_piste_length and aa_piste_difficulty. ...
spreaderman's user avatar
0 votes
1 answer
16 views

Transform sf multipolygon with 1 feature into sf multipolygon with 2 features for each non-intersecting polygon in R

I have an sf multipolygon made up of two non-intersecting polygons. They look like this: But my sf object is stored as a multipolygon with 1 feature, so I cannot evaluate the non-intersecting ...
user157564's user avatar
3 votes
1 answer
67 views

Symmetric difference using geopandas.sjoin in GeoPandas

My aim is to find the 'non-overlap' between two GeoPandas DataFrame. In other words the result should exclude the intersection between gdf1 and gdf2. I am aware that I can iterate through the ...
bravopapa's user avatar
  • 337
2 votes
1 answer
63 views

Add parallel lines inside an irregular polygon QGIS 3.22 [closed]

I am using QGIS 3.22.10 My end goal is to know the distance a tractor will travel all up when it is seeding an area (the irregular polygon) at 1m distance (single line seeding). Is there an option to ...
Aagwood's user avatar
  • 97
0 votes
0 answers
11 views

Substracting water mask

I have a polygon with water bodies of my AOI. I would like to clip the water bodies from my NDVI raster layer ( like a water mask). I haven't found a tool in qgis or arcgis pro so far. Do you have any ...
lilo's user avatar
  • 33
1 vote
0 answers
42 views

When i export (save feature as) a polygon in QGIS it converts to a multipoint and multipolygon how do i stop this

Im using QGIS and I have a property boundaries .shp When I try to export this using the 'save feature as' option the resulting shpfile has missing poylgons and it has converted itself into multipoints ...
Sophie's user avatar
  • 11
3 votes
1 answer
108 views

Clean polygons by shape type

I have a map on QGIS that looks like this: I would like to clean the weird-looking polygons (inside a red circle for example) and keep the normal-looking ones. My initial approach was to compute the ...
bravopapa's user avatar
  • 337
2 votes
0 answers
36 views

QGIS error code, trying to split a layer [closed]

I keep getting the error code below when trying to split a polygon. There appear to be no duplicates and I have been able to spilt other layers within the same shapefile. Can anyone give me any work ...
Lucy 's user avatar
  • 21
0 votes
1 answer
47 views

Dissolve multiple overlapping polygons into one polygon covering the extent for all such instances of overlapping polygons and not merge into 1 featur [closed]

I have a polygon layer in which some polygons are close to one another whereas some polygons are just alone and do not have other polygons in vicinity. So I created a 10 meter buffer, I want to keep ...
soumik chakraborty's user avatar
2 votes
0 answers
47 views

Distort buffer on slope direction in QGIS [closed]

I'm an archaeologist and an average QGIS user, not advanced at all. I'm studying a method for the mountain archaeological contexts. My aim is to define some influence areas around the sites and ...
ugoposcolo's user avatar
2 votes
2 answers
73 views

Splitting complex polygon in QGIS

I have a problem with a polygon in QGIS. Is a polygon that represents all street areas in a city: And I want to slip all the area into smaller areas that represent the area of each street in the city,...
Daniel Miranda's user avatar
0 votes
0 answers
23 views

QGIS export to DXF scale issue

I'm trying to make a Nolli map. I was able to convert all the buildings in my chosen area to black vectors and export them to DXF, but when I open the resulting DXF file, the drawing is not scaled ...
Xavier Rhino's user avatar
3 votes
1 answer
36 views

QGIS Summing attributes of polygons contained inside region polygons. Some share boundaries. Intersection gets unwanted neighbors

So I am trying to sum up populations from a census polygons layer into a region polygon layer. Now I want to sum up the total population contained in each region polygon (A & B). Here's the ...
Michael J Steele's user avatar
1 vote
2 answers
31 views

How to set state boundary symbology for polygons in ArcGIS Pro?

I'm trying to symbolize a state polygon layer in ArcGIS Pro 3.1. I feel like I should be able to do it basically the same way I've done it in ArcMap, which is to select a line symbol to be used for ...
Matt Leonard's user avatar
0 votes
1 answer
39 views

Cut out parts of raster using polygons

I am looking to cut out some areas of a large raster using polygons. The existing clipping tools only cut the raster to the size of the polygon, but I just want to cut the areas of the polygons out of ...
Phoebe's user avatar
  • 187
-1 votes
1 answer
142 views

Create one continuous polygon from many polygons with holes in QGIS

How can I create one single continuous polygon from many polygon and the gaps will be preserved? So whole polygon will be connect into one big single polygon. Using the dissolve tool will not connect ...
Gajer's user avatar
  • 15
-1 votes
0 answers
18 views

Add ring in QGIS 3.22.10

Where is the 'Add Ring' to polygon feature in QGIS 3.22.10?
Aagwood's user avatar
  • 97
0 votes
1 answer
48 views

Intersect a set polygons/multi-polygons at once and get the intersected polygon

I have a Geopandas data frame with five multi-polygons geometries. Now, I want to intersect all the geometries at once and get the intersected polygon out of it. I tried using unary union and ...
data en's user avatar
  • 145
1 vote
1 answer
23 views

mviewer/OpenLayers: Create proportional circles from the centroids of each polygon in a layer

I have created a mviewer map. This one is based on OpenLayers 7.1. I created a map from a point layer added as WFS from my GeoServer. This layer shows the population using proportional circles. The ...
GisUser's user avatar
  • 567
0 votes
1 answer
68 views

Automatic filling of empty spaces (boundaries between polygons) in ArcGIS Pro

I have 15 thousand polygons that have empty spaces at the border location. Is there any way to automatically create new boundaries that would connect to each other in ArcGIS Pro? It would be best if ...
Seuss's user avatar
  • 3
0 votes
2 answers
81 views

Filtering lines with some conditions in QGIS [closed]

I have two shape layers: a Polygon layer and a Line layer in QGIS. I want to filter/highlight lines based on the following conditions: Case 1: Filter/highlight lines which cross all the polygons (...
Soham Chintawar's user avatar
0 votes
0 answers
38 views

How to prevent self-intersections when using PyQGIS

I've been having an issue while drawing polygons using this PyQGIS code below. Specifically, I've been encountering self-intersection and I don't know how to fix it. Any advice or suggestions? ...
Salim Erbui's user avatar
1 vote
1 answer
37 views

Freehand Editing 3 polygons not showing up

I'm using the Freehand Editing 3 plugin for QGIS 3.22.9 and I cannot get the polygons to show up. Currently I am digitizing archaeological drawings and I just don't want to draw every feature by ...
Danishboy's user avatar
1 vote
1 answer
32 views

Align edges of polygon to another polygon but only within a distance

I'm trying to align the edges of one polygon with another but only for a section of the polygon in ArcGIS Pro. Basically, I want to align the boundaries of the two polygons but only if they are close ...
RySmith's user avatar
  • 11
1 vote
1 answer
62 views

PyQGIS update field in point layer from intersecting polygon

I have a large dataset of points and polygons layers. My purpose is to update a field from each point with the id of the surrounding polygon. It was possible to do it manually, using the field ...
ThomR's user avatar
  • 13
4 votes
3 answers
184 views

Changing orientation of all polygons at once with numeric value in QGIS

I want to change the orientation of the raster/polygons with a numeric value around the centroid of the total grid. I have tried rotate($geometry, 45) in the Field Calculator but nothing happened.
N_LLC's user avatar
  • 605
1 vote
0 answers
36 views

Adding overlapping routes when there is no overlapping route using buffer and union

I am trying to do something to do with routes, Let's say I have 3 routes rt1 and rt2 are overlapping routes that share some length but r3 does not overlap with either of them. How would I just add the ...
OwO's user avatar
  • 13
1 vote
0 answers
27 views

overpass: some issue with wrong order of points to make polygon

I am running this query on overpass-turbo [out:json][timeout:25]; rel(223133); ( rel(r); ); rel(1250951); out geom; and I have received this polygon. but when I process this data my Image is ...
Cyrus the Great's user avatar
0 votes
0 answers
24 views

Create a polygon of the inner most area of three polygons using ArcGIS Pro 3.0.2

I have three polygons and I would like to create an extra polygon that represents the inner most boundary of all three without tracing manually so a GP tool or GP tool steps is/are required. The image ...
Howeitzer's user avatar
  • 570
0 votes
0 answers
41 views

OSM overpass API query based on GeoJSON polygon

I understand that the polygon feature for a query response with the Overpass API has to be in form (poly:"latitude_1 longitude_1 latitude_2 longitude_2 latitude_3 longitude_3 …");. https://...
simonericmoon's user avatar
1 vote
1 answer
46 views

How to find which Shapely Polygon contains an intersection?

Intersection between a line and a Polygon is not inside the Polygon(this). Polygon does not have any interiors. My intention is to find which Polygon contains the intersection, if there are multiple(...
goldfinch's user avatar
2 votes
3 answers
147 views

Offset/move polygons in specific direction QGIS

I want to offset/move the polygons in the direction north-north-western direction and perform this task 3 times. I can do this manually but it would be an approximation and I want them to exactly ...
N_LLC's user avatar
  • 605
1 vote
0 answers
34 views

I want to get rid of the line

So I used a set of coordinates into QGIS, so whenever I input another set of coordinates into the same Excel and exported it to QGIS I always get this result when converting points to polygons using ...
Catherine Paul's user avatar
0 votes
0 answers
32 views

Display each contact line for different polygons from same layer with different colours

Any idea on how to display polygons as borders, but keeping both contacting borders, without gaps, and keeping the colours of each polygon? The polygon should have no fill.
Vampi's user avatar
  • 1
1 vote
0 answers
45 views

Georeferencing list of polygons in QGIS when CRS is unknown

I have a list of neighbourhood polygons in Casablanca, Morocco, which have an unknown CRS. Here is a link to one of the polygons: (link to a json). I have tried several CRS in QGIS, but none of them ...
Karim's user avatar
  • 11
1 vote
0 answers
37 views

New Polygons vanish when ID is added [duplicate]

I am working on an old QGIS project and want to add new polygons to a layer. I have the data for the polygon in the attribute file showing an ID no and other data which also relates to other existing ...
Peter W's user avatar
  • 11
0 votes
0 answers
22 views

Projection reduces directional distortion

Below R code makes transects within a polygon. When I project the transect to lat long they are distorted, i.e. slanted to the left. Is there a way I can convert the transects to lat long whilst also ...
luciano's user avatar
  • 1,147
1 vote
1 answer
103 views

Polygons not showing when added to Leaflet map, may or may not show when page is refreshed

I am trying to create a map to which users can add layers from ArcGIS data. They click a button, which opens a modal. In the modal, they enter the URL of the ArcGIS layer, choose a colour for the ...
ysi_d's user avatar
  • 11
1 vote
0 answers
31 views

QGIS3 weed tracking via polygon attributes

I have been requested to provide some information about weed distribution on a site in the form of polygons that describe land forms. I am using QGIS3 and slowly getting the hang of it, might be too ...
Batco's user avatar
  • 11
2 votes
1 answer
99 views

QGIS: Combine stripes of different colors on polygons

I want to create a map that shows in which country which companies (offering the same product) are active. The style of the map should be similar to this one (source): So, if company A is red, ...
MariusK's user avatar
  • 21
0 votes
0 answers
23 views

SqlGeometry STBuffer producing abnormal polygon shape

I am currently not able to figure out what is causing the abnormal shape when drawing a polygon onto the map as shown below. Instead of being a complete polygon, there seems to be a triangle in the ...
KJSR's user avatar
  • 101
1 vote
0 answers
39 views

Encoding a Boolean raster from polygons in QGIS

Polygons become invisible when rasterised, and raster has very odd values. Can I correct this so raster has 1 for polygon and 0 for non-polygon? I have drawn polygons over a feature for a species ...
Birdman's user avatar
  • 51
1 vote
0 answers
36 views

Create polygons with fixed size along lines or another polygon

My task is to create layouts for the grey polygon with a rectangle covering multiple parts for the map extend. I then have to calculate the area of they grey polygon within each rectangle. My idea was ...
ibdmn's user avatar
  • 95

1
2 3 4 5
87