code: function encodeRings_(flatCoordinates, stride, offset, ends, textArray) {
    const linearRingCount = ends.length;
    for (let i = 0; i < linearRingCount; ++i) {
      // skip the "closing" point
      const end = ends[i] - stride;
      const text = this.encodeCoordinates_(flatCoordinates, stride, offset, end);
      if (i !== 0) {
        textArray.push('\'');
      }
      textArray.push(text);
      offset = ends[i];
    }
    return offset;
  }
docs: Helper to encode an {@link import("ol/geom/Polygon.js").default} geometry.
  @param {Array<number>} flatCoordinates Flat coordinates.
  @param {number} stride Stride.
  @param {number} offset Offset.
  @param {Array<number>} ends Ends.
  @param {Array<string>} textArray Text array.
  @return {number} The new offset.
  @private
  @hidden
  @this {FeatureHash}