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
0
votes
2answers
115 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 ...
6
votes
2answers
1k views

Using GROUP BY linear spatial clusters with PostGIS

I have a series of points in a horizontal line, arranged into discrete spatial clusters by the underlying data pattern. Here's an example of what they look like: How can I use PostGIS to group them ...
0
votes
0answers
29 views

Compare the similarity of a point pattern with another using G function [closed]

I have two point patterns within the same area, and I want to use spatial G-function(Gest) to compare two patterns. In my study, two point patterns refer to two types of cells, what I want to do is ...
5
votes
2answers
598 views

Getting number of clusters and its markers with Leaflet?

I would like to know the number of clusters and its markers as soon as I open the map without zoom-in. I'm using: Leaflet 1.2.0 Leaflet.MarkerCluster 1.2.0 Firefox 57.0.1 OS/Platform On the image ...
0
votes
0answers
46 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 ...
3
votes
3answers
1k views

Is it possible to distinguish between points with the same coordinates?

I have several points with the same coordinates in one layer and of course they are located on top of each other. Is there a way to separate these points automatically (not manually)? I don't want to ...
8
votes
3answers
3k views

Remove clumps of pixels in R

I would like to remove isolated pixels (or clumps of pixels <9) from my raster image. library(raster) # create some raster data r <- raster(ncols=12, nrows=12) set.seed(0) r[] <- round(runif(...
2
votes
0answers
20 views

Importing hdbscan in QGIS plugin?

I am building a QGIS plugin and would like to add hdbscan in methods. But when I import with OSGEO4W shell it failed at this line: File "C:\OSGeo4W\apps\Python37\lib\site-packages\hdbscan-0.8.22-...
2
votes
0answers
34 views

Displaying sum of field in cluster symbology using QGIS?

Using QGIS, I have a point layer of wind turbines. One of the fields is MW (megawatts produced by the turbine). I want to display the turbines by clustering. But I to show the sum of MW in the ...
1
vote
1answer
83 views

Clustering spatial lines in R by direction

There are tens of ways to cluster spatial points in R but I couldn't find any for spatial lines. What I would like to get is the average trajectory directions that each of these cyclones (spatial ...
4
votes
1answer
62 views

Clustering only if name attribute is same using QGIS?

I have a point layer on a world map with several attributes. Each point marks the position of a berth at a terminal in a port in a certain country. When I zoom out, it's getting too crowed so I ...
0
votes
1answer
77 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 ...
1
vote
0answers
54 views

Change maxZoom level on Leaflet Marker Cluster Group?

Our leaflet web app allows users to switch between tile layers. The tile layers sometimes have different max zoom implemented by the tile provider or local config. We have another layer with ...
-1
votes
1answer
99 views

Running cluster and outlier analysis gives ERROR 999998?

I am attempting to run Cluster and Outlier Analysis on a Shapefile Feature Class. The geometry type is a line feature class. I am receiving the following error when attempting to use this tool: ...
1
vote
2answers
73 views

Problems with ST_ClusterDBSCAN cluster sizes

I want to cluster all villages (and towns, ...) around the world. So instead of having millions of them, I'd like to reduce them by combining villages that are close enough (like 10km or so) to each ...
4
votes
1answer
717 views

Adding python module to QGIS python interpreter on mac?

I'm on OS X El Capitan running QGIS version 2.18.2 which I installed via the Kyngchaos installers. I'm trying to install a plugin, which requires, among other things, that Pysal needs to be installed....
6
votes
1answer
369 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.
-2
votes
1answer
38 views

Cluster Analysis on spatial data on R? [closed]

I sampled a population of an insect in an area and got GPS points. Now I want to investigate if there are subpopulations within the pop using distance from points. I have a dataset with coordinates ...
2
votes
2answers
54 views

Applying ST_ClusterDBSCAN repeatedly until cluster sizes small enough

I am looking for a way to spatially clusters thousands of datapoints (potentially millions) based on distance, such that each cluster contains less than 5000 points. This is a similar question to ...
3
votes
1answer
865 views

How to Construct Spatio Temporal Clusters of Time Series Data in R

I have count data of one disease for various districts of a state of India on monthly basis. Is it possible to draw spatio temporal clusters in R? I have checked some R- packages for example ...
97
votes
7answers
43k views

Spatial clustering with PostGIS?

I'm looking for spatial clustering algorithm for using it within PostGIS-enabled database for point features. I'm going to write plpgsql function that takes distance between points within the same ...
0
votes
1answer
35 views

Style OpenLayers.Feature.Vector in OpenLayers.Strategy.Cluster()

I'm using the clastering feature in my project. I collect list of points like so: cluster_features.push(new OpenLayers.Feature.Vector( new OpenLayers.Geometry.Point(lon,lat), {heading:deg} )...
1
vote
1answer
136 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 ...
0
votes
0answers
17 views

Automating Cluster Assignment of Grid Squares?

I'm using MapInfo. I have a grid layer which has results assigned to each grid square. I'm wanting to automatically assign cluster references using a minesweeper style approach, i.e. where grid ...
1
vote
1answer
50 views

