Revision 14528
Added by Aaron Marcuse-Kubitza about 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
1649 | 1649 |
CREATE FUNCTION contained_within_approx(point geocoord, region postgis.geography) RETURNS boolean |
1650 | 1650 |
LANGUAGE sql IMMUTABLE |
1651 | 1651 |
AS $_$ |
1652 |
SELECT util.contained_within_approx(util.geometry($1), $2) |
|
1652 |
/* use util.geography() instead of implicit cast to suppress "Coordinate values |
|
1653 |
were coerced into range [-180 -90, 180 90] for GEOGRAPHY" NOTICEs */ |
|
1654 |
SELECT util.contained_within_approx(util.geography($1), $2) |
|
1653 | 1655 |
$_$; |
1654 | 1656 |
|
1655 | 1657 |
|
Also available in: Unified diff
fix: schemas/util.sql: contained_within_approx(point geocoord, region postgis.geography): use util.geography() instead of implicit cast to suppress "Coordinate values were coerced into range [-180 -90, 180 90] for GEOGRAPHY" NOTICEs