public static VectorGeometry encodeGeometry(Geometry geometry) {
    return encodeGeometry(geometry, 0);
  }
Encodes a JTS geometry according to
<a href="https://github.com/mapbox/vector-tile-spec/tree/master/2.1#43-geometry-encoding">Geometry Encoding
Specification</a>.

@param geometry the JTS geometry to encoded
@return the geometry type and command array for the encoded geometry
planetiler-core/src/main/java/com/onthegomap/planetiler/VectorTile.java