L.esri.Cluster.featureLayer does not call style function

Using the L.esri.Cluster.featureLayer plugin for Leaflet to cluster features from Esri does not call the style method despite the documentation stating that this is the way to style vector layers. ...
1
vote
1answer
187 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 ...
2
votes
0answers
21 views

Clustering raster based on area of specific number of pixels

I'm currently looking at overflows of rainwater in a region and I want to find all the puddles, which have a restricted size and a minimum number of pixels in them and create a vector layer where each ...
2
votes
1answer
132 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 ...
1
vote
0answers
41 views

QGIS > Concave Hull plugin > Shared Nearest Neighbor Clustering

I have been using the Concave Hull plugin in QGIS & the Shared Nearest Neighbor Clustering feature. I am having issues with this plugin, each time I choose the option of "Number of Neighbours" it ...
1
vote
0answers
531 views

Creating clusters of nearby points using QGIS? [closed]

I m trying to create clusters of nearby points (which would be the adresses of my customers around a store). Buffer is not an option cauz i need the zone to be limited by customers, so a polygone ...
1
vote
1answer
41 views

Sample method returns empty featureCollection (GEE)

I have some troubles with the sample method from Google Earth Engine. On some images, it returns an empty feature collection (0 element). Why this is happening and how do I deal with that ? It's ...
-1
votes
1answer
162 views

Clustering plots points into groups based on their elevation using QGIS?

I have a plots shapefile for a region (polygon)converted to centroid points. I have added the geometry column to it and also added elevation attribute to every point by sampling the plots vector file ...
6
votes
2answers
707 views

Increasing marker size based on number of points at same location in QGIS

I have a dataset that contains many points (representing specimens) with GPS locations taken at the same point. When I map these points as a vector layer, only the uppermost point shows - so, at one ...
1
vote
0answers
24 views

Leaflet.TimeDimension and Leaflet.Marker.Cluster

I am trying to combine L.MarkerClusterGroup with L.TimeDimension: basically, I would like to load a geoJSON and control the appearance and disappearance of points with L.TimeDimension, but in such a ...
1
vote
0answers
50 views

Simple clustering example

I'm trying to use postgis ST_withincluster function. But my knowledge over SQL seems a bit too fresh at the moment and I can't figure out by myself how I should proceed by reading posts like this one: ...
5
votes
1answer
1k views

Growing several concave hulls until they completely fill larger area without overlap using QGIS? [closed]

This is my problem: I have a very large point layer with polling station locations across one country; each point belongs to a specific constituency (900k points, 4k constituencies). I wish to use ...
2
votes
0answers
360 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, ...
0
votes
1answer
334 views

How to cluster markers using the “Geojson-dashboard” in Leaflet JavaScript

I know how to use Leaflet.markercluster, but for some reason I can't use with geojson-dashboard framework template for Leaflet (http://fulcrumapp.github.io/geojson-dashboard/). But I have a simple ...
1
vote
0answers
38 views

Reducing excessive segmentation from Linear Referencing? [closed]

Can anyone suggest a resource which discusses different approaches to cleaning up linearly references events in order to minimize the occurrence of small dynamic segments? I'm working with many ...
-1
votes
1answer
168 views

Establishing patterns, hotspots and clusters? [closed]

As a crime analyst you need to establish a few maps that would help police to do targeted patrols, I've given data of suburbs, roads, incidents, boundaries. How can I establish patterns, hotspots ...
1
vote
0answers
101 views

Creating clusters based on nearest distance attribute in ArcMap using ModelBuilder

I am attempting to create a tool via modelbuilder that creates clustering for a polygon feature class based on the distance field attribute (between one polygon to another) that I have created using ...
4
votes
1answer
1k views

How to disperse clusters of proportional markers or polygons?

I am mapping a set of points in ArcMap that are symbolized using proportional marker symbols based on a numeric field value. The scale of the map has lead to alot of the point markers overlapping. I ...
0
votes
0answers
53 views

Seeking Python implementation of contiguity constrained clustering?

I'm looking for an example of Python implementation of contiguity constrained clustering algorithm. The task I want to perform is to reduce the number of administrative zones by grouping them into as ...
3
votes
1answer
53 views

Get the probable right location from multiple points

I have a location collection tool which send me location data of our survey. Surveyors send multiple data of a single item. Such as they send numarous data for a school like the following image. From ...
2
votes
1answer
91 views

Natural Breaks Results Difference in Different GIS Analyst Tools

I calculated natural break clustering in each GIS software and Python Jenkspy library. The data is population of each city in Europe and this is the result below. Jenkspy library and QGIS shows ...
7
votes
1answer
9k views

Grouping points in QGIS?

I need to group 400 points in 10 groups with 40 points each. The goal is to get the 40 points geographicly together like this: Any idea how to do this with QGIS?
2
votes
1answer
379 views

Matching two point clouds without loss (nearest neighbor, but more complicated) [closed]

I have two point clouds, one with demographic and one with electoral data. Points in both clouds represent the same empirical entity (say, a village, or an urban neighbourhood), but are not in the ...
0
votes
1answer
223 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
131 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
1answer
95 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 ...