PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
LWGEOM* mvt_geom | ( | LWGEOM * | lwgeom, |
const GBOX * | gbox, | ||
uint32_t | extent, | ||
uint32_t | buffer, | ||
bool | clip_geom | ||
) |
Transform a geometry into vector tile coordinate space.
Makes best effort to keep validity. Might collapse geometry into lower dimension.
NOTE: modifies in place if possible (not currently possible for polygons)
Definition at line 1081 of file mvt.c.
References AFFINE::afac, buffer(), AFFINE::efac, AFFINE::ifac, LW_FALSE, lwgeom_affine(), lwgeom_get_basic_type(), lwgeom_grid_in_place(), lwgeom_is_empty(), lwgeom_remove_repeated_points_in_place(), lwgeom_simplify_in_place(), lwgeom_to_basic_type(), mvt_clip_and_validate_geos(), window::res, GBOX::xmax, GBOX::xmin, AFFINE::xoff, GBOX::ymax, GBOX::ymin, and AFFINE::yoff.
Referenced by ST_AsMVTGeom().