sql.rtree.rtree_trigger_update3 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geopackage-core Show documentation
Show all versions of geopackage-core Show documentation
Core functionality for GeoPackage implementations
CREATE TRIGGER "rtree___update3" AFTER UPDATE OF "" ON ""
WHEN OLD."" != NEW."" AND
(NEW."" NOTNULL AND NOT ST_IsEmpty(NEW.""))
BEGIN
DELETE FROM "rtree__" WHERE id = OLD."";
INSERT OR REPLACE INTO "rtree__" VALUES (
NEW."",
ST_MinX(NEW.""), ST_MaxX(NEW.""),
ST_MinY(NEW.""), ST_MaxY(NEW."")
);
END;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy