urbanopt-geojson 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/docs/package-lock.json +15 -15
- data/docs/package.json +3 -1
- data/lib/measures/.rubocop.yml +1 -1
- data/lib/measures/urban_geometry_creation/measure.rb +2 -0
- data/lib/measures/urban_geometry_creation/measure.xml +14 -19
- data/lib/measures/urban_geometry_creation_zoning/measure.rb +2 -0
- data/lib/measures/urban_geometry_creation_zoning/measure.xml +13 -18
- data/lib/urbanopt/geojson/feature.rb +32 -1
- data/lib/urbanopt/geojson/geo_file.rb +0 -1
- data/lib/urbanopt/geojson/helper.rb +9 -1
- data/lib/urbanopt/geojson/schema/building_properties.json +6 -0
- data/lib/urbanopt/geojson/schema/electrical_connector_properties.json +8 -8
- data/lib/urbanopt/geojson/schema/electrical_junction_properties.json +4 -5
- data/lib/urbanopt/geojson/schema/thermal_connector_properties.json +1 -1
- data/lib/urbanopt/geojson/schema/thermal_junction_properties.json +1 -1
- data/lib/urbanopt/geojson/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80cfe0ae8967e2b541207fa35a636db0ed735ca897220bca8b3c7525c635ccae
|
4
|
+
data.tar.gz: 151a2efe67159078c82cc8cdf6edcaec39e777597c11aeb09f678c408b458370
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ee7f22be5bba1aa611dcface714342ec167bb54ad4670fb6d162bbf9da24c25026f033f68dd2641dd6651a3af93dbe736b36a6df84e46f3632c14ffe040691d
|
7
|
+
data.tar.gz: 1670592b66f9dc9d23bd7cfb09fbcf223712cf012cb0273ed619c4b8d1e65cc30a2046efaa6edf939bfeaf897fef8665b23300081e86ae3b87b69722ae17bd32
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# URBANopt GeoJSON Gem
|
2
2
|
|
3
|
+
## Version 0.3.1
|
4
|
+
Date Range 06/05/20 - 08/07/20
|
5
|
+
|
6
|
+
Accepted Pull Requests: 9
|
7
|
+
- Fixed [#77]( https://github.com/urbanopt/urbanopt-geojson-gem/pull/77 ), Bump acorn from 6.1.1 to 6.4.1 in /docs
|
8
|
+
- Fixed [#92]( https://github.com/urbanopt/urbanopt-geojson-gem/pull/92 ), Adds scaling for building footprint using building area
|
9
|
+
- Fixed [#98]( https://github.com/urbanopt/urbanopt-geojson-gem/pull/98 ), Add method to determine centroid for features
|
10
|
+
- Fixed [#99]( https://github.com/urbanopt/urbanopt-geojson-gem/pull/99 ), Adds test to check footprint area
|
11
|
+
- Fixed [#100]( https://github.com/urbanopt/urbanopt-geojson-gem/pull/100 ), Bump lodash from 4.17.15 to 4.17.19 in /docs
|
12
|
+
- Fixed [#102]( https://github.com/urbanopt/urbanopt-geojson-gem/pull/102 ), make connector-type optional on electrical junction
|
13
|
+
- Fixed [#103]( https://github.com/urbanopt/urbanopt-geojson-gem/pull/103 ), Bump elliptic from 6.4.1 to 6.5.3 in /docs
|
14
|
+
- Fixed [#104]( https://github.com/urbanopt/urbanopt-geojson-gem/pull/104 ), bump minimist and dot-prop versions
|
15
|
+
- Fixed [#108]( https://github.com/urbanopt/urbanopt-geojson-gem/pull/108 ), Schema errors (issues 105, 106, and 107)
|
16
|
+
|
3
17
|
## Version 0.3.0
|
4
18
|
|
5
19
|
Date Range 3/25/20 - 06/04/20
|
data/docs/package-lock.json
CHANGED
@@ -1180,9 +1180,9 @@
|
|
1180
1180
|
}
|
1181
1181
|
},
|
1182
1182
|
"acorn": {
|
1183
|
-
"version": "6.
|
1184
|
-
"resolved": "https://registry.npmjs.org/acorn/-/acorn-6.
|
1185
|
-
"integrity": "sha512-
|
1183
|
+
"version": "6.4.1",
|
1184
|
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.1.tgz",
|
1185
|
+
"integrity": "sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA=="
|
1186
1186
|
},
|
1187
1187
|
"acorn-dynamic-import": {
|
1188
1188
|
"version": "4.0.0",
|
@@ -3513,9 +3513,9 @@
|
|
3513
3513
|
"integrity": "sha512-p1pgKOSSgcROCRiZoJ5H5wFmhqdA0L3yLL9mlfcmdA4V60IDCrsvhNqN8rLPe9e3B772Gm02kBkL1GM/g2lENg=="
|
3514
3514
|
},
|
3515
3515
|
"elliptic": {
|
3516
|
-
"version": "6.
|
3517
|
-
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.
|
3518
|
-
"integrity": "sha512-
|
3516
|
+
"version": "6.5.3",
|
3517
|
+
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz",
|
3518
|
+
"integrity": "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==",
|
3519
3519
|
"requires": {
|
3520
3520
|
"bn.js": "^4.4.0",
|
3521
3521
|
"brorand": "^1.0.1",
|
@@ -5733,9 +5733,9 @@
|
|
5733
5733
|
"integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA=="
|
5734
5734
|
},
|
5735
5735
|
"json-formatter-js": {
|
5736
|
-
"version": "2.
|
5737
|
-
"resolved": "https://registry.npmjs.org/json-formatter-js/-/json-formatter-js-2.
|
5738
|
-
"integrity": "
|
5736
|
+
"version": "2.3.4",
|
5737
|
+
"resolved": "https://registry.npmjs.org/json-formatter-js/-/json-formatter-js-2.3.4.tgz",
|
5738
|
+
"integrity": "sha512-gmAzYRtPRmYzeAT4T7+t3NhTF89JOAIioCVDddl9YDb3ls3kWcskirafw/MZGJaRhEU6fRimGJHl7CC7gaAI2Q=="
|
5739
5739
|
},
|
5740
5740
|
"json-parse-better-errors": {
|
5741
5741
|
"version": "1.0.2",
|
@@ -6050,9 +6050,9 @@
|
|
6050
6050
|
}
|
6051
6051
|
},
|
6052
6052
|
"lodash": {
|
6053
|
-
"version": "4.17.
|
6054
|
-
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.
|
6055
|
-
"integrity": "sha512-
|
6053
|
+
"version": "4.17.19",
|
6054
|
+
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz",
|
6055
|
+
"integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ=="
|
6056
6056
|
},
|
6057
6057
|
"lodash._reinterpolate": {
|
6058
6058
|
"version": "3.0.0",
|
@@ -9361,9 +9361,9 @@
|
|
9361
9361
|
"integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc="
|
9362
9362
|
},
|
9363
9363
|
"replace-ext": {
|
9364
|
-
"version": "1.0.
|
9365
|
-
"resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.
|
9366
|
-
"integrity": "
|
9364
|
+
"version": "1.0.1",
|
9365
|
+
"resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.1.tgz",
|
9366
|
+
"integrity": "sha512-yD5BHCe7quCgBph4rMQ+0KkIRKwWCrHDOX1p1Gp6HwjPM5kVoCdKGNhN7ydqqsX6lJEnQDKZ/tFMiEdQ1dvPEw=="
|
9367
9367
|
},
|
9368
9368
|
"request": {
|
9369
9369
|
"version": "2.88.0",
|
data/docs/package.json
CHANGED
@@ -18,10 +18,12 @@
|
|
18
18
|
},
|
19
19
|
"devDependencies": {
|
20
20
|
"braces": ">=2.3.1",
|
21
|
+
"dot-prop": ">=5.1.1",
|
21
22
|
"gh-pages": "^2.0.1",
|
22
23
|
"js-yaml": ">=3.13.1",
|
23
|
-
"lodash": ">=4.17.
|
24
|
+
"lodash": ">=4.17.19",
|
24
25
|
"lodash.template": ">=4.5.0",
|
26
|
+
"minimist": ">=1.2.3",
|
25
27
|
"mixin-deep": ">=1.3.2",
|
26
28
|
"serialize-javascript": ">=2.1.1",
|
27
29
|
"set-value": ">=2.0.1"
|
data/lib/measures/.rubocop.yml
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
+
<?xml version="1.0"?>
|
1
2
|
<measure>
|
2
3
|
<schema_version>3.0</schema_version>
|
3
4
|
<name>urban_geometry_creation</name>
|
4
5
|
<uid>5ab85d6b-c9af-4361-8ab9-613ee99a5666</uid>
|
5
|
-
<version_id>
|
6
|
-
<version_modified>
|
6
|
+
<version_id>e32672b2-91b1-4b62-9770-7712cab86004</version_id>
|
7
|
+
<version_modified>20200807T210717Z</version_modified>
|
7
8
|
<xml_checksum>D254E772</xml_checksum>
|
8
9
|
<class_name>UrbanGeometryCreation</class_name>
|
9
10
|
<display_name>UrbanGeometryCreation</display_name>
|
@@ -46,8 +47,8 @@
|
|
46
47
|
</choices>
|
47
48
|
</argument>
|
48
49
|
</arguments>
|
49
|
-
<outputs/>
|
50
|
-
<provenances/>
|
50
|
+
<outputs />
|
51
|
+
<provenances />
|
51
52
|
<tags>
|
52
53
|
<tag>Envelope.Form</tag>
|
53
54
|
</tags>
|
@@ -102,17 +103,23 @@
|
|
102
103
|
<usage_type>test</usage_type>
|
103
104
|
<checksum>40290298</checksum>
|
104
105
|
</file>
|
106
|
+
<file>
|
107
|
+
<filename>README.md</filename>
|
108
|
+
<filetype>md</filetype>
|
109
|
+
<usage_type>readme</usage_type>
|
110
|
+
<checksum>A09F345D</checksum>
|
111
|
+
</file>
|
105
112
|
<file>
|
106
113
|
<filename>shadowed_tests.rb</filename>
|
107
114
|
<filetype>rb</filetype>
|
108
115
|
<usage_type>test</usage_type>
|
109
|
-
<checksum>
|
116
|
+
<checksum>4E51A05C</checksum>
|
110
117
|
</file>
|
111
118
|
<file>
|
112
119
|
<filename>urban_geometry_creation_test.rb</filename>
|
113
120
|
<filetype>rb</filetype>
|
114
121
|
<usage_type>test</usage_type>
|
115
|
-
<checksum>
|
122
|
+
<checksum>DDAD6BFA</checksum>
|
116
123
|
</file>
|
117
124
|
<file>
|
118
125
|
<version>
|
@@ -123,19 +130,7 @@
|
|
123
130
|
<filename>measure.rb</filename>
|
124
131
|
<filetype>rb</filetype>
|
125
132
|
<usage_type>script</usage_type>
|
126
|
-
<checksum>
|
127
|
-
</file>
|
128
|
-
<file>
|
129
|
-
<filename>out.txt</filename>
|
130
|
-
<filetype>txt</filetype>
|
131
|
-
<usage_type>test</usage_type>
|
132
|
-
<checksum>C5B18B73</checksum>
|
133
|
-
</file>
|
134
|
-
<file>
|
135
|
-
<filename>README.md</filename>
|
136
|
-
<filetype>md</filetype>
|
137
|
-
<usage_type>readme</usage_type>
|
138
|
-
<checksum>A09F345D</checksum>
|
133
|
+
<checksum>2F8C09F7</checksum>
|
139
134
|
</file>
|
140
135
|
</files>
|
141
136
|
</measure>
|
@@ -1,9 +1,10 @@
|
|
1
|
+
<?xml version="1.0"?>
|
1
2
|
<measure>
|
2
3
|
<schema_version>3.0</schema_version>
|
3
4
|
<name>urban_geometry_creation_zoning</name>
|
4
5
|
<uid>96ea1317-76ac-4670-b51d-71ee3f4fdd65</uid>
|
5
|
-
<version_id>
|
6
|
-
<version_modified>
|
6
|
+
<version_id>884d6eb0-6517-40dc-96ca-ac4db7c2ad7d</version_id>
|
7
|
+
<version_modified>20200807T210718Z</version_modified>
|
7
8
|
<xml_checksum>D254E772</xml_checksum>
|
8
9
|
<class_name>UrbanGeometryCreationZoning</class_name>
|
9
10
|
<display_name>UrbanGeometryCreationZoning</display_name>
|
@@ -46,8 +47,8 @@
|
|
46
47
|
</choices>
|
47
48
|
</argument>
|
48
49
|
</arguments>
|
49
|
-
<outputs/>
|
50
|
-
<provenances/>
|
50
|
+
<outputs />
|
51
|
+
<provenances />
|
51
52
|
<tags>
|
52
53
|
<tag>Envelope.Form</tag>
|
53
54
|
</tags>
|
@@ -102,6 +103,12 @@
|
|
102
103
|
<usage_type>license</usage_type>
|
103
104
|
<checksum>EA283B74</checksum>
|
104
105
|
</file>
|
106
|
+
<file>
|
107
|
+
<filename>README.md</filename>
|
108
|
+
<filetype>md</filetype>
|
109
|
+
<usage_type>readme</usage_type>
|
110
|
+
<checksum>0458EE16</checksum>
|
111
|
+
</file>
|
105
112
|
<file>
|
106
113
|
<version>
|
107
114
|
<software_program>OpenStudio</software_program>
|
@@ -111,25 +118,13 @@
|
|
111
118
|
<filename>measure.rb</filename>
|
112
119
|
<filetype>rb</filetype>
|
113
120
|
<usage_type>script</usage_type>
|
114
|
-
<checksum>
|
115
|
-
</file>
|
116
|
-
<file>
|
117
|
-
<filename>out.txt</filename>
|
118
|
-
<filetype>txt</filetype>
|
119
|
-
<usage_type>test</usage_type>
|
120
|
-
<checksum>7FAF05F3</checksum>
|
121
|
+
<checksum>2505C43D</checksum>
|
121
122
|
</file>
|
122
123
|
<file>
|
123
124
|
<filename>urban_geometry_creation_zoning_test.rb</filename>
|
124
125
|
<filetype>rb</filetype>
|
125
126
|
<usage_type>test</usage_type>
|
126
|
-
<checksum>
|
127
|
-
</file>
|
128
|
-
<file>
|
129
|
-
<filename>README.md</filename>
|
130
|
-
<filetype>md</filetype>
|
131
|
-
<usage_type>readme</usage_type>
|
132
|
-
<checksum>0458EE16</checksum>
|
127
|
+
<checksum>986CB63E</checksum>
|
133
128
|
</file>
|
134
129
|
</files>
|
135
130
|
</measure>
|
@@ -47,7 +47,6 @@ module URBANopt
|
|
47
47
|
# rubocop:disable Style/MethodMissing
|
48
48
|
def method_missing(name, *args, &blk)
|
49
49
|
# rubocop:enable Style/MethodMissing
|
50
|
-
# rubocop:disable Style/GuardClause
|
51
50
|
if @feature_json[:properties].keys.map(&:to_sym).include? name.to_sym
|
52
51
|
# rubocop:enable Style/GuardClause
|
53
52
|
return @feature_json[:properties][name.to_sym]
|
@@ -168,6 +167,38 @@ module URBANopt
|
|
168
167
|
return OpenStudio::PointLatLon.new(min_lat, min_lon, 0)
|
169
168
|
end
|
170
169
|
|
170
|
+
##
|
171
|
+
# Used to determine the centroid for the feature's coordinates.
|
172
|
+
#
|
173
|
+
# [Parameters]
|
174
|
+
# * +vertices+ - The first set polygon vertices in the array of feature coordinates.
|
175
|
+
def find_feature_center(vertices)
|
176
|
+
number_of_locations = vertices.length
|
177
|
+
|
178
|
+
return vertices.first if number_of_locations == 1
|
179
|
+
|
180
|
+
x = y = z = 0.0
|
181
|
+
vertices.each do |station|
|
182
|
+
latitude = station[0] * Math::PI / 180
|
183
|
+
longitude = station[1] * Math::PI / 180
|
184
|
+
|
185
|
+
x += Math.cos(latitude) * Math.cos(longitude)
|
186
|
+
y += Math.cos(latitude) * Math.sin(longitude)
|
187
|
+
z += Math.sin(latitude)
|
188
|
+
end
|
189
|
+
|
190
|
+
x /= number_of_locations
|
191
|
+
y /= number_of_locations
|
192
|
+
z /= number_of_locations
|
193
|
+
|
194
|
+
central_longitude = Math.atan2(y, x)
|
195
|
+
central_square_root = Math.sqrt(x * x + y * y)
|
196
|
+
central_latitude = Math.atan2(z, central_square_root)
|
197
|
+
|
198
|
+
[central_latitude * 180 / Math::PI,
|
199
|
+
central_longitude * 180 / Math::PI]
|
200
|
+
end
|
201
|
+
|
171
202
|
private
|
172
203
|
|
173
204
|
##
|
@@ -161,7 +161,6 @@ module URBANopt
|
|
161
161
|
if f[:properties] && f[:properties][:id] == feature_id
|
162
162
|
# merge site origin properties
|
163
163
|
f = merge_site_properties(f)
|
164
|
-
# rubocop:disable Style/GuardClause
|
165
164
|
if f[:properties][:type] == 'Building'
|
166
165
|
# rubocop:enable Style/GuardClause
|
167
166
|
return URBANopt::GeoJSON::Building.new(f)
|
@@ -154,7 +154,7 @@ module URBANopt
|
|
154
154
|
stories.each_index do |i|
|
155
155
|
space_type = nil
|
156
156
|
space = stories[i].spaces.first
|
157
|
-
if space
|
157
|
+
if space&.spaceType&.is_initialized
|
158
158
|
space_type = space.spaceType.get
|
159
159
|
else
|
160
160
|
space_type = OpenStudio::Model::SpaceType.new(model)
|
@@ -243,6 +243,7 @@ module URBANopt
|
|
243
243
|
if number_of_stories_above_ground.nil?
|
244
244
|
number_of_stories_above_ground = number_of_stories
|
245
245
|
number_of_stories_below_ground = 0
|
246
|
+
|
246
247
|
else
|
247
248
|
number_of_stories_below_ground = number_of_stories - number_of_stories_above_ground
|
248
249
|
end
|
@@ -251,6 +252,13 @@ module URBANopt
|
|
251
252
|
if number_of_stories_above_ground && number_of_stories_above_ground > 0 && maximum_roof_height
|
252
253
|
floor_to_floor_height = maximum_roof_height / number_of_stories_above_ground
|
253
254
|
end
|
255
|
+
|
256
|
+
# check that feature has a # stories
|
257
|
+
if number_of_stories_above_ground.nil?
|
258
|
+
runner.registerWarning("[geojson process_other_buildings] Unable to include feature #{other_building[:properties][:id]} in shading calculations: no 'number of stories' data")
|
259
|
+
end
|
260
|
+
next if number_of_stories_above_ground.nil?
|
261
|
+
|
254
262
|
other_height = number_of_stories_above_ground * floor_to_floor_height
|
255
263
|
# find the polygon of the other_building by passing it to the get_multi_polygons method
|
256
264
|
other_building_points = building.other_points(other_building, other_height, origin_lat_lon, runner, zoning)
|
@@ -296,6 +296,9 @@
|
|
296
296
|
"properties": {
|
297
297
|
"building_type": {
|
298
298
|
"enum": [
|
299
|
+
"Single-Family",
|
300
|
+
"Multifamily (2 to 4 units)",
|
301
|
+
"Multifamily (5 or more units)",
|
299
302
|
"Vacant",
|
300
303
|
"Office",
|
301
304
|
"Laboratory",
|
@@ -341,6 +344,9 @@
|
|
341
344
|
"Single-Family Detached",
|
342
345
|
"Single-Family Attached",
|
343
346
|
"Multifamily",
|
347
|
+
"Single-Family",
|
348
|
+
"Multifamily (2 to 4 units)",
|
349
|
+
"Multifamily (5 or more units)",
|
344
350
|
"Vacant",
|
345
351
|
"Office",
|
346
352
|
"Laboratory",
|
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
-
"id": "http://json-schema.org/openstudio-urban-modeling/
|
4
|
-
"title": "URBANopt Electrical
|
5
|
-
"description": "Schema for an URBANopt Electrical
|
3
|
+
"id": "http://json-schema.org/openstudio-urban-modeling/electrical_connector_properties.json#",
|
4
|
+
"title": "URBANopt Electrical Connector",
|
5
|
+
"description": "Schema for an URBANopt Electrical Connector object",
|
6
6
|
"type": "object",
|
7
7
|
"properties": {
|
8
8
|
"id": {
|
@@ -17,7 +17,7 @@
|
|
17
17
|
"description": "Type of feature.",
|
18
18
|
"type": "string",
|
19
19
|
"enum": [
|
20
|
-
"
|
20
|
+
"ElectricalConnector"
|
21
21
|
]
|
22
22
|
},
|
23
23
|
"source_name": {
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"description": "Total length (ft) of the line, generated on export.",
|
47
47
|
"type": "number"
|
48
48
|
},
|
49
|
-
"
|
49
|
+
"startJunctionId": {
|
50
50
|
"description": "Id of the junction that this line starts at.",
|
51
51
|
"type": "string"
|
52
52
|
},
|
@@ -67,7 +67,7 @@
|
|
67
67
|
"type": "string"
|
68
68
|
}
|
69
69
|
},
|
70
|
-
"
|
70
|
+
"endJunctionId": {
|
71
71
|
"description": "Id of the junction that this line ends at.",
|
72
72
|
"type": "string"
|
73
73
|
},
|
@@ -79,8 +79,8 @@
|
|
79
79
|
"type",
|
80
80
|
"id",
|
81
81
|
"connector_type",
|
82
|
-
"
|
83
|
-
"
|
82
|
+
"startJunctionId",
|
83
|
+
"endJunctionId"
|
84
84
|
],
|
85
85
|
"additionalProperties": false,
|
86
86
|
"definitions": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
-
"id": "http://json-schema.org/openstudio-urban-modeling/
|
3
|
+
"id": "http://json-schema.org/openstudio-urban-modeling/electrical_junction_properties.json#",
|
4
4
|
"title": "URBANopt Electrical Junction",
|
5
5
|
"description": "Schema for an URBANopt Electrical Junction object",
|
6
6
|
"type": "object",
|
@@ -35,11 +35,11 @@
|
|
35
35
|
"connector_type": {
|
36
36
|
"$ref": "#/definitions/ElectricalJunctionType"
|
37
37
|
},
|
38
|
-
"
|
38
|
+
"buildingId": {
|
39
39
|
"description": "Id of building if this junction is inside a building.",
|
40
40
|
"type": "string"
|
41
41
|
},
|
42
|
-
"
|
42
|
+
"DSId": {
|
43
43
|
"description": "Id of district system if this junction is inside a district system.",
|
44
44
|
"type": "string"
|
45
45
|
},
|
@@ -49,8 +49,7 @@
|
|
49
49
|
},
|
50
50
|
"required": [
|
51
51
|
"type",
|
52
|
-
"id"
|
53
|
-
"connector_type"
|
52
|
+
"id"
|
54
53
|
],
|
55
54
|
"additionalProperties": false,
|
56
55
|
"definitions": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
-
"id": "http://json-schema.org/openstudio-urban-modeling/
|
3
|
+
"id": "http://json-schema.org/openstudio-urban-modeling/thermal_connector_properties.json#",
|
4
4
|
"title": "URBANopt Thermal Connector",
|
5
5
|
"description": "Schema for an URBANopt Thermal Connector object",
|
6
6
|
"type": "object",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
-
"id": "http://json-schema.org/openstudio-urban-modeling/
|
3
|
+
"id": "http://json-schema.org/openstudio-urban-modeling/thermal_junction_properties.json#",
|
4
4
|
"title": "URBANopt Thermal Junction",
|
5
5
|
"description": "Schema for an URBANopt Thermal Junction object",
|
6
6
|
"type": "object",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: urbanopt-geojson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanushree Charan
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-08-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -216,7 +216,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
216
|
- !ruby/object:Gem::Version
|
217
217
|
version: '0'
|
218
218
|
requirements: []
|
219
|
-
|
219
|
+
rubyforge_project:
|
220
|
+
rubygems_version: 2.7.6
|
220
221
|
signing_key:
|
221
222
|
specification_version: 4
|
222
223
|
summary: Library and measures to translate URBANopt GeoJSON format to OpenStudio
|