- ToPoint function uses ST_Centroid for polygons with less than 5 nodes.
- Package is now published to
@mapbox/postgis-vt-util
- New function
Sievewhich filters inner and outer rings from a multipolygon based on a minimum area threshold. - Z function converted to SQL from PL/PGSQL.
- ZRes function converted to SQL from PL/PGSQL and overloaded to accept both floats and integers.
This version brings lots of code cleanup and reorganization, with many backwards-incompatible changes.
lib.sqlhas been renamed to the more specificpostgis-vt-util.sql- Underscores have been removed from function names, following PostGIS'
convention
clean_int->CleanIntclean_numeric->CleanNumerictile_bbox->TileBBoxmerc_buffer->MercBuffermerc_dwithin->MercDWithinmerc_length->MercLength- We've also moved to CamelCase for all other functions, but PostgreSQL is not case-sensitive in this regard so it's purely stylistic.
LabelGridno longer takes a pixel size parameter. You should now pre- multiply this into the grid size before calling the function.TileBBoxnow takes an optional SRID parameter to reproject the output.- Several new functions have been added. See the README for descriptions.
BoundsLargestPartMakeArcOrientedEnvelopeSmartShrink
- New function:
tile_bbox
- New function:
clean_numeric
- Initial release with 9 functions:
clean_intlabelgridlinelabelmerc_buffermerc_dwithinmerc_lengthtopointzzres