-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- -- PostGIS - Spatial Types for PostgreSQL -- http://postgis.net -- -- Copyright (C) 2021-2022 Sandro Santilli -- -- This is free software; you can redistribute and/or modify it under -- the terms of the GNU General Public Licence. See the COPYING file. -- -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- { -- Override ST_Srid() for topogeometry objects -- -- Availability: 3.2.0 -- -- }{ CREATE OR REPLACE FUNCTION topology.ST_Srid(tg topology.TopoGeometry) RETURNS INT AS $$ SELECT srid FROM topology.topology WHERE id = topology_id(tg); $$ LANGUAGE 'sql' VOLATILE STRICT; -- }