1
0
Fork 0

added derived file

This commit is contained in:
Jan Steemann 2014-11-17 16:37:04 +01:00 committed by Frank Celler
parent a2a77f7c0d
commit 9fb20d5859
1 changed files with 19 additions and 0 deletions

View File

@ -1223,6 +1223,25 @@ SimpleQueryWithin.prototype._PRINT = function (context) {
context.output += text;
};
////////////////////////////////////////////////////////////////////////////////
/// @brief adds the distance attribute
////////////////////////////////////////////////////////////////////////////////
SimpleQueryWithin.prototype.distance = function (attribute) {
var clone;
clone = this.clone();
if (attribute) {
clone._distance = attribute;
}
else {
clone._distance = "distance";
}
return clone;
};
// -----------------------------------------------------------------------------
// --SECTION-- SIMPLE QUERY WITHINRECTANGLE
// -----------------------------------------------------------------------------