New answers tagged

0 votes

Converting vector or polygon layer to a continuous raster in ArcMap

An off the top of my head approach you could explore is to use: The create fishnet tool to create a grid of polygons Select the grid polygons that intersect your polygon data Run convert to raster ...
  • 40.7k
1 vote

Add geometry Attributes (area and perimeter) using PyQGIS

If you want to use Processing algorithms you can concatenate many algorithms. In you case: from qgis import processing clip = processing.run("native:clip", { 'INPUT':...
  • 2,979
1 vote

Create polygons from opened/overlapping lines

What you're looking at here are significant topology errors. Here's a good article on ways to fix them in QGIS. Once you've fixed the topology errors, the polygonizing tool will work as expected, ...
  • 362
-2 votes

Finding average distance within polygon to point?

Build the shortest path map from the Capital and compute the area of each cell (feel free to ask for clarification)
  • 1
0 votes
Accepted

ArcGIS Pro Split 'multiple buffer ring' output into separate polygons based on centroids

I think Multipart to Singlepart would achieve what you want: https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/multipart-to-singlepart.htm
0 votes

QGIS: fill a simple line polygon with color when selected

A third, and manual, alternative to the other two answers currently posted, is to change the polygon layer's symbology from Outline: Simple Line to Simple Fill with a transparent fill. That's done by ...
  • 177
5 votes
Accepted

Add polygon areas by roof orientation condition

You can use sum() with a filter, like this: sum(area($geometry),filter:="DN">135 and "DN"<225 and intersects($geometry,get_feature('buildingpolygon',"buildingid",'...
  • 29.8k
4 votes
Accepted

How to make constrained Thiessen polygons in ArcGIS Pro/QGIS 3.26

Run multipart to single parts. Select polygons that do not contain any of the points that were used to create the voronoi polygons. Merge the selected polygons with the largest neighboring polygon.
  • 52.1k
0 votes

ST_MakeSolid() creating an invalid solid from closed polyhedralsurfaceZ

I realize that this has long been answered, and well, but I wanted to provide a bit more information, because I recently struggled with a similar issue. This is an application of the Right Hand Rule. ...
2 votes
Accepted

Manually modify the legend symbology in QGIS

Instead of using a pixel based graphical software approach, what you want to do can be realized much easier using QGIS expressions with Geoemtry generator. Then also the legend will appear correctly (...
  • 52.1k
3 votes
Accepted

Filling polygon with multiple unequally different colors and label (3, 4, 5 and more colors) - Code needed (Symbology - Geometry generator)

You can achieve what you mention in items 1&2 with the Geometry Generator. Assuming there are 5 attributes, representing percentages (total of all5 values needs to be 1). In my example, these ...
  • 1,925
2 votes

In QGIS how do I represent a polygon with no data as grey, and those with a value of zero as white?

Apply your graduated symbology, then change your symbology type to Rule-based (the rules will default to the existing graduated symbology, but you can tweak each class if you need after changing), ...
  • 56.6k
5 votes
Accepted

Create SQUARE polygon around center of the point

Maybe you can adapt from this code which makes use of Shapely's buffer method through GeoPandas with a squared caps style: from math import sqrt from shapely import wkt import geopandas as gpd def ...
  • 8,791
5 votes
Accepted

Why area of intersection differs from total area of polygon?

As stated in my comment, check Using area() or $area function in QGIS, when the data (polygon) is stored in UTM? for the difference between planimetric area area() and ellipsoidal area $area for more ...
  • 38.6k
0 votes

WFS intersect filter with multiple polygons

Thanks for taking a look at my question, I tried both of your suggestions and unfortunately it didn't work. I suspect you are correct and it is an issue with the source. I have managed to find an ...
0 votes
Accepted

shapely | Binary mask of Polygons' intersection

Instead of referencing a static tile_shape, for x and y coords, I needed the actual coords from the Polygon itself, using .bounds attribute. For use in range(), they had to be cast as int(). def ...
0 votes

WFS intersect filter with multiple polygons

That should work, but I think you may be mixing versions somewhere, as you seem to be asking for a version 1.1.0 service but reference FES (which is WFS 2.0). <wfs:GetFeature maxFeatures="5000&...
  • 77.5k
4 votes
Accepted

Polygon neighbors in a shapefile in QGIS using aggregate not working

Use this expression to get a string-formated list of the $id of all neighboring polygons. If you want the content of an attribute field, replace $id with the name of this attribute, e.g. "...
  • 52.1k
2 votes

Missing indices when extracting vertices and edges from polygon

You have a problem with your for loops. As there is only one polygon: exterior = polygon.geometry[0].exterior interior = polygon.geometry[0].interiors ext_coords = list(exterior.coords)[:-1] # ...
  • 52.9k

Top 50 recent answers are included