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

Polygons disappearing from display in QField

Being an extreme novice, I've set up a simple test/tutorial project with QGIS 3.22.4-Białowieża and QField 2.0.14 (on a LG G6 running Android 9), with one Geopackage layer for points and another for ...
user avatar
4 votes
0 answers
78 views

Select subset that is spatially equally distributed

Let's say I have a table point with ~10.000 rows. Each row contains a POINT(x, y). I also have a table polygon with POLYGONS(...). The points in the point table are unequally distributed in space. ...
user avatar
  • 3,017
0 votes
1 answer
82 views

Rasterise sf Polygon and Assign Cell Value based on Total Area Deforested

I'm a relatively new to working with spatial data in R. I'm working with Deforestation data (EPSG: 5880) for the Brazilian Amazon - consisting of 70,000 polygons of deforested land that covers all of ...
user avatar
  • 19
4 votes
1 answer
273 views

Creating minimal enveloping polygon to set of geometries in GeoPandas

To be able to do operations on a set of geometries in a GeoPandas GeoDataFrame, I need to be able to determine whether objects are on the outer "rim" of the set. The set of geometries is as ...
user avatar
2 votes
1 answer
157 views

Error when filtering spatial points dataframe: unable to find an inherited method for function ‘over’ for signature ‘"SpatialPointsDataFrame", "crs"’

I generated two spatial datasets: a SpatialPointsDataFrame and a polygon. The polygon should filter the SpatialPointsDataFrame, based on whether the points are in the polygon or not. However when I ...
user avatar
2 votes
2 answers
51 views

Creating land area polygon from shoreline within chart border in QGIS

I'm trying to create land area polygon from a shoreline within a chart border in QGIS, and there are some lakes that needs to be clipped from the land area. I've tried the "Lines to Polygon",...
user avatar
0 votes
1 answer
29 views

CAD file to polygon Using feature to polygon

I have cad layer file and I want to use feature to polygon. I want use arcpy to do this but it dosnt work. import acrpy arcpy.env.MResolution = 0 arcpy.env.MTolerance = 0 arcpy.env.outputZValue = 0 ...
user avatar
2 votes
0 answers
47 views

Combining polygons based on distance matrix in QGIS

I have the following layers in QGIS: a polygon layer made up of all the zip-code areas in Germany a layer displaying all the electricity grid nodes in the country. In a previous step, I created a ...
user avatar
  • 51
1 vote
0 answers
23 views

Removing glitches from edges of a polygon

Code: https://colab.research.google.com/drive/12gi6TDNLaYkz3qNkATryW_d-8QysH60L#scrollTo=xvNP-erJHlcP As you can see, there are glitches at each corner. And I would like to remove those glitches to ...
user avatar
2 votes
0 answers
125 views

Polygon clustering

I have a shapefile with a number of polygon structures. The shapefile looks like this: . Is there any way to cluster polygons and merge them together via Python to have something like in the following ...
user avatar
1 vote
1 answer
38 views

Connect polygons with gap without dissolve intersected polygons in QGis

