constructor(geometryName, extent, srsName) {
    super('BBOX');

    /**
     * @type {!string}
     */
    this.geometryName = geometryName;

    /**
     * @type {import("../../extent.js").Extent}
     */
    this.extent = extent;
    if (extent.length !== 4) {
      throw new Error(
        'Expected an extent with four values ([minX, minY, maxX, maxY])',
      );
    }

    /**
     * @type {string|undefined}
     */
    this.srsName = srsName;
  }
@param {!string} geometryName Geometry name to use.
@param {!import("../../extent.js").Extent} extent Extent.
@param {string} [srsName] SRS name. No srsName attribute will be set
on geometries when this is not provided.