Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | 10x 10x 10x 10x 10x 10x 1x 10x 11x 1x 1x 3x 3x 3x 3x 3x 3x 3x 3x 3x |
import Logger from "../../../../Utils/LoggerByDefault";
import AltiRequest from "./AltiRequest";
/**
* @classdesc
* Classe de gestion des param. des requêtes de type PROFIL du service altimetrique.
*
* @constructor
* @alias Gp.Services.Alti.Request.AltiProfilRequest
* @param {Object} options - options
* @param {String} options.sampling - 3
*
* @private
*/
function AltiProfilRequest (options) {
Iif (!(this instanceof AltiProfilRequest)) {
throw new TypeError("AltiProfilRequest constructor cannot be called as a function.");
}
/**
* Nom de la classe (heritage)
*/
this.CLASSNAME = "AltiProfilRequest";
// appel du constructeur par heritage
AltiRequest.apply(this, arguments);
this.logger = Logger.getLogger();
this.logger.trace("[Constructeur AltiProfilRequest ()]");
/**
* Sampling
* Par defaut, 3
*/
this.sampling = this.options.sampling || 3; // test des options héritées !
}
/**
* @lends module:AltiProfilRequest#
*/
AltiProfilRequest.prototype = Object.create(AltiRequest.prototype, {
/**
* Setter/getter pour "sampling"
*/
sampling : {
/** getter */
get : function () {
return this._sampling;
},
/** setter */
set : function (value) {
this._sampling = value;
}
}
});
/**
* Constructeur (alias)
*/
AltiProfilRequest.prototype.constructor = AltiProfilRequest;
/**
* Tableau de clefs/valeurs pour param.
*
* @returns {Object[]}
*/
AltiProfilRequest.prototype.getData = function () {
// par glop..., appel de AltiRequest::getData () !
var map = [];
map.push({
k : "lon",
v : this.getLon()
});
map.push({
k : "lat",
v : this.getLat()
});
// map.push({k : "delimiter", v : this.delimiter}); // FIXME on retire le param "delimiter"
map.push({
k : "indent",
v : this.indent
});
map.push({
k : "crs",
v : this.crs
});
map.push({
k : "sampling",
v : this.sampling
});
map.push({
k : "format",
v : this.format
});
map.push({
k : "resource",
v : this.resource
});
return map;
};
export default AltiProfilRequest;
|