PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
int lwgeom_nudge_geodetic | ( | LWGEOM * | geom | ) |
When features are snapped or sometimes they are just this way, they are very close to the geodetic bounds but slightly over.
Gently move coordinates of LWGEOM if they are close enough into geodetic range.
This routine nudges those points, and only those points, back over to the bounds. http://trac.osgeo.org/postgis/ticket/1292
Definition at line 3404 of file lwgeodetic.c.
References LWCOLLECTION::geoms, LINETYPE, LW_FALSE, LW_TRUE, lwerror(), lwgeom_is_empty(), lwgeom_nudge_geodetic(), lwtype_is_collection(), lwtype_name(), LWCOLLECTION::ngeoms, LWPOLY::nrings, POINTTYPE, POLYGONTYPE, ptarray_nudge_geodetic(), LWPOLY::rings, TRIANGLETYPE, LWGEOM::type, and ovdump::type.
Referenced by geography_from_geometry(), gserialized_geography_from_lwgeom(), and lwgeom_nudge_geodetic().