geography_valid_type(lwgeom->type);
/* Force the geometry to have valid geodetic coordinate range. */
- if ( lwgeom_force_geodetic(lwgeom) == LW_TRUE )
+ if ( ! lwgeom_nudge_geodetic(lwgeom) && lwgeom_force_geodetic(lwgeom) == LW_TRUE )
{
ereport(NOTICE, (
errmsg_internal("Coordinate values were coerced into range [-180 -90, 180 90] for GEOGRAPHY" ))
srid_is_latlong(fcinfo, lwgeom->srid);
/* Force the geometry to have valid geodetic coordinate range. */
- if ( lwgeom_force_geodetic(lwgeom) == LW_TRUE )
+ if ( ! lwgeom_nudge_geodetic(lwgeom) && lwgeom_force_geodetic(lwgeom) == LW_TRUE )
{
ereport(NOTICE, (
errmsg_internal("Coordinate values were coerced into range [-180 -90, 180 90] for GEOGRAPHY" ))
round(st_ymin(e.e)::numeric, 5), round(st_ymax(e.e)::numeric, 5) from e;
drop table t;
+-- #1292
+SELECT '#1292', ST_AsText(ST_SnapToGrid(ST_GeomFromText(
+ 'GEOMETRYCOLLECTION(POINT(180 90),POLYGON((140 50,150 50,180 50,140 50),(140 60,150 60,180 60,140 60)))'
+ , 4326), 0.00001)::geography);
+
-- #1320
SELECT '<#1320>';
CREATE TABLE A ( geom geometry(MultiPolygon, 4326),
ERROR: stats for "t.g" do not exist
#877.4|-10.15000|20.15000|-50.40000|30.40000
#877.5|-10.15000|20.15000|-50.40000|30.40000
+#1292|GEOMETRYCOLLECTION(POINT(180 90),POLYGON((140 50,150 50,180 50,140 50),(140 60,150 60,180 60,140 60)))
<#1320>
#1320.geog.1|MULTIPOLYGON|4326
#1320.geom.1|MULTIPOLYGON|4326
ERROR: AddToPROJ4SRSCache: could not parse proj4 string ''
#1038|
#1042|2
-NOTICE: Coordinate values were coerced into range [-180 -90, 180 90] for GEOGRAPHY
#1170|90
#1264|t
#1398a|POINT(-119.093153 45.632669)