Skip to content

Commit d2cf33c

Browse files
committed
fix 漏提交文件 review by caoxinke
1 parent 2df8947 commit d2cf33c

File tree

12 files changed

+1152
-0
lines changed

12 files changed

+1152
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/**
2+
* Class: SuperMap.ColorDictionary
3+
* 颜色对照表类。
4+
*
5+
* 颜色对照表中的键名为具体的高程值,键值表示该高程值要显示的颜色。
6+
* 对于栅格图层中高程值小于颜色对照表中高程最小值的点使用颜色对照表中高程最小值对应的颜色,
7+
* 对于栅格图层中高程值大于颜色对照表中高程最大值的点使用颜色对照表中高程最大值对应的颜色,
8+
* 对于栅格图层中高程值在颜色对照表中没有对应颜色的点,则查找颜色对照表中与当前高程值相邻的两个高程对应的颜色,
9+
* 然后通过渐变运算要显示的颜色。如果设置了颜色对照表的话,则颜色表设置无效。
10+
*/
11+
require('./ServerColor');
12+
SuperMap.ColorDictionary = SuperMap.Class({
13+
14+
/**
15+
* APIProperty: elevation
16+
* {Number} 高程值。
17+
*/
18+
elevation: null,
19+
20+
/**
21+
* APIProperty: color
22+
* {<SuperMap.ServerColor>} 服务端颜色类。
23+
*/
24+
color: null,
25+
26+
initialize: function (options) {
27+
options = options || {};
28+
SuperMap.Util.extend(this, options);
29+
30+
var me = this,
31+
c = me.color;
32+
if (c) {
33+
me.color = new SuperMap.ServerColor(c.red, c.green, c.blue);
34+
}
35+
},
36+
37+
/**
38+
* APIMethod: destroy
39+
* 释放资源,将引用资源的属性置空。
40+
*/
41+
destroy: function () {
42+
SuperMap.Util.reset(this);
43+
},
44+
45+
/**
46+
* Method: toServerJSONObject
47+
* 转换成对应的 JSON 格式对象。
48+
*/
49+
toServerJSONObject: function () {
50+
var dataObj = {};
51+
dataObj = SuperMap.Util.copyAttributes(dataObj, this);
52+
return dataObj;
53+
},
54+
55+
CLASS_NAME: "SuperMap.ColorDictionary"
56+
});
57+
58+
module.exports = function (options) {
59+
return new SuperMap.ColorDictionary(options);
60+
};

