New answers tagged

3 votes
Accepted

Creating new polygons from intersecting polygon and polylines in QGIS

Use the "Split with lines" geoalgorithm. Before: After: Afterwards the application of the "Remove null geometries" and "Delete duplicate geometries" geoalgorithms is ...
user avatar
  • 23k
0 votes

Displaying only points within polygon I created in QGIS

Use symbolgy and assign the function 'geometry' as below: pole_of_inaccissibilty($geometry,1) or use the plugin Point sample tools.
user avatar
1 vote

'union' between spatial polygons and spatial points in R

I found out how to do it. Two ways: applying point.in.poly(grid, acled). So x= polygons, y=points. applying point.in.poly(ACLED, grid) in the right way then merging with the initial grid. grid....
user avatar
  • 41
0 votes

Counting stacked polygons in PostGIS

Let's assume there is a polygon layer called 'poly_test', see image below. Extending the idea from @geozelot it is possible to count the polygons via grouping by their geometry. With the following ...
user avatar
  • 23k
0 votes

Count overlapping features using Geopandas

A better solution based on Parker Devine's answer def count_overlapping_features(gdf): #generating all of the split pieces import shapely bounds = gdf.geometry.exterior.unary_union ...
user avatar
  • 1
1 vote

Filter by bounding box in GeoPandas

A quick solution to this if the shape you want to clip by is a box: from shapely.geometry import box bbox = box(*df_sussex.total_bounds) df_clipped = gpd.mask(df, mask=bbox) It uses the shapely....
user avatar
3 votes

Calculating mean value for points within polygon in QGIS

Solution 1 Using the data you provided, I get meaningful results using Join Attributes by Location (Summary), see screenshot below and be sure to make settings accordingly. Solution 2 Another option ...
user avatar
  • 40.1k
4 votes

Calculating mean value for points within polygon in QGIS

There is a possibility using a "Virtual Layer" through Layer > Add Layer > Add/Edit Virtual Layer.... Let's assume there are two layers one with points called 'points_example' (green) ...
user avatar
  • 23k
1 vote

Looking for QGIS equivalent of ArcMap's "Selection by Location" tool with "Have their centroid in" option

You can use multiple steps: Create centroids of the layer you want to select from Extract the centroids within the selection polygon layer Extract the polygons intersecting the extracted centroids:
user avatar
  • 51.3k
9 votes
Accepted

Drawing lines that overlap inside the perimeter using QGIS

Set your border to simple line and check Only draw the line inside the polygone (or something like that)
user avatar
  • 753
8 votes

Drawing lines that overlap inside the perimeter using QGIS

One option is to set an offset that is 1/2 the stroke width. You can adjust this offset if the thin white space between the polygons bother you. You can also change the join style to make the ...
user avatar
  • 34.3k

Top 50 recent answers are included