urbanopt-geojson 0.6.1 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -3
- data/CHANGELOG.md +26 -0
- data/LICENSE.md +0 -2
- data/docs/package-lock.json +34 -68
- data/docs/package.json +1 -1
- data/lib/measures/urban_geometry_creation/measure.xml +12 -12
- data/lib/measures/urban_geometry_creation_zoning/measure.xml +27 -9
- data/lib/urbanopt/geojson/helper.rb +30 -33
- data/lib/urbanopt/geojson/model.rb +7 -7
- data/lib/urbanopt/geojson/region.rb +7 -7
- data/lib/urbanopt/geojson/scale_area.rb +7 -7
- data/lib/urbanopt/geojson/schema/building_properties.json +2 -1
- data/lib/urbanopt/geojson/schema/district_system_properties.json +2 -0
- data/lib/urbanopt/geojson/schema/electrical_connector_properties.json +4 -1
- data/lib/urbanopt/geojson/schema/site_properties.json +12 -0
- data/lib/urbanopt/geojson/update_areas.rb +7 -7
- data/lib/urbanopt/geojson/validate_geojson.rb +7 -7
- data/lib/urbanopt/geojson/version.rb +8 -8
- data/lib/urbanopt/geojson/zoning.rb +7 -7
- data/urbanopt-geojson-gem.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2430546677ea55157bf8a133bf68eff52b728ce45350567ff7a658740f033317
|
4
|
+
data.tar.gz: 25c95f3a3c106d264bb541821b14a333752e1506b5590503a2eb9d67e9e3878c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab99a234d7eef83cfda1242cf30190ff95a4c5426219f2955aceb37d885a3113a6b2222d17af98c3eb59649f4553b75f7b96461921e806ba6f26ebbb014a3f94
|
7
|
+
data.tar.gz: f2005612f0117abc4218e6970f181dd125345017211589669d80fe768f443395c3be223296a2890cc868a0071f4dd24ce0d71f1d3982b78cdbae4065e065bec6
|
data/.rubocop.yml
CHANGED
@@ -3,8 +3,7 @@ AllCops:
|
|
3
3
|
- gems/**/*
|
4
4
|
- measures/**/*
|
5
5
|
- spec/files/**/measures/**/*
|
6
|
-
|
6
|
+
require: rubocop-performance
|
7
7
|
|
8
8
|
inherit_from:
|
9
|
-
- http://s3.amazonaws.com/openstudio-resources/styles/
|
10
|
-
|
9
|
+
- http://s3.amazonaws.com/openstudio-resources/styles/rubocop_v4.yml
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,31 @@
|
|
1
1
|
# URBANopt GeoJSON Gem
|
2
2
|
|
3
|
+
## Version 0.6.5
|
4
|
+
Date Range: 07/08/21 - 07/21/21
|
5
|
+
|
6
|
+
- Fixed [#188]( https://github.com/urbanopt/urbanopt-geojson-gem/issues/188 ), Add RNM field for max_number_of_lv_nodes_per_building
|
7
|
+
|
8
|
+
## Version 0.6.4
|
9
|
+
Date Range: 07/01/21 - 07/07/21
|
10
|
+
|
11
|
+
- Fixed [#184](https://github.com/urbanopt/urbanopt-geojson-gem/issues/184), Add missing transformers to equipment enum so that validation passes
|
12
|
+
|
13
|
+
## Version 0.6.3
|
14
|
+
Date Range: 05/07/21 - 07/01/21
|
15
|
+
|
16
|
+
- Fixed [#178](https://github.com/urbanopt/urbanopt-geojson-gem/issues/178), Remove NREL ZNE Ready
|
17
|
+
2017 template from schema
|
18
|
+
- Fixed [#176](https://github.com/urbanopt/urbanopt-geojson-gem/issues/176), Update rubocop configs to v4
|
19
|
+
- Fixed [#173](https://github.com/urbanopt/urbanopt-geojson-gem/issues/173), Add necessary fields
|
20
|
+
for RNM-US analysis
|
21
|
+
- Fixed [#169](https://github.com/urbanopt/urbanopt-geojson-gem/issues/169), Adjacent buildings not being created as shading objects
|
22
|
+
|
23
|
+
|
24
|
+
## Version 0.6.2
|
25
|
+
Date Range: 04/30/21 - 05/06/21
|
26
|
+
|
27
|
+
- Fixed [#161]( https://github.com/urbanopt/urbanopt-geojson-gem/issues/161 ), Add 90.1-2016 and 90.1-2019 to UO geojson schema
|
28
|
+
|
3
29
|
## Version 0.6.1
|
4
30
|
|
5
31
|
Date Range: 04/27/21 - 04/29/21
|
data/LICENSE.md
CHANGED
data/docs/package-lock.json
CHANGED
@@ -2901,15 +2901,27 @@
|
|
2901
2901
|
}
|
2902
2902
|
},
|
2903
2903
|
"browserslist": {
|
2904
|
-
"version": "4.16.
|
2905
|
-
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.
|
2906
|
-
"integrity": "sha512-
|
2904
|
+
"version": "4.16.6",
|
2905
|
+
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.6.tgz",
|
2906
|
+
"integrity": "sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==",
|
2907
2907
|
"requires": {
|
2908
|
-
"caniuse-lite": "^1.0.
|
2909
|
-
"colorette": "^1.2.
|
2910
|
-
"electron-to-chromium": "^1.3.
|
2908
|
+
"caniuse-lite": "^1.0.30001219",
|
2909
|
+
"colorette": "^1.2.2",
|
2910
|
+
"electron-to-chromium": "^1.3.723",
|
2911
2911
|
"escalade": "^3.1.1",
|
2912
|
-
"node-releases": "^1.1.
|
2912
|
+
"node-releases": "^1.1.71"
|
2913
|
+
},
|
2914
|
+
"dependencies": {
|
2915
|
+
"caniuse-lite": {
|
2916
|
+
"version": "1.0.30001228",
|
2917
|
+
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001228.tgz",
|
2918
|
+
"integrity": "sha512-QQmLOGJ3DEgokHbMSA8cj2a+geXqmnpyOFT0lhQV6P3/YOJvGDEwoedcwxEQ30gJIwIIunHIicunJ2rzK5gB2A=="
|
2919
|
+
},
|
2920
|
+
"electron-to-chromium": {
|
2921
|
+
"version": "1.3.737",
|
2922
|
+
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.737.tgz",
|
2923
|
+
"integrity": "sha512-P/B84AgUSQXaum7a8m11HUsYL8tj9h/Pt5f7Hg7Ty6bm5DxlFq+e5+ouHUoNQMsKDJ7u4yGfI8mOErCmSH9wyg=="
|
2924
|
+
}
|
2913
2925
|
}
|
2914
2926
|
},
|
2915
2927
|
"buffer": {
|
@@ -3322,17 +3334,6 @@
|
|
3322
3334
|
"resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz",
|
3323
3335
|
"integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw=="
|
3324
3336
|
},
|
3325
|
-
"clipboard": {
|
3326
|
-
"version": "2.0.8",
|
3327
|
-
"resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.8.tgz",
|
3328
|
-
"integrity": "sha512-Y6WO0unAIQp5bLmk1zdThRhgJt/x3ks6f30s3oE3H1mgIEU33XyQjEf8gsf6DxC7NPX8Y1SsNWjUjL/ywLnnbQ==",
|
3329
|
-
"optional": true,
|
3330
|
-
"requires": {
|
3331
|
-
"good-listener": "^1.2.2",
|
3332
|
-
"select": "^1.1.2",
|
3333
|
-
"tiny-emitter": "^2.0.0"
|
3334
|
-
}
|
3335
|
-
},
|
3336
3337
|
"cliui": {
|
3337
3338
|
"version": "5.0.0",
|
3338
3339
|
"resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz",
|
@@ -4251,12 +4252,6 @@
|
|
4251
4252
|
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
4252
4253
|
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
|
4253
4254
|
},
|
4254
|
-
"delegate": {
|
4255
|
-
"version": "3.2.0",
|
4256
|
-
"resolved": "https://registry.npmjs.org/delegate/-/delegate-3.2.0.tgz",
|
4257
|
-
"integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==",
|
4258
|
-
"optional": true
|
4259
|
-
},
|
4260
4255
|
"depd": {
|
4261
4256
|
"version": "1.1.2",
|
4262
4257
|
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
|
@@ -4312,9 +4307,9 @@
|
|
4312
4307
|
"integrity": "sha1-s55/HabrCnW6nBcySzR1PEfgZU0="
|
4313
4308
|
},
|
4314
4309
|
"dns-packet": {
|
4315
|
-
"version": "1.3.
|
4316
|
-
"resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.
|
4317
|
-
"integrity": "sha512-
|
4310
|
+
"version": "1.3.4",
|
4311
|
+
"resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz",
|
4312
|
+
"integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==",
|
4318
4313
|
"requires": {
|
4319
4314
|
"ip": "^1.1.0",
|
4320
4315
|
"safe-buffer": "^5.0.1"
|
@@ -4448,11 +4443,6 @@
|
|
4448
4443
|
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
4449
4444
|
"integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
|
4450
4445
|
},
|
4451
|
-
"electron-to-chromium": {
|
4452
|
-
"version": "1.3.708",
|
4453
|
-
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.708.tgz",
|
4454
|
-
"integrity": "sha512-+A8ggYZ5riOLMcVAuzHx6bforaPzaiLnW1QOMD2SlMYQVi7QQTyQ/WrlZoebIH9ikmgr+tLJGpNITFFCUiQcPw=="
|
4455
|
-
},
|
4456
4446
|
"elliptic": {
|
4457
4447
|
"version": "6.5.4",
|
4458
4448
|
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
|
@@ -5408,15 +5398,6 @@
|
|
5408
5398
|
"slash": "^2.0.0"
|
5409
5399
|
}
|
5410
5400
|
},
|
5411
|
-
"good-listener": {
|
5412
|
-
"version": "1.2.2",
|
5413
|
-
"resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz",
|
5414
|
-
"integrity": "sha1-1TswzfkxPf+33JoNR3CWqm0UXFA=",
|
5415
|
-
"optional": true,
|
5416
|
-
"requires": {
|
5417
|
-
"delegate": "^3.1.2"
|
5418
|
-
}
|
5419
|
-
},
|
5420
5401
|
"got": {
|
5421
5402
|
"version": "9.6.0",
|
5422
5403
|
"resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz",
|
@@ -6492,9 +6473,9 @@
|
|
6492
6473
|
}
|
6493
6474
|
},
|
6494
6475
|
"lodash": {
|
6495
|
-
"version": "4.17.
|
6496
|
-
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.
|
6497
|
-
"integrity": "sha512-
|
6476
|
+
"version": "4.17.21",
|
6477
|
+
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
6478
|
+
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
6498
6479
|
},
|
6499
6480
|
"lodash._reinterpolate": {
|
6500
6481
|
"version": "3.0.0",
|
@@ -7550,9 +7531,9 @@
|
|
7550
7531
|
"integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs="
|
7551
7532
|
},
|
7552
7533
|
"postcss": {
|
7553
|
-
"version": "7.0.
|
7554
|
-
"resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.
|
7555
|
-
"integrity": "sha512-
|
7534
|
+
"version": "7.0.36",
|
7535
|
+
"resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz",
|
7536
|
+
"integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==",
|
7556
7537
|
"requires": {
|
7557
7538
|
"chalk": "^2.4.2",
|
7558
7539
|
"source-map": "^0.6.1",
|
@@ -8121,12 +8102,9 @@
|
|
8121
8102
|
"integrity": "sha512-28iF6xPQrP8Oa6uxE6a1biz+lWeTOAPKggvjB8HAs6nVMKZwf5bG++632Dx614hIWgUPkgivRfG+a8uAXGTIbA=="
|
8122
8103
|
},
|
8123
8104
|
"prismjs": {
|
8124
|
-
"version": "1.
|
8125
|
-
"resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.
|
8126
|
-
"integrity": "sha512-
|
8127
|
-
"requires": {
|
8128
|
-
"clipboard": "^2.0.0"
|
8129
|
-
}
|
8105
|
+
"version": "1.24.0",
|
8106
|
+
"resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.24.0.tgz",
|
8107
|
+
"integrity": "sha512-SqV5GRsNqnzCL8k5dfAjCNhUrF3pR0A9lTDSCUZeh/LIshheXJEaP0hwLz2t4XHivd2J/v2HR+gRnigzeKe3cQ=="
|
8130
8108
|
},
|
8131
8109
|
"process": {
|
8132
8110
|
"version": "0.11.10",
|
@@ -8665,12 +8643,6 @@
|
|
8665
8643
|
}
|
8666
8644
|
}
|
8667
8645
|
},
|
8668
|
-
"select": {
|
8669
|
-
"version": "1.1.2",
|
8670
|
-
"resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz",
|
8671
|
-
"integrity": "sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=",
|
8672
|
-
"optional": true
|
8673
|
-
},
|
8674
8646
|
"select-hose": {
|
8675
8647
|
"version": "2.0.0",
|
8676
8648
|
"resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",
|
@@ -9627,12 +9599,6 @@
|
|
9627
9599
|
"resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz",
|
9628
9600
|
"integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q="
|
9629
9601
|
},
|
9630
|
-
"tiny-emitter": {
|
9631
|
-
"version": "2.1.0",
|
9632
|
-
"resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
|
9633
|
-
"integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==",
|
9634
|
-
"optional": true
|
9635
|
-
},
|
9636
9602
|
"to-arraybuffer": {
|
9637
9603
|
"version": "1.0.1",
|
9638
9604
|
"resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz",
|
@@ -11014,9 +10980,9 @@
|
|
11014
10980
|
}
|
11015
10981
|
},
|
11016
10982
|
"ws": {
|
11017
|
-
"version": "6.2.
|
11018
|
-
"resolved": "https://registry.npmjs.org/ws/-/ws-6.2.
|
11019
|
-
"integrity": "sha512-
|
10983
|
+
"version": "6.2.2",
|
10984
|
+
"resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz",
|
10985
|
+
"integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==",
|
11020
10986
|
"requires": {
|
11021
10987
|
"async-limiter": "~1.0.0"
|
11022
10988
|
}
|
data/docs/package.json
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
<schema_version>3.0</schema_version>
|
4
4
|
<name>urban_geometry_creation</name>
|
5
5
|
<uid>5ab85d6b-c9af-4361-8ab9-613ee99a5666</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>9eeca0c7-ef9d-4829-aa2c-b2c138a963c1</version_id>
|
7
|
+
<version_modified>20210602T203055Z</version_modified>
|
8
8
|
<xml_checksum>D254E772</xml_checksum>
|
9
9
|
<class_name>UrbanGeometryCreation</class_name>
|
10
10
|
<display_name>UrbanGeometryCreation</display_name>
|
@@ -116,23 +116,29 @@
|
|
116
116
|
<usage_type>test</usage_type>
|
117
117
|
<checksum>40290298</checksum>
|
118
118
|
</file>
|
119
|
+
<file>
|
120
|
+
<filename>README.md</filename>
|
121
|
+
<filetype>md</filetype>
|
122
|
+
<usage_type>readme</usage_type>
|
123
|
+
<checksum>74F54DC5</checksum>
|
124
|
+
</file>
|
119
125
|
<file>
|
120
126
|
<filename>LICENSE.md</filename>
|
121
127
|
<filetype>md</filetype>
|
122
128
|
<usage_type>license</usage_type>
|
123
|
-
<checksum>
|
129
|
+
<checksum>03523BF4</checksum>
|
124
130
|
</file>
|
125
131
|
<file>
|
126
132
|
<filename>shadowed_tests.rb</filename>
|
127
133
|
<filetype>rb</filetype>
|
128
134
|
<usage_type>test</usage_type>
|
129
|
-
<checksum>
|
135
|
+
<checksum>682820CD</checksum>
|
130
136
|
</file>
|
131
137
|
<file>
|
132
138
|
<filename>urban_geometry_creation_test.rb</filename>
|
133
139
|
<filetype>rb</filetype>
|
134
140
|
<usage_type>test</usage_type>
|
135
|
-
<checksum>
|
141
|
+
<checksum>FD5181F7</checksum>
|
136
142
|
</file>
|
137
143
|
<file>
|
138
144
|
<version>
|
@@ -143,13 +149,7 @@
|
|
143
149
|
<filename>measure.rb</filename>
|
144
150
|
<filetype>rb</filetype>
|
145
151
|
<usage_type>script</usage_type>
|
146
|
-
<checksum>
|
147
|
-
</file>
|
148
|
-
<file>
|
149
|
-
<filename>README.md</filename>
|
150
|
-
<filetype>md</filetype>
|
151
|
-
<usage_type>readme</usage_type>
|
152
|
-
<checksum>74F54DC5</checksum>
|
152
|
+
<checksum>3667C98F</checksum>
|
153
153
|
</file>
|
154
154
|
</files>
|
155
155
|
</measure>
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<schema_version>3.0</schema_version>
|
4
4
|
<name>urban_geometry_creation_zoning</name>
|
5
5
|
<uid>96ea1317-76ac-4670-b51d-71ee3f4fdd65</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>c115c875-0e04-4ac9-990b-011811df23bb</version_id>
|
7
|
+
<version_modified>20210602T203056Z</version_modified>
|
8
8
|
<xml_checksum>D254E772</xml_checksum>
|
9
9
|
<class_name>UrbanGeometryCreationZoning</class_name>
|
10
10
|
<display_name>UrbanGeometryCreationZoning</display_name>
|
@@ -97,11 +97,17 @@
|
|
97
97
|
<usage_type>test</usage_type>
|
98
98
|
<checksum>40290298</checksum>
|
99
99
|
</file>
|
100
|
+
<file>
|
101
|
+
<filename>README.md</filename>
|
102
|
+
<filetype>md</filetype>
|
103
|
+
<usage_type>readme</usage_type>
|
104
|
+
<checksum>0458EE16</checksum>
|
105
|
+
</file>
|
100
106
|
<file>
|
101
107
|
<filename>LICENSE.md</filename>
|
102
108
|
<filetype>md</filetype>
|
103
109
|
<usage_type>license</usage_type>
|
104
|
-
<checksum>
|
110
|
+
<checksum>03523BF4</checksum>
|
105
111
|
</file>
|
106
112
|
<file>
|
107
113
|
<version>
|
@@ -112,19 +118,31 @@
|
|
112
118
|
<filename>measure.rb</filename>
|
113
119
|
<filetype>rb</filetype>
|
114
120
|
<usage_type>script</usage_type>
|
115
|
-
<checksum>
|
121
|
+
<checksum>290A59E6</checksum>
|
116
122
|
</file>
|
117
123
|
<file>
|
118
124
|
<filename>urban_geometry_creation_zoning_test.rb</filename>
|
119
125
|
<filetype>rb</filetype>
|
120
126
|
<usage_type>test</usage_type>
|
121
|
-
<checksum>
|
127
|
+
<checksum>20775652</checksum>
|
122
128
|
</file>
|
123
129
|
<file>
|
124
|
-
<filename>
|
125
|
-
<filetype>
|
126
|
-
<usage_type>
|
127
|
-
<checksum>
|
130
|
+
<filename>example_project_combined.json</filename>
|
131
|
+
<filetype>json</filetype>
|
132
|
+
<usage_type>test</usage_type>
|
133
|
+
<checksum>9BC47B41</checksum>
|
134
|
+
</file>
|
135
|
+
<file>
|
136
|
+
<filename>out.txt</filename>
|
137
|
+
<filetype>txt</filetype>
|
138
|
+
<usage_type>test</usage_type>
|
139
|
+
<checksum>7FAF05F3</checksum>
|
140
|
+
</file>
|
141
|
+
<file>
|
142
|
+
<filename>OV_Buildings_Update_090420_res_eui_test.json</filename>
|
143
|
+
<filetype>json</filetype>
|
144
|
+
<usage_type>test</usage_type>
|
145
|
+
<checksum>F611B1E8</checksum>
|
128
146
|
</file>
|
129
147
|
</files>
|
130
148
|
</measure>
|
@@ -334,23 +334,27 @@ module URBANopt
|
|
334
334
|
# * +origin_lat_lon+ _Type:Float_ - An instance of OpenStudio::PointLatLon indicating the origin's
|
335
335
|
# latitude and longitude.
|
336
336
|
def self.is_shadowed(potentially_shaded, potential_shader, origin_lat_lon)
|
337
|
-
|
337
|
+
# not using origin_lat_lon but have not removed it yet
|
338
|
+
min_distance = nil
|
339
|
+
min_pair = nil
|
338
340
|
potentially_shaded.each do |building_point|
|
339
341
|
potential_shader.each do |other_building_point|
|
340
342
|
vector = other_building_point - building_point
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
343
|
+
distance = Math.sqrt(vector.x * vector.x + vector.y * vector.y)
|
344
|
+
if min_distance.nil? || distance < min_distance
|
345
|
+
min_distance = distance
|
346
|
+
min_pair = {
|
347
|
+
building_point: building_point,
|
348
|
+
other_building_point: other_building_point,
|
349
|
+
vector: vector,
|
350
|
+
distance: vector.length
|
351
|
+
}
|
352
|
+
end
|
347
353
|
end
|
348
354
|
end
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
return true
|
353
|
-
end
|
355
|
+
|
356
|
+
if is_shaded(min_pair[:building_point], min_pair[:other_building_point], origin_lat_lon)
|
357
|
+
return true
|
354
358
|
end
|
355
359
|
return false
|
356
360
|
end
|
@@ -364,34 +368,27 @@ module URBANopt
|
|
364
368
|
# * +origin_lat_lon+ - _Type:Float_ - An instance of +OpenStudio::PointLatLon+ indicating the
|
365
369
|
# origin's latitude and longitude.
|
366
370
|
def self.is_shaded(building_point, other_building_point, origin_lat_lon)
|
371
|
+
# not using origin_lat_lon but have not removed it yet
|
367
372
|
vector = other_building_point - building_point
|
368
|
-
height = vector.z
|
369
373
|
distance = Math.sqrt(vector.x * vector.x + vector.y * vector.y)
|
370
374
|
if distance < 1
|
371
375
|
return true
|
372
376
|
end
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
elevation_angle = 90 - zenith_angle
|
382
|
-
apparent_angle_rad = Math.atan2(height, distance)
|
383
|
-
apparent_angle = OpenStudio.radToDeg(apparent_angle_rad)
|
384
|
-
if elevation_angle > 0 && elevation_angle < apparent_angle
|
385
|
-
result = true
|
386
|
-
break
|
387
|
-
end
|
377
|
+
elevation_angle = 2.5 #not sure of best value maybe allow as project level argument
|
378
|
+
height = vector.z
|
379
|
+
apparent_angle_rad = Math.atan2(height, distance)
|
380
|
+
apparent_angle = OpenStudio.radToDeg(apparent_angle_rad)
|
381
|
+
if elevation_angle < apparent_angle
|
382
|
+
result = true
|
383
|
+
else
|
384
|
+
result = false
|
388
385
|
end
|
389
386
|
return result
|
390
387
|
end
|
391
388
|
|
392
|
-
|
393
|
-
|
389
|
+
class << self
|
390
|
+
private :is_shaded
|
391
|
+
end
|
392
|
+
end
|
393
|
+
end
|
394
394
|
end
|
395
|
-
end
|
396
|
-
end
|
397
|
-
end
|
@@ -1,21 +1,21 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
2
|
+
# URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
3
3
|
# contributors. All rights reserved.
|
4
|
-
|
4
|
+
|
5
5
|
# Redistribution and use in source and binary forms, with or without modification,
|
6
6
|
# are permitted provided that the following conditions are met:
|
7
|
-
|
7
|
+
|
8
8
|
# Redistributions of source code must retain the above copyright notice, this list
|
9
9
|
# of conditions and the following disclaimer.
|
10
|
-
|
10
|
+
|
11
11
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
12
|
# list of conditions and the following disclaimer in the documentation and/or other
|
13
13
|
# materials provided with the distribution.
|
14
|
-
|
14
|
+
|
15
15
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
|
-
|
18
|
+
|
19
19
|
# Redistribution of this software, without modification, must refer to the software
|
20
20
|
# by the same designation. Redistribution of a modified version of this software
|
21
21
|
# (i) may not refer to the modified version by the same designation, or by any
|
@@ -25,7 +25,7 @@
|
|
25
25
|
# refer to any modified version of this software or any modified version of the
|
26
26
|
# underlying software originally provided by Alliance without the prior written
|
27
27
|
# consent of Alliance.
|
28
|
-
|
28
|
+
|
29
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
30
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
31
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -1,21 +1,21 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
2
|
+
# URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
3
3
|
# contributors. All rights reserved.
|
4
|
-
|
4
|
+
|
5
5
|
# Redistribution and use in source and binary forms, with or without modification,
|
6
6
|
# are permitted provided that the following conditions are met:
|
7
|
-
|
7
|
+
|
8
8
|
# Redistributions of source code must retain the above copyright notice, this list
|
9
9
|
# of conditions and the following disclaimer.
|
10
|
-
|
10
|
+
|
11
11
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
12
|
# list of conditions and the following disclaimer in the documentation and/or other
|
13
13
|
# materials provided with the distribution.
|
14
|
-
|
14
|
+
|
15
15
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
|
-
|
18
|
+
|
19
19
|
# Redistribution of this software, without modification, must refer to the software
|
20
20
|
# by the same designation. Redistribution of a modified version of this software
|
21
21
|
# (i) may not refer to the modified version by the same designation, or by any
|
@@ -25,7 +25,7 @@
|
|
25
25
|
# refer to any modified version of this software or any modified version of the
|
26
26
|
# underlying software originally provided by Alliance without the prior written
|
27
27
|
# consent of Alliance.
|
28
|
-
|
28
|
+
|
29
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
30
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
31
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -1,21 +1,21 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
2
|
+
# URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
3
3
|
# contributors. All rights reserved.
|
4
|
-
|
4
|
+
|
5
5
|
# Redistribution and use in source and binary forms, with or without modification,
|
6
6
|
# are permitted provided that the following conditions are met:
|
7
|
-
|
7
|
+
|
8
8
|
# Redistributions of source code must retain the above copyright notice, this list
|
9
9
|
# of conditions and the following disclaimer.
|
10
|
-
|
10
|
+
|
11
11
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
12
|
# list of conditions and the following disclaimer in the documentation and/or other
|
13
13
|
# materials provided with the distribution.
|
14
|
-
|
14
|
+
|
15
15
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
|
-
|
18
|
+
|
19
19
|
# Redistribution of this software, without modification, must refer to the software
|
20
20
|
# by the same designation. Redistribution of a modified version of this software
|
21
21
|
# (i) may not refer to the modified version by the same designation, or by any
|
@@ -25,7 +25,7 @@
|
|
25
25
|
# refer to any modified version of this software or any modified version of the
|
26
26
|
# underlying software originally provided by Alliance without the prior written
|
27
27
|
# consent of Alliance.
|
28
|
-
|
28
|
+
|
29
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
30
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
31
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -75,6 +75,18 @@
|
|
75
75
|
"description": "Name of utility tariff file in IDF or URDB format.",
|
76
76
|
"type": "string"
|
77
77
|
},
|
78
|
+
"underground_cables_ratio": {
|
79
|
+
"description": "Ratio of overall cables that are underground vs. overhead for RNM analysis.",
|
80
|
+
"type": "number"
|
81
|
+
},
|
82
|
+
"only_lv_consumers": {
|
83
|
+
"description": "If true, only low voltage consumers will be considered in the RNM analysis.",
|
84
|
+
"type": "boolean"
|
85
|
+
},
|
86
|
+
"max_number_of_lv_nodes_per_building": {
|
87
|
+
"description": "Maximum number of low voltage nodes to represent a single building.",
|
88
|
+
"type": "number"
|
89
|
+
},
|
78
90
|
"user_data": {
|
79
91
|
"description": "Arbitrary user data"
|
80
92
|
}
|
@@ -1,21 +1,21 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
2
|
+
# URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
3
3
|
# contributors. All rights reserved.
|
4
|
-
|
4
|
+
|
5
5
|
# Redistribution and use in source and binary forms, with or without modification,
|
6
6
|
# are permitted provided that the following conditions are met:
|
7
|
-
|
7
|
+
|
8
8
|
# Redistributions of source code must retain the above copyright notice, this list
|
9
9
|
# of conditions and the following disclaimer.
|
10
|
-
|
10
|
+
|
11
11
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
12
|
# list of conditions and the following disclaimer in the documentation and/or other
|
13
13
|
# materials provided with the distribution.
|
14
|
-
|
14
|
+
|
15
15
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
|
-
|
18
|
+
|
19
19
|
# Redistribution of this software, without modification, must refer to the software
|
20
20
|
# by the same designation. Redistribution of a modified version of this software
|
21
21
|
# (i) may not refer to the modified version by the same designation, or by any
|
@@ -25,7 +25,7 @@
|
|
25
25
|
# refer to any modified version of this software or any modified version of the
|
26
26
|
# underlying software originally provided by Alliance without the prior written
|
27
27
|
# consent of Alliance.
|
28
|
-
|
28
|
+
|
29
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
30
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
31
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -1,21 +1,21 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
2
|
+
# URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
3
3
|
# contributors. All rights reserved.
|
4
|
-
|
4
|
+
|
5
5
|
# Redistribution and use in source and binary forms, with or without modification,
|
6
6
|
# are permitted provided that the following conditions are met:
|
7
|
-
|
7
|
+
|
8
8
|
# Redistributions of source code must retain the above copyright notice, this list
|
9
9
|
# of conditions and the following disclaimer.
|
10
|
-
|
10
|
+
|
11
11
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
12
|
# list of conditions and the following disclaimer in the documentation and/or other
|
13
13
|
# materials provided with the distribution.
|
14
|
-
|
14
|
+
|
15
15
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
|
-
|
18
|
+
|
19
19
|
# Redistribution of this software, without modification, must refer to the software
|
20
20
|
# by the same designation. Redistribution of a modified version of this software
|
21
21
|
# (i) may not refer to the modified version by the same designation, or by any
|
@@ -25,7 +25,7 @@
|
|
25
25
|
# refer to any modified version of this software or any modified version of the
|
26
26
|
# underlying software originally provided by Alliance without the prior written
|
27
27
|
# consent of Alliance.
|
28
|
-
|
28
|
+
|
29
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
30
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
31
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -1,21 +1,21 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
2
|
+
# URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
3
3
|
# contributors. All rights reserved.
|
4
|
-
|
4
|
+
|
5
5
|
# Redistribution and use in source and binary forms, with or without modification,
|
6
6
|
# are permitted provided that the following conditions are met:
|
7
|
-
|
7
|
+
|
8
8
|
# Redistributions of source code must retain the above copyright notice, this list
|
9
9
|
# of conditions and the following disclaimer.
|
10
|
-
|
10
|
+
|
11
11
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
12
|
# list of conditions and the following disclaimer in the documentation and/or other
|
13
13
|
# materials provided with the distribution.
|
14
|
-
|
14
|
+
|
15
15
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
|
-
|
18
|
+
|
19
19
|
# Redistribution of this software, without modification, must refer to the software
|
20
20
|
# by the same designation. Redistribution of a modified version of this software
|
21
21
|
# (i) may not refer to the modified version by the same designation, or by any
|
@@ -25,7 +25,7 @@
|
|
25
25
|
# refer to any modified version of this software or any modified version of the
|
26
26
|
# underlying software originally provided by Alliance without the prior written
|
27
27
|
# consent of Alliance.
|
28
|
-
|
28
|
+
|
29
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
30
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
31
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -40,6 +40,6 @@
|
|
40
40
|
|
41
41
|
module URBANopt
|
42
42
|
module GeoJSON
|
43
|
-
VERSION = '0.6.
|
43
|
+
VERSION = '0.6.5'.freeze
|
44
44
|
end
|
45
45
|
end
|
@@ -1,21 +1,21 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
2
|
+
# URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
3
3
|
# contributors. All rights reserved.
|
4
|
-
|
4
|
+
|
5
5
|
# Redistribution and use in source and binary forms, with or without modification,
|
6
6
|
# are permitted provided that the following conditions are met:
|
7
|
-
|
7
|
+
|
8
8
|
# Redistributions of source code must retain the above copyright notice, this list
|
9
9
|
# of conditions and the following disclaimer.
|
10
|
-
|
10
|
+
|
11
11
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
12
|
# list of conditions and the following disclaimer in the documentation and/or other
|
13
13
|
# materials provided with the distribution.
|
14
|
-
|
14
|
+
|
15
15
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
|
-
|
18
|
+
|
19
19
|
# Redistribution of this software, without modification, must refer to the software
|
20
20
|
# by the same designation. Redistribution of a modified version of this software
|
21
21
|
# (i) may not refer to the modified version by the same designation, or by any
|
@@ -25,7 +25,7 @@
|
|
25
25
|
# refer to any modified version of this software or any modified version of the
|
26
26
|
# underlying software originally provided by Alliance without the prior written
|
27
27
|
# consent of Alliance.
|
28
|
-
|
28
|
+
|
29
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
30
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
31
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3.7'
|
31
31
|
|
32
32
|
spec.add_runtime_dependency 'json-schema', '~> 2.8'
|
33
|
-
spec.add_runtime_dependency 'urbanopt-core', '~> 0.6.
|
33
|
+
spec.add_runtime_dependency 'urbanopt-core', '~> 0.6.1'
|
34
34
|
end
|
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.6.
|
4
|
+
version: 0.6.5
|
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: 2021-
|
13
|
+
date: 2021-07-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -74,14 +74,14 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - "~>"
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.6.
|
77
|
+
version: 0.6.1
|
78
78
|
type: :runtime
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - "~>"
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.6.
|
84
|
+
version: 0.6.1
|
85
85
|
description: Library and measures to translate URBANopt GeoJSON format to OpenStudio
|
86
86
|
email:
|
87
87
|
- tanushree.charan@nrel.gov
|