Skip to content

Commit ab647c8

Browse files
committed
Restructured directories to match STT
1 parent a722ee8 commit ab647c8

26 files changed

+6563
-0
lines changed

ows/sld/geometry.js

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
*
5+
* Software distributed under the License is distributed on an "AS IS" basis,
6+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
7+
* for the specific language governing rights and limitations under the License.
8+
*
9+
* The Initial Developer is Terravolv, Inc. Portions created by the Initial
10+
* Developer are Copyright (C) 2014-2015 the Initial Developer. All Rights Reserved.
11+
*/
12+
13+
/**
14+
* @date May 28, 2015
15+
* @public
16+
*/
17+
18+
var Geometry = function () {
19+
20+
// Privates
21+
var _x = null;
22+
var _y = null;
23+
var _z = null;
24+
var _t = null;
25+
var _propertyName = null;
26+
var _breaks = null;
27+
var _object = null;
28+
29+
this.getPropertyName = function() {
30+
return _propertyName;
31+
}
32+
33+
this.setPropertyName = function(pn) {
34+
_propertyName = pn;
35+
}
36+
37+
this.getT = function() {
38+
return _t;
39+
}
40+
41+
this.setT = function(t) {
42+
_t = t;
43+
}
44+
45+
this.getX = function() {
46+
return _x;
47+
}
48+
49+
this.setX = function(x) {
50+
_x = x;
51+
}
52+
53+
this.getY = function() {
54+
return _y;
55+
}
56+
57+
this.setY = function(y) {
58+
_y = y;
59+
}
60+
61+
this.getZ = function() {
62+
return _z;
63+
}
64+
65+
this.setZ = function(z) {
66+
_z = z;
67+
}
68+
69+
this.getBreaks = function () {
70+
return _breaks;
71+
}
72+
73+
this.setBreaks = function(b) {
74+
_breaks = b;
75+
}
76+
77+
this.getObject = function() {
78+
return _object;
79+
}
80+
81+
this.setObject = function(o) {
82+
_object = o;
83+
}
84+
85+
return this;
86+
87+
} // Geometry

ows/sld/graphic.js

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
*
5+
* Software distributed under the License is distributed on an "AS IS" basis,
6+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
7+
* for the specific language governing rights and limitations under the License.
8+
*
9+
* The Initial Developer is Terravolv, Inc. Portions created by the Initial
10+
* Developer are Copyright (C) 2014-2015 the Initial Developer. All Rights Reserved.
11+
*/
12+
13+
/**
14+
* @date May 28, 2015
15+
* @public
16+
*/
17+
18+
var Graphic = function () {
19+
20+
// Privates
21+
var _opacity = null;
22+
var _size = null;
23+
var _rotation = null;
24+
var _spacing = null;
25+
var _glyphs = [];
26+
27+
// Getters & Setters
28+
this.getGlyphs = function () {
29+
return _glyphs;
30+
}
31+
32+
this.setGlyphs = function (images) {
33+
_glyphs = images;
34+
}
35+
36+
this.getOpacity = function() {
37+
return _opacity;
38+
}
39+
40+
41+
this.setOpacity = function(opacity) {
42+
_opacity = opacity;
43+
}
44+
45+
46+
this.getRotation = function () {
47+
return _rotation;
48+
}
49+
50+
51+
this.setRotation = function (rotation) {
52+
_rotation = rotation;
53+
}
54+
55+
56+
this.getSize = function() {
57+
return _size;
58+
}
59+
60+
61+
this.setSize = function(size) {
62+
_size = size;
63+
}
64+
65+
66+
this.getSpacing = function() {
67+
return _spacing;
68+
}
69+
70+
71+
this.setSpacing = function(spacing)
72+
{
73+
_spacing = spacing;
74+
}
75+
76+
return this;
77+
78+
} // Graphic

