Skip to content

pg_solid

OpenCASCADE-backed 3D solid geometry and CAD/BIM operations.

pg_extensions · OpenCASCADE-backed 3D solid geometry and CAD/BIM operations.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102099pg_solidpg_extensions0.4.0GISMatroid-SAL-1.0Rust

PostgreSQL · 14, 15, 16, 17, 18

Usage

Sources:

pg_solid 0.4.0 provides solid geometry in pgsolid, including constructors, Boolean operations, measurements, transforms, spatial indexing and CAD/BIM import/export.

Core Workflow

CREATE EXTENSION pg_solid;
SELECT pgsolid.solid_volume(pgsolid.solid_box(100, 200, 300));
SELECT pgsolid.solid_is_valid(pgsolid.solid_sphere(10));

Operational Boundaries

The control does not require superuser-only installation, but object-creation privileges still apply. No preload is declared. OpenCASCADE 7.6+ native libraries are required; file/model imports must be restricted and resource use bounded. Constructors and measurement functions operate in the coordinates and units supplied by the caller. Validity checks and tolerance handling matter for imported or computed shapes. This is a separate solid-geometry implementation, not an assertion of PostGIS dependency or interchangeable geometry encoding. This is an unsupported proof of concept under Matroid Source Available License 1.0. APIs may change. Version 0.3.0 is the new upgrade baseline: earlier 0.2.0 installations require a rehearsed data migration/recreation, not ordinary ALTER EXTENSION UPDATE. Back up data and dependencies before following that destructive upstream path.

IFC Orientation in 0.4.0

Extension 0.4.0, in repository release 0.6.0, adds pgsolid.ifc_true_north(path) to read model true north and local-axis rotation. pgsolid.solid_georeference applies it for EPSG 4326/4978 when the file has no map conversion, fixing IFC2x3 models that previously treated local Y as north. This changes georeferenced results for affected models; validate derived data. The SQL upgrade path exists from 0.3.0 onward.

Table reader