Spatial Analyzer

About

From quick ESDA—mean/median centers, standard distance, and standard-deviation ellipses—to modeling with GWR, it stays visual and map-first with clear diagnostics (e.g., K-Means WSS elbow, DBSCAN tuning aids). 

It ships with sample data and writes reproducible QGIS layers/styles, so you can move from exploration to publication without leaving your project.

Clustering, spatial central tendency & dispersion, GWR, PCA, and t-SNE in one intuitive toolbox for QGIS.

Built as a custom QGIS plugin, it integrates seamlessly with the Processing toolbox, project CRS, symbology, and layer styling you already use.

It works side-by-side with your existing QGIS workflows—no context switching—so analysts can prototype, validate, and publish results in a single environment.

Features

Clustering

  • K-Means with WSS “elbow” chart.
  • Hierarchical clustering.
  • DBSCAN for density-based patterns & noise.

Spatial Central Tendency

  • Mean Center, Median Center, Central Feature.
  • Center trackers to visualize shifts over time.

Spatial Dispersion

  • Standard Distance summarizing spread.
  • Std. Deviation Ellipse for orientation.

Regression

  • Geographically Weighted Regression (GWR).

Dimension Reduction

  • PCA for interpretable axes.
  • t-SNE for non-linear structure.

Gravity Model

  • Generate gravity-style potential surfaces.

Requirements

  • QGIS 3.x (recent LTR recommended).
  • Python deps: PySAL, scikit-learn, openTSNE.
  • Sample data included in the plugin.

Installing the Urban Analyzer Plugin

  • From the top menu, click PluginsManage and Install Plugins...

  • In the search bar, enter "Spatial Analyzer", select the plugin from the results, then click Install Plugin and close the window.

Install 3rd Party Libraries

While the core features work without installing any third-party libraries, you must install the libraries listed above to use the plugin’s full functionality.

python -m pip install --upgrade pip 
 python -m pip install pysal -U
 python -m pip install scikit-learn -U
 python -m pip install openTSNE -U

Quick Starting Urban Analyzer

  • Open SpatialAnalyzer — Spatial Analysis Toolbox from the Processing toolbox.

  • Load your data layer(s) in QGIS (try the included “Sample Data”).
  • Pick a tool (e.g., K-Means or Std. Deviation Ellipse), set parameters, and run.
  • Review map outputs and diagnostics (e.g., WSS elbow for K-Means).

License & Credits

Released under GPL-3.0. See the repository for details and updates.