Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [clustering]

Partitioning data points into subsets of objects according to their mutual "similarity," without using preexisting knowledge such as class labels.

0
votes
1answer
26 views

Open the popups of all markers that are visible on the map with a zoom > 10

I need to open all the markers that are visible on the map at Zoom > 10. I am using leaflet.markercluster plugin. Init map: initMap() { this.map = L.map('map', { center: [55.55, 37.61], ...
0
votes
0answers
24 views

Leaflet markers at same geo location (ClusterGroup)

I have a map created with leaflet with different markers. Sometimes the markers have the same (1:1) geo position. I have already tested the great addon clustergroup, but I need the function to be ...
0
votes
0answers
30 views

Forming designed clusters of points in ArcMap or ArcGIS Pro [on hold]

How can I make clusters of 7-10 points that should not be more than 1 mile of themselves. There are over 1000 points and I've always made the clusters manually but its time consuming. How can I do ...
0
votes
1answer
20 views

Spatially constrained multivariate clustering in ArcPy gives AttributeError?

i want to use the Spatially constrained multivariate clustering tool for a point shapefile. I'm using PyScripter. The shapefile is named "LITO2016_area_modelli_20190312_v2" and the attribute fields i ...
0
votes
0answers
14 views

Browse features in cluster won't work in ArcGIS Web App

After creating and configuring a web app i realized that the "browse features function" included in the cluster pop-up does not work properly when clicking a point layer's cluster icon. After showing ...
1
vote
1answer
27 views

Creating clusters based on attribute and proximity [duplicate]

In my map as you see below, I have my population by district. I want to create 50 clusters with similiar sums of the population and by proximity. How I can achieve this? For each cluster, I want the ...
0
votes
0answers
29 views

Dissolve polygons using clustering

The attached vector file contains thousands of individual polygons (a byproduct of the underlying raster image). The result of using polygonize function in qgis. My intent is to dissolve the polygons ...
7
votes
1answer
115 views

Clustering points and summing up attributes per cluster in QGIS

We want to find out the ideal location for sheds and the required dimensions of each shed. As input, we have a point layer with locations (each representing one arable field) and the estimated yield ...
0
votes
0answers
25 views

How to cover data by circles, limited by a maximum of values?

I have a regular grid with a cell width of 200 meters (available as raster and vector data set). Each cell has a value from 0 to 2000. I now want to draw circles around these cells in such a way ...
0
votes
0answers
35 views

Clustering of Coordinates?

i want to detect wildfire in earth engine. So the classification works almost very well. But now i want to determine the fire polygons, calculate their centroids and then cluster centroids which are ...
0
votes
0answers
20 views

Cluster Point Symbology not supported on QGIS Server

I am using the QGIS cluster points symbology feature. It works well in QGIS Desktop 3.4 but not on QGIS Server (installed on Ubuntu Server).. Is Cluster Point Symbology supported in QGIS Server ? ...
1
vote
1answer
60 views

K-means clustering in QGIS with statistically significant difference

Anyone knows that how to do K-means clustering with significant difference? What I means is as the image shows, the area is divided into two zones using k-means clustering, and the significant ...
2
votes
0answers
17 views

Clustering by Equal Sum Value [closed]

I have a shapefile of points that each have a value A. I want to be able to create cluster regions such that if I sum value A for each point in a region, the sum of value A for each region will be ...
2
votes
0answers
73 views

Rank-based Spatial Clustering in Python

I was wondering if there was any python (or R) packages out there that can do spatial clustering on ranked data? For each US state I spatially varying value for education rankings. For example, for ...
3
votes
0answers
49 views

Clustering based on eqaul populations

I have a map of a city that is divided into 65 sectors (building lots in purple, sector boundaries in red): In my shapefile of building lots, I have an attribute that is the total population within ...
1
vote
0answers
28 views

Merging and Clustering Rasters using QGIS?

I have 3 rasters for three regionalized variables (r1, r2, r3). The rasters have the same projection, origin and cell spacing. Can I merge this into ONE "multivariate" raster? (ie x,y,r1,r2,r3) I ...
0
votes
1answer
95 views

Removing Outliers from point layer

I am a not so newbie user of QGIS but have no knowledge of Python. I have a large dataset of points. Each point has attributes, one of which is a group it belongs to. It is expected that the points ...
0
votes
0answers
56 views

Creating Polygon from groups of points

I have a point feature class (Address Points) and I am interested in creating a polygon feature class around groups of 500 address points. Is there a way I can do this programmatically, as opposed to ...
2
votes
1answer
57 views

Find EPS for DBSCAN

I have location posts from Instagram Data and want to cluster them by density - using DBSCAN. I played around quite a lot with different minPts and eps but never receive clusters (always one big ...
0
votes
1answer
64 views

Identify lat long points falling out of cluster

Problem Statement I have a set of lat-long locations, say 30 in number. Ideally they should be just a few meters from each other on ground. But sometimes there's that odd junk data point that's 20kms ...
1
vote
0answers
139 views

PostGIS - Dynamic Server-Side Clustering based on Zoom level

I'm working on a Ruby on Rails application that is showing road signs on the map(leaflet). So, user can browse map and road signs, great. But, if there are a lot of signs and user wants to zoom out, ...
1
vote
0answers
127 views

Cluster points into evenly numbered groups

I need to take x number of points and equally/spatially divide them into groups. Meaning that if I had 40 points like in the image below and wanted to have 4 groups of points. Each group should have ...
0
votes
1answer
115 views

ST_ClusterDBSCAN in PostGIS gives me 0 for the cluster ID

I am trying to cluster latitudes and longitudes from a dataset containing locations in Germany (n=52612, about 9000 without duplicates). I am running the DBSCAN algorithm, but for none of the ...
1
vote
1answer
116 views

Performance issues with (clustered) point features

How do I get a point features layer containing roughly 2800 labeled features to perform smoothly when exported (and converted to GeoJSON) with qgis2web? Specifics: I use qgis2web 3.4.0 and QGIS 3.2.3 ...
0
votes
1answer
376 views

Clustering point data in QGIS?

Working in QGIS 3.4.1 Madeira I have a layer with many data points, for visual purposes I wish to remove some of the overlaying points. Is there a simple way to perform some sort of clustering/...
0
votes
1answer
114 views

Point Cluster in QGIS and Legend

I am using the point cluster symbology in QGIS and have defined the size of each point based on the cluster size using @cluster_size in the size assistant. It looks great on my map, but I cannot ...
1
vote
0answers
65 views

Cluster LineStrings using HDBSCAN?

I am trying to cluster a set of LineStrings (made out of lat/lon Points) with the help of HDBSCAN (using the "haversine" metric). The objective is to define the most "usual" path. I have only managed ...
1
vote
0answers
110 views

Algorithm to cluster coordinates within a maximum radius [closed]

I am looking for an algorithm that will allow me to find the centers of clusters of an arbitrary radius, such that all coordinates are covered. Currently, I am doing a very basic routine where I ...
3
votes
1answer
283 views

Server side clustering with geohash

I need help with clustering algorithm. I have a mysql database with lat, lng, geohash(12 chars). I am usign this query to select all records for zoom level 2 (2 chars) SELECT COUNT( id ) , LEFT( `...
4
votes
1answer
189 views

Creating Groups of points based on proximity in QGIS?

I have a dataset with around 900 points and I want to cluster them into groups of 44 based on proximity. Is this possible in QGIS? I have tried to use the convex hull tool with no success.
0
votes
1answer
75 views

Adding values from a table to an image band - Google Earth Engine

I'm trying to add values from a table to a cluster image. The cluster image has 50 cluster classes, and my table has 50 values for each cluster class. How do I add the values from that table to the ...
1
vote
0answers
91 views

Using output of unsupervised cluster analysis to train supervised classification for vegetation mapping?

I'm using Google Earth Engine to classify mangrove forests from Landsat imagery to calculate extent. Let's say I perform an unsupervised K-means cluster analysis on a Landsat scene to identify general ...
2
votes
1answer
152 views

data-defined attributes in QGIS' point cluster symbols

I'm wondering how data-defined attributes work for the cluster symbol when using the point cluster layer styling in QGIS 3.*. How can you use the values of the points within the cluster for data-...
0
votes
0answers
76 views

Data-driven cluster colour with mapboxgl

I am trying to draw circle which colour depends on a "group" attribute in my geojson. I followed a simple example with these colours: map.addSource("data", { type: "geojson", data: url, ...
0
votes
0answers
28 views

What is the best way to Clusterise Salinas dataset with highest accuracy?

I am trying to clusterize every band of a Salinas dataset (as a fair duplicate of ground truth) using kmeans and cmeans, but they are both disappointing! The spectral signatures of every available ...
1
vote
2answers
232 views

Create buffers from points by attribute

Suppose I have a points shapefile with a 'group' attribute, each value of which identifies a number of points (e.g. group=1 identifies points 1,3,6 and group=2 identifies points 2,4,5). How can I ...
3
votes
0answers
126 views

Grouped “labels” for QGIS 3.0 Point Cluster styling?

I'm trying to make a cluster visualization of a vector point layer about trees with a few requirements: The clusters need to change depending on zoom level (solved) The clusters need to indicate how ...
0
votes
0answers
78 views

cluster polygons with scipy linkage using the bounding box

I'm trying to cluster some polygons and so far I'm using linkage following this tutorial with the polygon's centroids and cutting the cluster at a specific max_distance. The results are not as ...
1
vote
1answer
194 views

Finding geometry of cluster from points collection using PostGIS?

I have a regular grid, each point in the grid belongs to some cluster, and I need to find geometry of this clusters. My tables look like so (only necessary fields): grid_nodes( *id uuid, ...
0
votes
1answer
66 views

Point Similarity Clustering

I am new to geographical statistics so please pardon this question if it is a duplicate. I would like to test if points that are similar are more or less likely to be near each other. I am latitude ...
0
votes
0answers
31 views

K means clustering where centroid is a node

How would you approach a k mean clustering where the calculated centroids have to be on the same position as one of the nodes? as you can see we have 2 centroids which are arguably the center of each ...
0
votes
0answers
127 views

Is Spatial clustering with PostGIS possible to generate N number of groups that have 10 elements?

I need to create a query using some sort of spatial clustering algorithm within PostGIS database. Currently, I am using pgAdmin version 4. More specifically, I need to create N number of groups that ...
0
votes
1answer
75 views

Filter clusters in PostGIS by size

I am clustering points in a table based on their Mercator distance (~10km, it doesn't have to be that precise, so I'm fine with projection distortion). What I want to achieve is to only query the ...
19
votes
1answer
610 views

QGIS 3.0 point cluster renderer, is it possible to control rendering order (z-order)?

I've been having a play with the new point cluster renderer in QGIS 3.0.2 and it's great - a lot easier (and faster) than having to do the clustering yourself. To show what I mean, here's an example ...
2
votes
1answer
329 views

Label display based on cluster size

In QGIS 3.0, I am using the new clustering style. I want to display labels based on cluster size. What I tried in expression field: case when @cluster_size>5 then "label_name" end
1
vote
0answers
46 views

Split shapefile to approximate area

I have a shapefile with multiple polygons of different sizes and want to split this shapefile to new ones trying to achieve a determined area, but without splitting any polygon. For example: I want ...
0
votes
1answer
570 views

Dynamic point clusters in QGIS

I have a point layer with singular points set with high accuracy to the position of certain sites, each point representing one site. There are 8 different types of site. When representing these points ...
0
votes
0answers
25 views

Importing xy layer with projection / Ripley's K analysis in ArcMap

I am new to ArcMap. I have a data set with a couple of thousand points. I ID'd objects in photos; each photo had a lat/lon recorded; each object was given a lat/lon based on its pixel location in the ...
0
votes
0answers
43 views

Spatial Clustering for a cluster value sum [duplicate]

I am looking to spatially cluster a series of polygons of countries The resultant groups are spatial constrained (next to one another) and need to a have a group sum greater than a certain value. ...
2
votes
0answers
100 views

Cluster Points on spatial network in R/QGIS

I am searching for a method for clustering spatial points along spatial lines. The points are connected to the lines. I tried nearest neighbour clustering and gProject/gInterpolate from the rgeos ...