1-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2-- 3-- PostGIS - Spatial Types for PostgreSQL 4-- http://postgis.net 5-- 6-- Copyright (C) 2021 Sandro Santilli <strk@kbt.io> 7-- 8-- This is free software; you can redistribute and/or modify it under 9-- the terms of the GNU General Public Licence. See the COPYING file. 10-- 11-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 12 13-- { 14-- Override ST_Srid() for topogeometry objects 15-- 16-- }{ 17CREATE OR REPLACE FUNCTION topology.ST_Srid(tg topology.TopoGeometry) 18 RETURNS INT 19AS 20$$ 21 SELECT srid FROM topology.topology 22 WHERE id = id(tg); 23$$ 24LANGUAGE 'sql' STABLE STRICT; 25-- } 26 27