writePolygon(rings, layout) {
    this.writeUint32(rings.length); // numRings
    for (let i = 0; i < rings.length; i++) {
      this.writeLineString(rings[i], layout); // as a LinearRing
    }
  }
@param {Array<Array<import('../coordinate.js').Coordinate>>} rings rings
@param {import("../geom/Geometry.js").GeometryLayout} layout layout