Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions module/spatialite/InitSpatialOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}

Expand Down