Skip to content

pg_tileless

Tools for packaging twkb in sqlite for tileless

pg_tileless · Tools for packaging twkb in sqlite for tileless

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
100507pg_tilelesspg_tileless0.1GISGPL-2.0C
Relationships
Requiresplpgsql postgis postgis_sfcgal

Usage

Sources:

pg_tileless is an abandoned prototype for packing PostGIS geometries into TWKB datasets and writing them into SQLite. It creates tileless and tmp schemas and depends on plpgsql, postgis, and postgis_sfcgal.

CREATE EXTENSION pg_tileless CASCADE;
SELECT tileless.pack_twkb_linestring(
  'public.road', 'geom', 'road_id', '',
  '/srv/export/roads.sqlite', 'roads'
);

The polygon and linestring packers construct dynamic SQL, create and drop working tables, simplify and subdivide geometries, and call tileless.TWKB_Write2SQLite(...) to write a server-local file. Arguments such as table, column, prefix, query, and output path are concatenated into SQL or passed to native file code; never expose these functions to untrusted callers.

The reviewed README contains no operational documentation, and the project is marked abandoned. Run only under a tightly restricted role on disposable data. Confirm filesystem permissions, path confinement, SQL-injection resistance, geometry validity, precision loss, cleanup after failure, SQLite consistency, and PostgreSQL/PostGIS/SFCGAL ABI compatibility before any use.

Table reader