From d36434e3b29fb4b057c09da70f76e6de813d2354 Mon Sep 17 00:00:00 2001 From: Peter Johnson <738069+missinglink@users.noreply.github.com> Date: Wed, 12 Nov 2025 15:08:40 +0100 Subject: [PATCH] feat(spatialite): enable TinyPoint --- module/spatialite/InitSpatialOptions.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/module/spatialite/InitSpatialOptions.js b/module/spatialite/InitSpatialOptions.js index 00b655e..fefe5b0 100644 --- a/module/spatialite/InitSpatialOptions.js +++ b/module/spatialite/InitSpatialOptions.js @@ -10,16 +10,15 @@ class InitSpatialOptions extends Sqlite { this.error('SetDecimalPrecision', e) } - // disabled: it's convenient to be able to still use GeometryType() on 4.3.0a // Reduce the number of bytes required to represent a POINT geometry // note: this is a libspatialite-5.0.0 feature, databases generated with this setting // may not be read correctly by older versions of spatialite. // see: https://www.gaia-gis.it/fossil/libspatialite/wiki?name=BLOB-TinyPoint - // try { - // db.prepare(`SELECT EnableTinyPoint()`).get() - // } catch (e) { - // this.error('EnableTinyPoint', e) - // } + try { + db.prepare(`SELECT EnableTinyPoint()`).get() + } catch (e) { + this.error('EnableTinyPoint', e) + } } }