Revision 14527
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
3165 | 3165 |
|
3166 | 3166 |
|
3167 | 3167 |
-- |
3168 |
-- Name: geography(geocoord); Type: FUNCTION; Schema: util; Owner: - |
|
3169 |
-- |
|
3170 |
|
|
3171 |
CREATE FUNCTION geography(geocoord geocoord) RETURNS postgis.geography |
|
3172 |
LANGUAGE sql IMMUTABLE |
|
3173 |
AS $$ |
|
3174 |
SELECT util.geography(util.geometry(geocoord)) |
|
3175 |
$$; |
|
3176 |
|
|
3177 |
|
|
3178 |
-- |
|
3179 |
-- Name: FUNCTION geography(geocoord geocoord); Type: COMMENT; Schema: util; Owner: - |
|
3180 |
-- |
|
3181 |
|
|
3182 |
COMMENT ON FUNCTION geography(geocoord geocoord) IS ' |
|
3183 |
suppresses "Coordinate values were coerced into range [-180 -90, 180 90] for |
|
3184 |
GEOGRAPHY" NOTICEs |
|
3185 |
'; |
|
3186 |
|
|
3187 |
|
|
3188 |
-- |
|
3168 | 3189 |
-- Name: geography(postgis.geometry); Type: FUNCTION; Schema: util; Owner: - |
3169 | 3190 |
-- |
3170 | 3191 |
|
Also available in: Unified diff
schemas/util.sql: added geography(util.geocoord), which suppresses "Coordinate values were coerced into range [-180 -90, 180 90] for GEOGRAPHY" NOTICEs