ows/sld/pointsymbolizer.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
*
5+
* Software distributed under the License is distributed on an "AS IS" basis,
6+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
7+
* for the specific language governing rights and limitations under the License.
8+
*
9+
* The Initial Developer is Terravolv, Inc. Portions created by the Initial
10+
* Developer are Copyright (C) 2014-2015 the Initial Developer. All Rights Reserved.
11+
*/
12+
13+
/**
14+
* @date May 28, 2015
15+
* @public
16+
*/
17+
18+
var PointSymbolizer = function () {
19+
20+
// Privates
21+
var _graphic = null;
22+
23+
// Getters & Setters
24+
25+
this.getGraphic = function() {
26+
return _graphic;
27+
}
28+
29+
this.setGraphic = function(graphic) {
30+
_graphic = graphic;
31+
}
32+
33+
return this;
34+
35+
};
36+
37+
// Extends Symbolizer
38+
PointSymbolizer.prototype = Object.create(Symbolizer.prototype);

ows/sld/scalarparameter.js

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
*
5+
* Software distributed under the License is distributed on an "AS IS" basis,
6+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
7+
* for the specific language governing rights and limitations under the License.
8+
*
9+
* The Initial Developer is Terravolv, Inc. Portions created by the Initial
10+
* Developer are Copyright (C) 2014-2015 the Initial Developer. All Rights Reserved.
11+
*/
12+
13+
/**
14+
* @date May 28, 2015
15+
* @public
16+
*/
17+
18+
var ScalarParamter = function() {
19+
20+
// Privates
21+
var _propertyName = null;
22+
var _constantValue = null;
23+
var _mappingFunction = null;
24+
var _constant = true;
25+
26+
// Getters and Setters
27+
this.isConstant = function() {
28+
return _constant;
29+
}
30+
31+
this.setConstant = function(c) {
32+
_constant = c;
33+
}
34+
35+
this.getConstantValue = function() {
36+
return _constantValue;
37+
}
38+
39+
this.setConstantValue = function(cv) {
40+
_constantValue = cv;
41+
_constant = false;
42+
}
43+
44+
this.getMappedValue = function() {
45+
return this.getConstantValue();
46+
}
47+
48+
this.getMappingFunction = function() {
49+
return _mappingFunction;
50+
}
51+
52+
this.setMappingFunction = function (mf) {
53+
_mappingFunction = mf;
54+
_constant = false;
55+
}
56+
57+
this.getPropertyName = function () {
58+
return _propertyName;
59+
}
60+
61+
this.setPropertyName = function(pn) {
62+
_propertyName = pn;
63+
_constant = false;
64+
}
65+
66+
return this;
67+
68+
} // ScalarParameter

ows/sld/symbolizer.js

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
*
5+
* Software distributed under the License is distributed on an "AS IS" basis,
6+
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
7+
* for the specific language governing rights and limitations under the License.
8+
*
9+
* The Initial Developer is Terravolv, Inc. Portions created by the Initial
10+
* Developer are Copyright (C) 2014-2015 the Initial Developer. All Rights Reserved.
11+
*/
12+
13+
/**
14+
* @date May 28, 2015
15+
* @public
16+
*/
17+
18+
var Symbolizer = function() {
19+
20+
// Private
21+
var _geometry = null;
22+
var _name = null;
23+
var _enabled = false;
24+
25+
// Constructor
26+
var __construct = function(me) {
27+
geometry = new Geometry();
28+
}()
29+
30+
31+
this.getGeometry = function() {
32+
return _geometry;
33+
}
34+
35+
this.setGeometry = function (g) {
36+
_geometry = g;
37+
}
38+
39+
this.setenabled = function(e) {
40+
_enabled = e;
41+
}
42+
43+
this.getenabled = function() {
44+
return _enabled;
45+
}
46+
47+
this.setname = function(n) {
48+
_name = n;
49+
}
50+
51+
this.getname = function() {
52+
return _name;
53+
}
54+
55+
return this;
56+
57+
};
58+
59+

0 commit comments

Comments
 (0)