'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _index = require('../../index.js');

var _index2 = _interopRequireDefault(_index);

var _spatial = require('../filter/spatial.js');

var _spatial2 = _interopRequireDefault(_spatial);

function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : { default: obj };
}

/**
 * @classdesc
 * Represents a `<Within>` operator to test whether a geometry-valued property
 * is within a given geometry.
 *
 * @constructor
 * @param {!string} geometryName Geometry name to use.
 * @param {!ol.geom.Geometry} geometry Geometry.
 * @param {string=} opt_srsName SRS name. No srsName attribute will be
 *    set on geometries when this is not provided.
 * @extends {ol.format.filter.Spatial}
 * @api
 */
var _ol_format_filter_Within_ = function (geometryName, geometry, opt_srsName) {

  _spatial2.default.call(this, 'Within', geometryName, geometry, opt_srsName);
};

_index2.default.inherits(_ol_format_filter_Within_, _spatial2.default);
exports.default = _ol_format_filter_Within_;
module.exports = exports['default'];