Skip to content

crankshaft

Archived CARTO spatial-analysis functions for clustering, segmentation, and spatial statistics.

crankshaft · Archived CARTO spatial-analysis functions for clustering, segmentation, and spatial statistics.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101871crankshaftcrankshaft0.9.0GISBSD-3-ClausePython
Relationships
Requiresplpython3u postgis

Usage

Sources:

crankshaft Archived CARTO spatial-analysis functions for clustering, segmentation, and spatial statistics.

Enablement

Install the files for the intended server, then create crankshaft in the target database:

CREATE EXTENSION crankshaft CASCADE;

The reviewed control or official workflow requires plpython3u, postgis. CASCADE only succeeds when those extension files are already installed on the server.

Core Workflow

The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.

SELECT cdb_crankshaft.cdb_crankshaft_version();

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
_cdb_random_seedsFUNCTIONCallable function from the reviewed install surface.
cdb_crankshaft.cdb_crankshaft_versionFUNCTIONCallable function from the reviewed install surface.
cdb_crankshaft.cdb_moran_localFUNCTIONCallable function from the reviewed install surface.
cdb_crankshaft.cdb_moran_local_rateFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • The extension fixes or creates schema objects under cdb_crankshaft; include them in privilege and backup review.
  • Catalog lifecycle is archived; test upgrades, dump/restore, and server compatibility before production use.

Table reader