urbanopt-geojson 0.5.0 → 0.6.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 +38 -4
- data/Gemfile +1 -1
- data/LICENSE.md +29 -17
- data/Rakefile +16 -6
- data/doc_templates/LICENSE.md +27 -17
- data/doc_templates/copyright_erb.txt +40 -30
- data/doc_templates/copyright_js.txt +1 -1
- data/doc_templates/copyright_ruby.txt +17 -7
- data/docs/package-lock.json +2525 -1585
- data/docs/package.json +9 -3
- data/lib/measures/urban_geometry_creation/LICENSE.md +27 -17
- data/lib/measures/urban_geometry_creation/README.md +9 -1
- data/lib/measures/urban_geometry_creation/measure.rb +16 -6
- data/lib/measures/urban_geometry_creation/measure.xml +33 -14
- data/lib/measures/urban_geometry_creation_zoning/LICENSE.md +27 -17
- data/lib/measures/urban_geometry_creation_zoning/README.md +1 -1
- data/lib/measures/urban_geometry_creation_zoning/measure.rb +16 -6
- data/lib/measures/urban_geometry_creation_zoning/measure.xml +11 -11
- data/lib/urbanopt-geojson.rb +16 -6
- data/lib/urbanopt/geojson.rb +16 -6
- data/lib/urbanopt/geojson/building.rb +16 -6
- data/lib/urbanopt/geojson/derived_extension.rb +16 -6
- data/lib/urbanopt/geojson/district_system.rb +16 -6
- data/lib/urbanopt/geojson/feature.rb +24 -11
- data/lib/urbanopt/geojson/geo_file.rb +16 -6
- data/lib/urbanopt/geojson/helper.rb +22 -9
- data/lib/urbanopt/geojson/logging.rb +16 -6
- data/lib/urbanopt/geojson/mapper_classes.rb +16 -6
- data/lib/urbanopt/geojson/model.rb +11 -1
- data/lib/urbanopt/geojson/region.rb +11 -1
- data/lib/urbanopt/geojson/scale_area.rb +12 -1
- data/lib/urbanopt/geojson/schema/building_properties.json +45 -6
- data/lib/urbanopt/geojson/schema/electrical_connector_properties.json +23 -14
- 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/update_areas.rb +11 -1
- data/lib/urbanopt/geojson/validate_geojson.rb +11 -1
- data/lib/urbanopt/geojson/version.rb +12 -2
- data/lib/urbanopt/geojson/zoning.rb +11 -1
- data/urbanopt-geojson-gem.gemspec +3 -4
- metadata +9 -23
@@ -142,7 +142,7 @@
|
|
142
142
|
"$ref": "#/definitions/heatingSystemFuelType"
|
143
143
|
},
|
144
144
|
"weekday_start_time": {
|
145
|
-
"description": "Weekday operating hours start time in 08:30 format, using 24-hr clock. Leave blank to use default.
|
145
|
+
"description": "Weekday operating hours start time in 08:30 format, using 24-hr clock. Leave blank to use default.",
|
146
146
|
"type": "string"
|
147
147
|
},
|
148
148
|
"weekday_duration": {
|
@@ -150,7 +150,7 @@
|
|
150
150
|
"type": "string"
|
151
151
|
},
|
152
152
|
"weekend_start_time": {
|
153
|
-
"description": "Weekend operating hours start time in 08:30 format, using 24-hr clock. Leave blank to use default.
|
153
|
+
"description": "Weekend operating hours start time in 08:30 format, using 24-hr clock. Leave blank to use default.",
|
154
154
|
"type": "string"
|
155
155
|
},
|
156
156
|
"weekend_duration": {
|
@@ -225,6 +225,45 @@
|
|
225
225
|
},
|
226
226
|
"user_data": {
|
227
227
|
"description": "Arbitrary user data"
|
228
|
+
},
|
229
|
+
"ev_charging": {
|
230
|
+
"description": "Should be set to true if EV charging is associated with the building.",
|
231
|
+
"type": "boolean"
|
232
|
+
},
|
233
|
+
"ev_charging_station_type": {
|
234
|
+
"description": "Indicates whether EV charging associated with the building is for Typical Home, Public or Work charging station",
|
235
|
+
"type": "string",
|
236
|
+
"enum": [
|
237
|
+
"Typical Home",
|
238
|
+
"Typical Public",
|
239
|
+
"Typical Work"
|
240
|
+
]
|
241
|
+
},
|
242
|
+
"delay_type": {
|
243
|
+
"description": "Adds workplace charging flexibility for different scenarios. Min delay scenario indicates EV charging immediately upon arriving to work, Max delay indicates not charging until necessary thereby shifting EV charging load to later in the day and Min power indicates charging EVs at a minimum rate over the parking event.",
|
244
|
+
"type": "string",
|
245
|
+
"enum": [
|
246
|
+
"Min Delay",
|
247
|
+
"Max Delay",
|
248
|
+
"Min Power"
|
249
|
+
]
|
250
|
+
},
|
251
|
+
"ev_charging_behavior": {
|
252
|
+
"description": "Describes scenarios for EV charging behavior, Business as Usual implies home dominant charging behavior, Free Workplace Charging at Project Site implies peak power draw from EV charging during morning hours due to EV charging at workplaces and Free Workplace Charging Across Metro Area scenario reduces Home EV charging relative to Free Workplace Charging at Project Site for residents who work elsewhere and can charge their vehicles for free at those workplaces.",
|
253
|
+
"type": "string",
|
254
|
+
"enum": [
|
255
|
+
"Business as Usual",
|
256
|
+
"Free Workplace Charging at Project Site",
|
257
|
+
"Free Workplace Charging Across Metro Area"
|
258
|
+
]
|
259
|
+
},
|
260
|
+
"ev_percent": {
|
261
|
+
"description": "Denotes the % of vehicles parked at the building that are EVs.",
|
262
|
+
"type": "number"
|
263
|
+
},
|
264
|
+
"ev_curtailment_frac": {
|
265
|
+
"description": "Fraction between 0 and 1 that denotes curtailment of EV charging load to better align EV charging with expected energy production from a solar PV system",
|
266
|
+
"type": "number"
|
228
267
|
}
|
229
268
|
},
|
230
269
|
"oneOf": [
|
@@ -254,7 +293,7 @@
|
|
254
293
|
"building_type": {
|
255
294
|
"enum": [
|
256
295
|
"Single-Family Attached"
|
257
|
-
|
296
|
+
]
|
258
297
|
}
|
259
298
|
},
|
260
299
|
"required": [
|
@@ -276,7 +315,7 @@
|
|
276
315
|
"building_type": {
|
277
316
|
"enum": [
|
278
317
|
"Multifamily"
|
279
|
-
|
318
|
+
]
|
280
319
|
}
|
281
320
|
},
|
282
321
|
"required": [
|
@@ -373,7 +412,7 @@
|
|
373
412
|
]
|
374
413
|
},
|
375
414
|
"systemType": {
|
376
|
-
"description": "Building HVAC system type.
|
415
|
+
"description": "Building HVAC system type.",
|
377
416
|
"type": "string",
|
378
417
|
"enum": [
|
379
418
|
"PTAC with baseboard electric",
|
@@ -437,7 +476,7 @@
|
|
437
476
|
"Direct evap coolers with baseboard electric",
|
438
477
|
"Direct evap coolers with baseboard gas boiler",
|
439
478
|
"Direct evap coolers with baseboard central air source heat pump",
|
440
|
-
"Direct evap coolers with no heat",
|
479
|
+
"Direct evap coolers with no heat",
|
441
480
|
"Direct evap coolers with gas unit heaters",
|
442
481
|
"Direct evap coolers with forced air furnace",
|
443
482
|
"Gas unit heaters",
|
@@ -50,22 +50,31 @@
|
|
50
50
|
"description": "Id of the junction that this line starts at.",
|
51
51
|
"type": "string"
|
52
52
|
},
|
53
|
-
"line_properties":{
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
53
|
+
"line_properties": {
|
54
|
+
"description": "A sub-element containing all the attributes that can be assigned to a line, including wires",
|
55
|
+
"type": "object",
|
56
|
+
"properties": {
|
57
|
+
"is_switch": {
|
58
|
+
"type": "boolean",
|
59
|
+
"description": "Flag indicating if the line is a switch or not"
|
60
|
+
},
|
61
|
+
"is_fuse": {
|
62
|
+
"type": "boolean",
|
63
|
+
"description": "Flag indicating if the line is a fuse or not"
|
64
|
+
},
|
65
|
+
"is_open": {
|
66
|
+
"type": "boolean",
|
67
|
+
"description": "Flag indicating if the switch/fuse is a open or not"
|
60
68
|
}
|
69
|
+
}
|
61
70
|
},
|
62
71
|
"wires": {
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
72
|
+
"description": "Array of wires that are on the line",
|
73
|
+
"type": "array",
|
74
|
+
"items": {
|
75
|
+
"$ref": "#/definitions/WireType",
|
76
|
+
"type": "string"
|
77
|
+
}
|
69
78
|
},
|
70
79
|
"endJunctionId": {
|
71
80
|
"description": "Id of the junction that this line ends at.",
|
@@ -214,4 +223,4 @@
|
|
214
223
|
]
|
215
224
|
}
|
216
225
|
}
|
217
|
-
}
|
226
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt (tm), Copyright (c) 2019-
|
2
|
+
# URBANopt (tm), 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,
|
@@ -16,6 +16,16 @@
|
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
18
|
#
|
19
|
+
# Redistribution of this software, without modification, must refer to the software
|
20
|
+
# by the same designation. Redistribution of a modified version of this software
|
21
|
+
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
+
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
+
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
+
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
+
# refer to any modified version of this software or any modified version of the
|
26
|
+
# underlying software originally provided by Alliance without the prior written
|
27
|
+
# consent of Alliance.
|
28
|
+
#
|
19
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
20
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
21
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt (tm), Copyright (c) 2019-
|
2
|
+
# URBANopt (tm), 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,
|
@@ -16,6 +16,16 @@
|
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
18
|
#
|
19
|
+
# Redistribution of this software, without modification, must refer to the software
|
20
|
+
# by the same designation. Redistribution of a modified version of this software
|
21
|
+
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
+
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
+
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
+
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
+
# refer to any modified version of this software or any modified version of the
|
26
|
+
# underlying software originally provided by Alliance without the prior written
|
27
|
+
# consent of Alliance.
|
28
|
+
#
|
19
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
20
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
21
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt (tm), Copyright (c) 2019-
|
2
|
+
# URBANopt (tm), 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,
|
@@ -16,6 +16,16 @@
|
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
18
|
#
|
19
|
+
# Redistribution of this software, without modification, must refer to the software
|
20
|
+
# by the same designation. Redistribution of a modified version of this software
|
21
|
+
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
+
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
+
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
+
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
+
# refer to any modified version of this software or any modified version of the
|
26
|
+
# underlying software originally provided by Alliance without the prior written
|
27
|
+
# consent of Alliance.
|
28
|
+
#
|
19
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
20
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
21
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -30,6 +40,6 @@
|
|
30
40
|
|
31
41
|
module URBANopt
|
32
42
|
module GeoJSON
|
33
|
-
VERSION = '0.
|
43
|
+
VERSION = '0.6.1'.freeze
|
34
44
|
end
|
35
45
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt (tm), Copyright (c) 2019-
|
2
|
+
# URBANopt (tm), 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,
|
@@ -16,6 +16,16 @@
|
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
18
|
#
|
19
|
+
# Redistribution of this software, without modification, must refer to the software
|
20
|
+
# by the same designation. Redistribution of a modified version of this software
|
21
|
+
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
+
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
+
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
+
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
+
# refer to any modified version of this software or any modified version of the
|
26
|
+
# underlying software originally provided by Alliance without the prior written
|
27
|
+
# consent of Alliance.
|
28
|
+
#
|
19
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
20
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
21
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -23,13 +23,12 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
|
-
spec.required_ruby_version = '~> 2.
|
26
|
+
spec.required_ruby_version = '~> 2.7.0'
|
27
27
|
|
28
|
-
spec.add_development_dependency 'bundler', '
|
28
|
+
spec.add_development_dependency 'bundler', '>= 2.1.0'
|
29
29
|
spec.add_development_dependency 'rake', '~> 13.0'
|
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 '
|
34
|
-
spec.add_runtime_dependency 'urbanopt-core', '~> 0.5.0'
|
33
|
+
spec.add_runtime_dependency 'urbanopt-core', '~> 0.6.0'
|
35
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.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanushree Charan
|
@@ -10,22 +10,22 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-04-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 2.1.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - "
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 2.1.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rake
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,34 +68,20 @@ dependencies:
|
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '2.8'
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: openstudio-extension
|
73
|
-
requirement: !ruby/object:Gem::Requirement
|
74
|
-
requirements:
|
75
|
-
- - "~>"
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 0.3.1
|
78
|
-
type: :runtime
|
79
|
-
prerelease: false
|
80
|
-
version_requirements: !ruby/object:Gem::Requirement
|
81
|
-
requirements:
|
82
|
-
- - "~>"
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: 0.3.1
|
85
71
|
- !ruby/object:Gem::Dependency
|
86
72
|
name: urbanopt-core
|
87
73
|
requirement: !ruby/object:Gem::Requirement
|
88
74
|
requirements:
|
89
75
|
- - "~>"
|
90
76
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.
|
77
|
+
version: 0.6.0
|
92
78
|
type: :runtime
|
93
79
|
prerelease: false
|
94
80
|
version_requirements: !ruby/object:Gem::Requirement
|
95
81
|
requirements:
|
96
82
|
- - "~>"
|
97
83
|
- !ruby/object:Gem::Version
|
98
|
-
version: 0.
|
84
|
+
version: 0.6.0
|
99
85
|
description: Library and measures to translate URBANopt GeoJSON format to OpenStudio
|
100
86
|
email:
|
101
87
|
- tanushree.charan@nrel.gov
|
@@ -212,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
212
198
|
requirements:
|
213
199
|
- - "~>"
|
214
200
|
- !ruby/object:Gem::Version
|
215
|
-
version: 2.
|
201
|
+
version: 2.7.0
|
216
202
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
203
|
requirements:
|
218
204
|
- - ">="
|