postgis_letters
convert text letters into PostGIS geometries using packaged vector fonts
postgis_letters · convert text letters into PostGIS geometries using packaged vector fonts
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100539 | postgis_letters | postgis_letters | 0.0.5 | GIS | MIT | SQL |
PostgreSQL · 10, 11, 12, 13, 14, 15, 16, 17, 18
| Relationships | |
|---|---|
| Requires | postgis |
Usage
Sources:
postgis_letters 0.0.5 is a pure-SQL PostGIS add-on that turns text into multipolygon glyph geometry. Installation creates a font_set table and loads the bundled Kankin vector font.
Render text as geometry
The optional SRID, text height, and start position arguments place and scale the result. Supply sizes and positions in the coordinate units of the target geometry.
Caveats
- Assigning an SRID labels the output coordinates; it does not project the glyphs. Transform a suitable planar result when geographic or projected accuracy matters.
- Characters absent from the selected font produce no glyph. Validate the supported character set before storing results.
- Complex text creates large multipolygon values and can be expensive to store, render, index, or intersect.
- The SQL function refers to font_set without schema qualification. Install in a controlled schema and use a controlled search path to avoid resolving an unintended table.
- Extension dumps preserve only font_set rows whose packaged_font flag is false; bundled rows are replaced by install or upgrade scripts. Back up custom fonts and set the flag deliberately.
- The README targets PostgreSQL 9.1 and PostGIS 2.0 or later, but upstream publishes no current compatibility matrix or automated tests.