src/common/iServer/DatasetInfo.js

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
/**
2+
* Class: SuperMap.DatasetInfo
3+
* 数据集信息类。
4+
* 数据集一般为存储在一起的相关数据的集合;根据数据类型的不同,分为矢量数据集、栅格数据集(grid
5+
* dataset)和影像数据集(image dataset),以及为了处理特定问题而设计的数据集,如拓扑数据集,网络数据集等。
6+
*
7+
* 数据集是 GIS 数据组织的最小单位。其中矢量数据集是由同种类型空间要素组成的集合,
8+
* 所以也可以称为要素集。根据要素的空间特征的不同,矢量数据集又分为点数据集,
9+
* 线数据集,面数据集等,各矢量数据集是空间特征和性质相同的数据组织起来的集合。
10+
*
11+
* 目前版本支持的数据集主要有点数据集,线数据集,面数据集,文本数据集,复合数据集(CAD
12+
* 数据集)、网络数据集,栅格数据集(grid dataset)和影像数据集(image dataset)。
13+
*/
14+
SuperMap.DatasetInfo = SuperMap.Class({
15+
16+
/**
17+
* APIProperty: bounds
18+
* {<SuperMap.Bounds>} 数据集范围,该字段只读。
19+
*/
20+
bounds: null,
21+
22+
/**
23+
* APIProperty: dataSourceName
24+
* {String} 数据源名称,该字段只读。
25+
*/
26+
dataSourceName: null,
27+
28+
/**
29+
* APIProperty: description
30+
* {String} 数据集的描述信息。
31+
*/
32+
description: null,
33+
34+
/**
35+
* APIProperty: encodeType
36+
* {String} 数据集存储时的压缩编码方式,该字段只读。
37+
*/
38+
encodeType: null,
39+
40+
/**
41+
* APIProperty: isReadOnly
42+
* {Boolean} 数据集是否为只读。
43+
*/
44+
isReadOnly: null,
45+
46+
/**
47+
* APIProperty: name
48+
* {String} 数据集名称,该字段必须且只读。
49+
*/
50+
name: null,
51+
52+
/**
53+
* APIProperty: prjCoordSys
54+
* {<SuperMap.Projection>} 数据集的投影信息。
55+
*/
56+
prjCoordSys: null,
57+
58+
/**
59+
* APIProperty: tableName
60+
* {String} 表名,该字段只读。
61+
*/
62+
tableName: null,
63+
64+
/**
65+
* APIProperty: type
66+
* {String} 数据集类型,该字段必设。主要有点数据集,线数据集,面数据集,文本数据集,复合数据集(CAD
67+
* 数据集)、网络数据集,栅格数据集(grid dataset)和影像数据集(image dataset)。
68+
*/
69+
type: null,
70+
71+
/**
72+
* Constructor: SuperMap.DatasetInfo
73+
* 数据集信息类构造函数。
74+
*
75+
* Parameters:
76+
* options - {Object} 参数。
77+
*
78+
* Allowed options properties:
79+
* bounds - {<SuperMap.Bounds>} 数据集范围,该字段只读。
80+
* dataSourceName - {String} 数据源名称,该字段只读。
81+
* description - {String} 数据集的描述信息。
82+
* encodeType - {String} 数据集存储时的压缩编码方式,该字段只读。
83+
* isReadOnly - {Boolean} 数据集是否为只读。
84+
* name - {String} 数据集名称,该字段必须且只读。
85+
* prjCoordSys - {<SuperMap.Projection>} 数据集的投影信息。
86+
* tableName - {String} 表名,该字段只读。
87+
* type - {String} 数据集类型,该字段必设。主要有点数据集,线数据集,面数据集,文本数据集,复合数据集(CAD
88+
* 数据集)、网络数据集,栅格数据集(grid dataset)和影像数据集(image dataset)。
89+
*/
90+
initialize: function (options) {
91+
options = options || {};
92+
SuperMap.Util.extend(this, options);
93+
var b = this.bounds;
94+
if (b) {
95+
this.bounds = new SuperMap.Bounds(b.leftBottom.x, b.leftBottom.y, b.rightTop.x, b.rightTop.y);
96+
}
97+
},
98+
99+
/**
100+
* APIMethod: destroy
101+
* 释放资源,将引用资源的属性置空。
102+
*/
103+
destroy: function () {
104+
SuperMap.Util.reset(this);
105+
},
106+
107+
/**
108+
* Method: toServerJSONObject
109+
* 转换成对应的 JSON 格式对象。
110+
*/
111+
toServerJSONObject: function () {
112+
var dataObj = {};
113+
dataObj = SuperMap.Util.copyAttributes(dataObj, this);
114+
if (dataObj.bounds) {
115+
if (dataObj.bounds.toServerJSONObject) {
116+
dataObj.bounds = dataObj.bounds.toServerJSONObject();
117+
}
118+
}
119+
return dataObj;
120+
},
121+
122+
CLASS_NAME: "SuperMap.DatasetInfo"
123+
});
124+
module.exports = function (options) {
125+
return new SuperMap.DatasetInfo(options);
126+
};
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/**
2+
* Class: SuperMap.FieldStatisticsParameters
3+
* 字段统计信息查询参数类
4+
*/
5+
SuperMap.FieldStatisticsParameters = SuperMap.Class({
6+
/**
7+
* APIProperty: fieldName
8+
* {String}字段名
9+
*/
10+
fieldName: null,
11+
/**
12+
* APIProperty: statisticMode
13+
* {SuperMap.StatisticMode}字段统计方法类型
14+
*/
15+
statisticMode: null,
16+
17+
initialize: function (options) {
18+
options = options || {};
19+
SuperMap.Util.extend(this, options);
20+
},
21+
22+
/**
23+
* APIMethod: destroy
24+
* 释放资源,将引用资源的属性置空。
25+
*/
26+
destroy: function () {
27+
var me = this;
28+
me.fieldName = null;
29+
me.statisticMode = null;
30+
},
31+
32+
CLASS_NAME: "SuperMap.FieldStatisticsParameters"
33+
});
34+
35+
module.exports = function (options) {
36+
return new SuperMap.FieldStatisticsParameters(options);
37+
};

0 commit comments

Comments
 (0)