geo-registry

st_difference

How PostGIS runs Difference: st_difference.

About this implementation
Engine PostGIS
Tool name st_difference
Interface sql
Implements Difference
Documentation Not stated
Effects modifies input: no, network: no
Notes Not stated
Status active

Parameters

Name Type Required Default Choices Note
geom1 geometry no Not stated Not stated Not stated
geom2 geometry no Not stated Not stated Not stated
gridsize double precision no '-1.0'::numeric Not stated Not stated

SQL overloads

  • st_difference(geom1 geometry, geom2 geometry, gridsize double precision DEFAULT '-1.0'::numeric) → geometry

How it maps to the operation

Operation parameter Parameter here Note
layer geom1 Not stated
mask geom2 Not stated

Differences from the operation

  • Per pair of geometries: union the mask first to subtract all of it.

Harvested by the postgis harvester from engine version 3.7.0. Names can change when an engine is harvested again.