I want to close gaps between polygons that are not intersecting and without a barrier in between (like streets). Is it possible to aggregate or connect neighboring polygons (or closing the gaps ...
user avatar
  • 37
0 votes
1 answer
55 views

How identify if polygons from layer A are in same polygon from layer B in Python

I have two polygon layers, layer A and layer B. Layer B polygons are much bigger than layer A polygons. Now, some of the little polygons from layer A are located in the big polygons from layer B, and ...
user avatar
0 votes
1 answer
29 views

Connect polygons with gap without dissolve intersected polygons in ArcMap

I want to close gaps between polygons that are not intersecting and without a barrier in between (like streets). Its possible by "Aggregate Polygons", but this tool is dissovling all ...
user avatar
  • 37
0 votes
0 answers
40 views

Displaying specific set of zip codes (polygons) on map in QGIS

For my thesis, I would like to highlight the service region of a parcel delivery company in a city in The Netherlands. I recently downloaded QGIS and apart from some tutorials, I don't have a lot of ...
user avatar
  • 1
3 votes
1 answer
104 views

Recursive intersection search to discover paths over a large polygon dataset

Summary I have a PostgreSQL table of some 80M polygons, and I am attempting to trace paths of connectivity from known starting points within areas of interest. The data is three-dimensional-ish, ...
user avatar
1 vote
0 answers
45 views

Dividing a polygon into only two equal areas in QGIS

I would like to look at only 50% of the area. To do this, I would like to divide the surface into two equal areas. (Afterwards, I would like to automate it using the model builder). I have followed ...
user avatar
  • 159
3 votes
1 answer
43 views

PostGis - Split polygon into two based in point

How I split this single polygon into two polygons based on the point where there is an intersection?
user avatar
  • 63
2 votes
1 answer
74 views

Aggregate points inside polygons

I have a project that I am required to aggregate points inside polygons that have a common value. Basically having QGIS to create a buffer around those points. The dark green arrows have a unique ...
user avatar
  • 21
3 votes
2 answers
95 views

Merging/Dissolving multiple layers in QGIS Virtual Layer

I have several polygon layers that I would like to merge and dissolve within a virtual layer in QGIS. So that any changes made to the individual layers will automatically update in the merged/...
user avatar
  • 33
0 votes
1 answer
36 views

Using ArcGIS Pro tools to determine front of polygons in relation to street lines

I am looking for help to develop a process to identify the sides and lengths of parcel polygons in relation to streets to determine the 'front' of the polygon, i.e. facing the street, so I can then ...
user avatar
0 votes
1 answer
67 views

Save simple WMS as WFS layer

I wonder if there is an easy way to transfer my WMS files to shapefiles/WFS. With satellite images I understand it isn't so easy to do this in an accurate way, but perhaps with my layers it is. What I'...
user avatar
5 votes
2 answers
72 views

Difference between features in the same vector layer using PyQGIS

I have a vector layer containing 3 rows (see image2). Each row is a polygon. The blue polygon is number3 and the magenta polygon is number2 (see image1) I need to subtract the polygon that has the ...
user avatar
  • 53
3 votes
1 answer
67 views

Random Points in polygon not created

I have a polygon shapefile with a single object and I want to create random points in it. The tool 'random points in polygon' in QGIS does it job well for polygon 1, but doesn't create any points for ...
user avatar
2 votes
1 answer
52 views

Cut polygons with each other based on attribute value

Our organisation have a large number of land use/zoning plans, many of them are overlapping each other. I am currently trying to make some sort of interactive map wich allows users to find out what is ...
user avatar
1 vote
0 answers
19 views

Fill Ring tool problem

In the help file it says "Draw a new polygon over the existing feature: QGIS adds a ring to its geometry (like if you used the addRing Add Ring tool) and creates a new feature whose geometry ...
user avatar
1 vote
1 answer
71 views

Creating a Polygon, with a hole, in Shapely

So I have two polygons: (i) An outer polygon, and (ii) an inner Polygon representing the 'hole'. I'm trying to merge these two to give a single Polygon, with the hole. For easy illustration, the outer ...
user avatar
4 votes
2 answers
176 views

Calculate Distance (in miles) from Point to Polygon Edge in QGIS

I am attempting to calculate the distance from a point to the nearest polygon edge (county boundary). I have approximately 80 points and want to find the closest county edge for all of the points and ...
user avatar
  • 49
2 votes
0 answers
26 views

ID/hash simple polygons

I am looking for a way to assign an ID to simple spatial polygons (no hole, mostly convex). The polygons represent real-life objects, that I don't have precise and exact boundaries for. Some of them ...
user avatar
  • 121
1 vote
0 answers
33 views

Capturing accurate polygons from field data

Drawing out a new polygon with snapping enabled to closely follow the vertices of the track line that I have seems to work, but I get the impression that the track itself has far more information that ...
user avatar
5 votes
1 answer
106 views

Adding space between repeated symbol for SVG fill in QGIS

I recently learned how to perform an SVG fill for polygons. The result fills like a brick fill without spaces: Is there a way to define a space between the repeated image from within QGIS (as opposed ...
user avatar
0 votes
0 answers
17 views

SLD style - pointN: position the label in the lower left corner

I am trying to position the label in the lower left corner. The idea is to get the vertex using the pointN function. But the label is not showing anywhere. Validation and legend preview is OK. Here ...
user avatar
  • 820
1 vote
0 answers
26 views

Identify in ArcMap (ArcGIS Desktop) does not show text in full length

I have a polygon feature within an ESRI-Geodatabase. The field TEXTFIELD within this polygon feature is of type Text and of length 400. A text within this field is visible in full length while editing ...
user avatar
  • 301
1 vote
2 answers
67 views

OpenLayers won't display polygon (or line) with zero size

Using OpenLayers 6, my app will not display anything for a Polygon (or line) where all the vertices have the same coordinates. Being that the style being used has a non-zero line thickness, I would ...
user avatar
1 vote
0 answers
23 views

Evenly distribute some points in different polygons (blocks)

I need to evenly distribute some points in different polygons (blocks) that I have within a study area in QGIS. Does anyone know any tool or way to do it?
user avatar
  • 71
5 votes
2 answers
258 views

Getting one point with coordinates for polygon in QGIS

I drew a polygon and after that, I extracted the vertices to eventually get the coordinates of the area. As shown in the screen capture I've got my y/latitude and x/longitude but I would like to get ...
user avatar
  • 399
2 votes
1 answer
895 views

Getting "No function matches the given name and argument types" when converting points to Polygons / Voronoi Diagram

I have these points stored in my database. Now I am trying to use to create a Voronoi diagram with ST_VoronoiPolygons(). I have tried doing: SELECT (ST_DUMP(ST_VoronoiPolygons(ST_Collect(geog)))...
user avatar
0 votes
0 answers
58 views

Get difference between raster an its extent

I removed the Nodata portion of the landsat8 satellite image using QGIS. Then, I used the Extract Layer Extent tool to generate polygons along the edges of the cut images. However, the result came ...
user avatar
  • 447
0 votes
1 answer
62 views

How to Polygonize the entire Raster image in QGIS?

QGIS is trying to create a polygon for the Raster image using Polygonize (Raster -> Vector). My Raster Data is a satellite image, but when I Polygonize it, polygon is generated in each pixel and ...
user avatar
  • 447
2 votes
4 answers
413 views

Converting OGR geometry as WKT of polygon from float to integer in the WKT string

(This is a repost into this community of my original question posted on SO, because there has been no answer so far. Hopefully in this community more luck. I'll ask for the other one to be closed.) I ...
user avatar
  • 33
1 vote
1 answer
75 views

Add values from two raster layer as attribute to a polygon layer in QGIS

The following data sets are given: 1 Polygon layer ("target areas") Raster 1 (= digital elevation model) Raster 2 (= temperature) I have the following goals: For each polygon in "...
user avatar
  • 19
1 vote
1 answer
36 views

OGR_G_ForceToPolygon() doesn't produce polygon - GDAL C API

Using the C APIs for GDAL 2.2.2 (within Swift app) I have a very simple OGRGeometryRefH that is a wkbLineString. I'm creating the wkbLineString and attempting to convert it to a wkbPolygon geometry by ...
user avatar
0 votes
1 answer
38 views

Creating polygons that follow the curvature of the Earth in ArcGIS JS

I am trying to divide a globe into equally sized squares and render them using ArcGIS JS where the rendered polygons follow the curvature of the earth. So far, I've made an algorithm to divide a ...
user avatar
  • 51
4 votes
1 answer
73 views

Clipping polygon based on a line to get a polygon in R

I would like to clip a polygon on the right-hand side of a line i.e. the portion of the polygon to the east of the line such that the result is a polygon. I have tried functions such as sf::...
user avatar
3 votes
2 answers
117 views

Create identical polygon adjacent to existing

I am currently trying to digitize FEMA flood panels and I was wondering if anyone knows how to duplicate existing polygons within QGIS. Specifically I am trying to have identical rectangular polygons ...
user avatar
0 votes
0 answers
38 views

Spatially Joining two tables

I have two tables in MariaDB. I am trying to join these two tables (Table 1 and Table 2). Table 1 contains Longitude and Latitude columns and Table 2 contains a MultiPolygonGeom column, which contains ...
user avatar
0 votes
0 answers
20 views

Polygon Intersection with LineString (closed curve)

I have a polygon as such polygon_coords = [(-13585557.004033158, 4498795.070440721), (-13585215.14187693, 4500515.198409752), (-13581108.78850055, 4497863.34704348), (-13581192.612077117, 4497554....
user avatar
  • 101
0 votes
2 answers
252 views

Parse GeoJSON polygons with holes library

We're trying to use polygons taken from OpenStreetMap and determine user locations. We're using geojson to parse the GeoJSONs we generate from OSM, but the deserialized polygons aren't being populated ...
user avatar
5 votes
3 answers
148 views

Selecting all electoral division within local electoral area in QGIS

I have two vector layers: electoral divisions (blue)(similar to counties) local electoral areas (green outline) (similar to states). I'd like to select all EDs 'within' a state using 'Select by ...
user avatar
5 votes
1 answer
143 views

How I can convert a point layer to a polygon layer in QGIS?

I need each point with its diameter to be a polygon
user avatar
0 votes
1 answer
20 views

R sf polygon only showing 3 corners

I'm trying to make a polygon over a chunk of North America. I try to make this 4 cornered polygon NAbounds<-st_multipoint(c(st_point(c(-103.58,28.9)), #SW st_point(c(-67....
user avatar

1 2
3
4 5
81