Questions tagged [spatial-cluster]
Use this tag when referring to spatial clustering in GIS.
92 questions
0 votes
0 answers
55 views
Cluster sampling of line data
I would like to create clusters of line data (geometry) for sampling, the geometry would be connected within each cluster. So far I’ve thought of: Create a bounding polygon > split it into X ...
0 votes
0 answers
40 views
Clustering of points within distance & criteria of max number of points within cluster & max cluster size
I am using QGIS and I have a cluster of say 1000 points. I want to cluster these points such that all points which are within 200 m of each other will be part of the cluster but with the constraints ...
0 votes
0 answers
53 views
Create area clusters in QGIS based on the sum of a field using the modeler
I want to cluster a point layer so that the internal sum of a numeric column (in this case, 'ebw_totale') within each cluster does not exceed 220. How can I do this with the modeler in QGIS?
0 votes
0 answers
29 views
PointStack styled WMS: how to understand if the clicked feature is made of points all with same lat and lng
I've a layer styled with PointStack and I want to know when I click on a stacked marker, if the cluster is made by point with all the same lat and lng or not. So I'm trying to use the countunique ...
3 votes
0 answers
388 views
Effective points clustering using PostGIS
I want to implement clustering points like here in the last example(with big and small points): https://www.crunchydata.com/blog/postgis-clustering-with-dbscan I have a table in PostgreSQL with ...
-1 votes
1 answer
175 views
Clustering points based on maximum distance to each cluster center
I have a layer of buildings (points). I would like cluster as many of them as I can around a common point in space in such a way that all the members of each cluster have a maximum distance of 100 m ...
0 votes
1 answer
370 views
Modify the “kmeans” function to include the condition that all cluster centers have a value from a given raster
I would like, if possible, to add a condition to the “kmeans” function. The condition is that all centers of final clusters must have values from a given raster, and thus, should not contain any NAs. ...
-1 votes
1 answer
539 views
Clustering points with maximum number of points using QGIS
I have a dataset of 488 GPS points which I would like to break up into small clusters. The maximum number of points per cluster should be 3. I have tried the K-means clustering tool in Vector Analysis,...
2 votes
0 answers
192 views
Measuring and comparing 'closeness' of two different clusters in QGIS
i'm doing a paper for university and i'm having problems with statistical analysis in QGIS (v.3.28). i have two sets of waypoints (nests) from two different years plotted on a beach in QGIS. visually ...
0 votes
0 answers
444 views
Point Stacker GetFeatureInfo
I've got a sld globally inspired by those posts (and a lot of others): GeoServer – Creating Stacked Points GeoServer Point Stacker: does identify work on non-clustered points? Point Stacker in ...
0 votes
1 answer
241 views
How to mask a raster and apply an unsupervised classification? R
I am getting the error: In matrix(values, nrow = ncell(x), ncol = nlayers(x)) : data length [6691] is not a sub-multiple or multiple of the number of rows [25628]. In reaction to knr <- setValues(...
0 votes
2 answers
433 views
Multiply two rasters in R, one raster has stack of 25 images, and another raster has one image
I want to multiply two rasters (one has 25 images, and the second raster has 1 image). I am using the loop function for multiplication. But I am not getting the results. library(raster) library(rgdal) ...
1 vote
0 answers
191 views
Split a region into segments based on majority points
Having many points that belong to different classes (in the example below 9), I would like to split the region into multiple segments. In QGIS, the majority/minority tool does the job. In Python, ...
0 votes
1 answer
220 views
How to change eps float value to geographic meter distance
I have a problem in making distance meter parameters for the DBSCAN tool. The problem is that I don't know the eps unit to use and how to change it to meters to be a parameter. Here's the Python ...
7 votes
2 answers
633 views
Cluster polygons into equal parts in QGIS
I have a large area divided into three parts. Each of these parts is divided into smaller parts. Each part contains an amount of biomass that can be cut and sold. The total amount of biomass in the ...