LANGUAGE 'c' IMMUTABLE STRICT;
-- Availability: 1.5.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
--- Note: removing immutable because it crashes Windows EDB 9.2x64 bit
--- because of some sort of shared memory corruption it triggers on error
CREATE OR REPLACE FUNCTION ST_AsText(text)
RETURNS text AS
$$ SELECT ST_AsText($1::geometry); $$
- LANGUAGE 'sql' STRICT COST 1;
+ LANGUAGE 'sql' IMMUTABLE STRICT;
-- Availability: 1.5.0
CREATE OR REPLACE FUNCTION ST_GeographyFromText(text)
-- Availability: 1.5.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
-- Deprecated 2.0.0
--- Note: removing immutable because it crashes Windows EDB 9.2x64 bit
--- because of some sort of shared memory corruption it triggers on error
CREATE OR REPLACE FUNCTION ST_AsKML(text)
RETURNS text AS
$$ SELECT _ST_AsKML(2, $1::geometry, 15, null); $$
- LANGUAGE 'sql' STRICT COST 1;
+ LANGUAGE 'sql' IMMUTABLE STRICT;
-- ST_AsKML(version, geography, precision, prefix)
-- Availability: 2.0.0 nprefix added
-- Availability: 1.5.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
-- Deprecated in 2.0.0
--- Note: removing immutable because it crashes Windows EDB 9.2x64 bit
--- because of some sort of shared memory corruption it triggers on error
CREATE OR REPLACE FUNCTION ST_AsGeoJson(text)
RETURNS text AS
$$ SELECT _ST_AsGeoJson(1, $1::geometry,15,0); $$
- LANGUAGE 'sql' STRICT COST 1;
+ LANGUAGE 'sql' IMMUTABLE STRICT;
-- ST_AsGeoJson(geography, precision, options) / version=1
-- Changed: 2.0.0 to use default args and named args
CREATE OR REPLACE FUNCTION ST_Distance(text, text)
RETURNS float8 AS
$$ SELECT ST_Distance($1::geometry, $2::geometry); $$
- LANGUAGE 'sql' IMMUTABLE STRICT COST 1;
+ LANGUAGE 'sql' IMMUTABLE STRICT;
-- Only expands the bounding box, the actual geometry will remain unchanged, use with care.
-- Availability: 1.5.0
LANGUAGE 'sql' IMMUTABLE;
-- Availability: 1.5.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
--- Note: removing immutable because it crashes Windows EDB 9.2x64 bit
--- because of some sort of shared memory corruption it triggers on error
CREATE OR REPLACE FUNCTION ST_DWithin(text, text, float8)
RETURNS boolean AS
$$ SELECT ST_DWithin($1::geometry, $2::geometry, $3); $$
- LANGUAGE 'sql' COST 1;
+ LANGUAGE 'sql' IMMUTABLE;
-- ---------- ---------- ---------- ---------- ---------- ---------- ----------
COST 100;
-- Availability: 1.5.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
--- Note: removing immutable because it crashes Windows EDB 9.2x64 bit
--- because of some sort of shared memory corruption it triggers on error
CREATE OR REPLACE FUNCTION ST_Area(text)
RETURNS float8 AS
$$ SELECT ST_Area($1::geometry); $$
- LANGUAGE 'sql' STRICT COST 1;
+ LANGUAGE 'sql' IMMUTABLE STRICT;
-- Availability: 1.5.0
CREATE OR REPLACE FUNCTION ST_Length(geog geography, use_spheroid boolean DEFAULT true)
COST 100;
-- Availability: 1.5.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
--- Note: removing immutable because it crashes Windows EDB 9.2x64 bit
--- because of some sort of shared memory corruption it triggers on error
CREATE OR REPLACE FUNCTION ST_Length(text)
RETURNS float8 AS
$$ SELECT ST_Length($1::geometry); $$
- LANGUAGE 'sql' STRICT COST 1;
+ LANGUAGE 'sql' IMMUTABLE STRICT;
-- Availability: 2.0.0
CREATE OR REPLACE FUNCTION ST_Project(geog geography, distance float8, azimuth float8)
CREATE OR REPLACE FUNCTION ST_Covers(text, text)
RETURNS boolean AS
$$ SELECT ST_Covers($1::geometry, $2::geometry); $$
- LANGUAGE 'sql';
+ LANGUAGE 'sql' IMMUTABLE ;
-- Only implemented for polygon-over-point
-- Availability: 1.5.0
CREATE OR REPLACE FUNCTION ST_CoveredBy(text, text)
RETURNS boolean AS
$$ SELECT ST_CoveredBy($1::geometry, $2::geometry); $$
- LANGUAGE 'sql' ;
+ LANGUAGE 'sql' IMMUTABLE ;
-- Availability: 2.1.0
CREATE OR REPLACE FUNCTION ST_Segmentize(geog geography, max_segment_length float8)
CREATE OR REPLACE FUNCTION ST_Intersects(text, text)
RETURNS boolean AS
$$ SELECT ST_Intersects($1::geometry, $2::geometry); $$
- LANGUAGE 'sql' ;
+ LANGUAGE 'sql' IMMUTABLE ;
-- Availability: 1.5.0
CREATE OR REPLACE FUNCTION _ST_BestSRID(geography, geography)
CREATE OR REPLACE FUNCTION ST_Intersection(text, text)
RETURNS geometry AS
$$ SELECT ST_Intersection($1::geometry, $2::geometry); $$
- LANGUAGE 'sql' IMMUTABLE STRICT COST 1;
+ LANGUAGE 'sql' IMMUTABLE STRICT;
-- Availability: 1.5.0
CREATE OR REPLACE FUNCTION ST_AsBinary(geography)
CREATE OR REPLACE FUNCTION ST_AsEWKT(text)
RETURNS text AS
$$ SELECT ST_AsEWKT($1::geometry); $$
- LANGUAGE 'sql' IMMUTABLE STRICT COST 1;
+ LANGUAGE 'sql' IMMUTABLE STRICT;
-- Availability: 2.0.0
CREATE OR REPLACE FUNCTION GeometryType(geography)