# Tag Info

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 ...

### 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.
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....

### 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 ...

### 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 ...
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....

### 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 ...

### 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) ...
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: