Questions tagged [clustering]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
17 views

Group PostGIS table-rows where geometries are close

In OSM there are often e.g. lines (paths) with the same name but different OSM-IDs. Right next to each other, so basically the same thing, but just different objects with no real relation to each ...
1
vote
1answer
60 views

Clustering and combining points in PostGIS

I am trying to cluster points near each other and group them into one coordinate based on the centroid of that cluster based on a bounding box. I'm able to cluster them and create a group number for ...
0
votes
0answers
18 views

Clustering adjacent polygons with values over a given threshold with Python

I have a GeoPandas dataframe that looks like the following geometry raster_val 0 POLYGON ((1.85626 49.12003, 1.85626 49.11171, ... 28.530001 1 ...
0
votes
0answers
33 views

Show clustered features beside each other in OpenLayers

I have a map with clustered features, like in the picture. As you can see in the image some points have the same coordinates. What I want to do is when I'm at a certain zoom level and the points have ...
7
votes
3answers
215 views

PostGIS: Interpolate/Cluster geographic points to average points

Setup: PostGIS 3.1, QGIS 3.16 I have a bunch of geographical data (geometries). They show more or less the same route, just measured several times. Due to the many measurements and the GPS precision, ...
0
votes
1answer
33 views

ST_ClusterDBSCAN in Bigquery, how to get a list of points for each cluster?

The algorithm DBSCAN should be able to group points together in clusters based on their proximity. However, the example in GCB Bigquery has only the number of clusters. WITH Geos as (SELECT 1 as ...
0
votes
1answer
37 views

Creating homogeneous groups of areas from raster using QGIS

I'm trying to create homogeneous groups of areas from a raster which contain elevations data (in the red area). currently I am doing it manually creating new polygons for each groups. Is there a way ...
1
vote
2answers
62 views

Clustered points legend prints as separate RGB bands

I'm using one the ArcGIS clustering samples in order to generate clustered points. This achieves the desired effect on the map and legend. However, when I include the Print Widget in this sample, the ...
3
votes
0answers
23 views

Adding points to every “eligible” cluster in PostGIS (ST_ClusterDBSCAN)

I'm currently using ST_ClusterDBSCAN in PostGIS to identify similar points for conflation. (Using clustering to see where multiple entries are within a given range and then manually reviewing & ...
0
votes
0answers
11 views

Clustering method based on building attribute data

I have a building footprint and each building has a quality metric attached to it from a scale 1 to 6. I want to know if there is a certain pattern or cluster associated with the building spatial ...
1
vote
2answers
49 views

Extracting the neighbouring cluster to Excel

As a beginner in QGIS, I have a question. I have this shapefile which is a map and then divided into clusters. So what I want to do is find the four clusters that share a border with the chosen ...
0
votes
0answers
11 views

Analysis of clustering results in SNAP

I have implemented K-means and Expectation- maximization algorithm on my sentinel-1 SAR image in the SNAP toolbox. Now I want to compare which clustering result.is better using beta -cv or silhouette ...
-1
votes
1answer
26 views

Taking cluster of points located near each other and creating just 1 point located in center using ArcMap

I am using ArcMap. I am doing a quick project and want to take these points and create just 1 point for each cluster located in about the center of the cluster. Is there a tool to help me do this? I ...
0
votes
1answer
50 views

Identifying spatially contiguous clusters in raster data using R

I am doing a classification of z over a single raster of dimension x,y,z. r <- raster(nrows = 200, ncols = 400, xmn=-1, xmx=1, ymn=-1, ymx=1) r[] <- sample(1:100, size = 80000, replace = TRUE) ...
1
vote
0answers
86 views

Getting the center point of a cluster in Pandas

I have a list of of coordinates that have areas mapped out as follows import pandas as pd import numpy as np import folium from folium import plugins from folium.plugins import HeatMap import pyodbc ...
2
votes
1answer
55 views

Aggregate polygons from one table in PostGIS by proximity, area and date

I'm looking for guidance on a pgSQL query to dissolve polygons in PostGIS that are within 200 m of each other, have the same creation date and are above a threshold area. I am trying SELECT ...
0
votes
1answer
125 views

Setting Custom Cluster Icon with Picture Marker Symbols using ArcGIS API for JavaScript

Problem: Unsure how to set a custom icon for the cluster symbol, not the individual points or even the label of the cluster but the symbology for the cluster icon itself. Context: A Feature Layer is ...
0
votes
0answers
18 views

How to count K Means iterations on Earth Engine?

I've used ee.Clusterer.wekaKMeans on a Sentinel 2 image and I was hoping to know if there's a way to see how many iterations were done after the clustering is complete. I know that one of the ...
0
votes
0answers
65 views

Leaflet Geodata Marker clustering and intersection

I'm having a problem with grouping(clustering) markers I have a list geosjon features that I display as markers in the leaflet. And it looks like this: These points are saved in my Database and are ...
1
vote
0answers
31 views

Attribute based styling in openlayers 6 cluster layer

I was looking around for information, but i don't really understant the method. I wouldn't like to add more layers with the same name, because of the layerswitcher. I would like to switch to attribute ...
4
votes
1answer
93 views

Cluster points in each polygon into n parts

I am working on adding 2000 random points to each of 2 polygons and then clustering the points in those polygons into 4 clusters for each polygon. When I apply ST_ClusterKMeans() in PostGIS, it ...
0
votes
1answer
36 views

Find mean / median point based on ID attribute and point density (hot spots)

I have a point feature class within ArcGIS Pro, with 10.000 features, data are structured like this: ObjectID | MemberID | Lat | Long 1 ID_1 Y1 X1 2 ID_1 Y2 X2 3 ...
0
votes
1answer
45 views

Clustering markers from GeoJSON after adding data to layer in Leaflet

I am trying to add clusters in my leaflet map. I use overlayMaps which helps to choose one of the active layers, and in that case I want my marker to be a cluster. But it is not clustering. Again ...
1
vote
0answers
24 views

Groups the pixels into the nearest large class

I have clustered an image with 3 classes using the K_menas, but I would like the isolated pixel groups to be incorporated into the nearest large class. Is there a quick way to do this in the K_means ...
1
vote
1answer
180 views

Cluster GeoJSON data with PruneCluster

I'm trying to create a cluster with categories using PruneCluster around my GeoJSON layers. As the example in GitHub They are creating randomly some markers then adding them to the cluster. I did the ...
2
votes
2answers
228 views

Dividing Polygon into parts which have equal area using R

I have a Multipolygon and want to split it into parts with an equal area. How can I do it using R? my data: pol <-readOGR("/Users/Desktop/test.shp") pol_wkt <- wicket::sp_convert(pol) ...
0
votes
0answers
22 views

Automatically move points so that they don't overlap (reposition into cluster pattern)

I have workorder points in a SDE.ST_GEOMETRY feature class (Oracle 18c/10.7.1. geodatabase). I serve up the point feature class to an external system via a Map Service. Problem: The workorder points ...
1
vote
1answer
66 views

Pie chart for cluster points in QGIS

I have a point layer that I generated from a table with dresses using Geocode in the MMGIS plugin. In the attribute table I have several columns. I am interested in the column called "Factor"...
5
votes
2answers
108 views

Merging cluster of points into polygons

This is my project: I want to convert all points that touch each other into polygons, something like this (I know I missed some of them): I tried using dissolve and convex hull to do that, but they ...
0
votes
0answers
16 views

Geospatial way to optimise cluster entropy calculation per LSOA (Polygon)

I've been trying to create the entropy data below after doing a spatial join of the LSOA codes to the pandas dataframe (starting with GeoPandas). My silly "for loop" way is super slow for ...
0
votes
0answers
22 views

Cluster and Outlier Analysis for binary logistic regression

I am running a fairly simple Cluster and Outlier analysis. Do I have to include the outliers that meet my pvalue criteria of 0.01 in my binary log regression? Can I just analyze the HH and LL?
1
vote
2answers
70 views

Large number of multi-geometric features do not appear when using Cluster

I'm trying to use a method to display a cluster for a large number of geometries, based initially on this question. The method consists of transforming the geometries into points when the zoom is far, ...
3
votes
1answer
124 views

Visualizing Clusters with Google Earth Engine

I am using kMeans clustering to visual 3 clusters of an NDVI image. The clustering is always correct, but lower values could be green, when I want them to be red. Is there anyway to guarantee ...
0
votes
1answer
54 views

Sampling raster data and classifying the pixels

I'm completely new to python usage in GIS. I'm working with Sentinel images and want to sample the pixels of raster file only in the places which are represented by the geometry of the truth data ...
0
votes
1answer
60 views

ArcGIS JS 4.15 Cluster Popup navigation for Cluster

I would like to migrate from ArcGIS JS API 3.x to 4.16. One other feature I am using from 3.x version is clustering. In 3.x is it allow user to click on Cluster marker and navigate between all ...
1
vote
0answers
22 views

Using a postcode sector map with a population attribute, create clusters of those sectors to have a total population within a defined range

I have a postcode sector map in QGIS and one of the attributes is 'population'. I am trying to create a map showing what postcode sectors would need to be clustered together in order to split the ...
0
votes
0answers
69 views

Distance computation for geospatial clustering of lat/lon points

I am working with a pretty large dataset (~500K data points) in Python (GeoPandas) and I would like to perform geospatial clustering on some subsets (~60K points) of the data. My question has to do ...
0
votes
1answer
43 views

How to delete groups of grid files based on pixel cluster size (under 10)?

I am new to QGIS, and I am currently using flood modeller to produce a series of surface water maps. Once the data is ran, I get a series of 10m2 grid tiles with varying Z flood Values. We are only ...
0
votes
0answers
24 views

Comparing results of cross K-L functions for point patterns

Given marked point patterns with types a, b, and c, spatstat in R allows to easily calculate cross K(a,b) and L(a,b) functions. Envelopes can be used to estimate the significance at a given alpha (0....
2
votes
1answer
543 views

Leaflet.markercluster, markerClusterGroup into another markerClusterGroup [closed]

I would like to add markerClusterGroup into another markerClusterGroup. I tried but without success, no marker are displayed. Why? Because I would like to separate markerClusterGroup for multiple ...
2
votes
1answer
156 views

QGIS 3.10 - Point cluster symbology sum attribute

I have a point layer. Each feature represents a case where a soil receiving facility has received a weighed amount of soil, this amount is for each feature written in the attribute "Faktisk mængde". ...
1
vote
2answers
171 views

Leaflet MarkerCluster and Esri Leaflet Cluster - custom marker data from feature data not count of markers in the cluster

Is it possible to sum the data from the feature data in a esri feature layour to display on a clustermarker. The default value is the count of the markers contained in the cluster, but I want it to ...
1
vote
0answers
43 views

Spatio-temporal clustering Algorithm

I'm working with a dataset with latitude, longitude and date-time. I have millions of points per day and I want to group them using a clustering algorithm. I read this question Clustering geographic ...
0
votes
0answers
292 views

Load a cluster layer with vue mapbox plugin

I have a map in my client application. The map is built with Mapbox-GL and Vue Mapbox, the Mapbox wrapper built for Vue.js applications. I have a list of points that I would like to cluster. Actually, ...
2
votes
0answers
30 views

categorial clusters with colors not preserved at any scale

I am using @cluster_color expression and @cluster_size expression to built a categorical map with QGIS. I don't really understand why clusters doesn't preserve categories at all scales. Everything is ...
1
vote
0answers
16 views

How to size clusters on a map using js

I have clusters containing population counts in a mapbox-gl map. The cluster data is based on geohash aggregations from elasticsearch. I am having trouble sizing the diameter of my clusters. They ...
0
votes
0answers
32 views

Spatially constrained multivariate clustering

What's the current methodology for clustering geospatial data by features? Not in ArcGIS - rolling my own in a different framework. Example: I have some demographic dataset. Let's say this contains ...
0
votes
2answers
253 views

Cluster networkx graph with sklearn produces unexpected results

I have an interconnected weighted graph. The graph is a representation of a Multilinestring connecting points. See the visualisation in QGIS: So from each point I know how much it costs to go to ...
0
votes
0answers
93 views

GeoServer PointStacker transform styling in CSS

Trying to use the PointStacker transformation (that creates clusters of points) in CSS styling for GeoServer 2.17, while only a few other transformations seem to be documented in https://docs....
1
vote
1answer
69 views

QGIS cluster character symbol visibility based on cluster size

I want to display the cluster size with a condition : I don't want to display this information for small clusters. The expression is working fine but I don't know I can add else... case when @...

1
2 3 4 5
10