urbanopt-geojson 0.5.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +2 -3
  3. data/CHANGELOG.md +37 -0
  4. data/Gemfile +1 -1
  5. data/LICENSE.md +27 -17
  6. data/Rakefile +16 -6
  7. data/doc_templates/LICENSE.md +27 -17
  8. data/doc_templates/copyright_erb.txt +40 -30
  9. data/doc_templates/copyright_js.txt +1 -1
  10. data/doc_templates/copyright_ruby.txt +17 -7
  11. data/docs/package-lock.json +2534 -1585
  12. data/docs/package.json +9 -4
  13. data/lib/measures/urban_geometry_creation/LICENSE.md +27 -17
  14. data/lib/measures/urban_geometry_creation/measure.rb +16 -6
  15. data/lib/measures/urban_geometry_creation/measure.xml +12 -12
  16. data/lib/measures/urban_geometry_creation_zoning/LICENSE.md +27 -17
  17. data/lib/measures/urban_geometry_creation_zoning/measure.rb +16 -6
  18. data/lib/measures/urban_geometry_creation_zoning/measure.xml +27 -9
  19. data/lib/urbanopt-geojson.rb +16 -6
  20. data/lib/urbanopt/geojson.rb +16 -6
  21. data/lib/urbanopt/geojson/building.rb +16 -6
  22. data/lib/urbanopt/geojson/derived_extension.rb +16 -6
  23. data/lib/urbanopt/geojson/district_system.rb +16 -6
  24. data/lib/urbanopt/geojson/feature.rb +24 -11
  25. data/lib/urbanopt/geojson/geo_file.rb +16 -6
  26. data/lib/urbanopt/geojson/helper.rb +52 -42
  27. data/lib/urbanopt/geojson/logging.rb +16 -6
  28. data/lib/urbanopt/geojson/mapper_classes.rb +16 -6
  29. data/lib/urbanopt/geojson/model.rb +16 -6
  30. data/lib/urbanopt/geojson/region.rb +16 -6
  31. data/lib/urbanopt/geojson/scale_area.rb +16 -6
  32. data/lib/urbanopt/geojson/schema/building_properties.json +8 -7
  33. data/lib/urbanopt/geojson/schema/electrical_connector_properties.json +23 -14
  34. data/lib/urbanopt/geojson/schema/site_properties.json +8 -0
  35. data/lib/urbanopt/geojson/schema/thermal_connector_properties.json +1 -1
  36. data/lib/urbanopt/geojson/schema/thermal_junction_properties.json +1 -1
  37. data/lib/urbanopt/geojson/update_areas.rb +16 -6
  38. data/lib/urbanopt/geojson/validate_geojson.rb +16 -6
  39. data/lib/urbanopt/geojson/version.rb +17 -7
  40. data/lib/urbanopt/geojson/zoning.rb +16 -6
  41. data/urbanopt-geojson-gem.gemspec +3 -3
  42. metadata +9 -9
@@ -1,21 +1,31 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC, and other
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
+ # 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,21 +1,31 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC, and other
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
+ # 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.
@@ -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. Should this be part of a mixed type struct?",
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. Should this be part of a mixed type struct?",
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": {
@@ -293,7 +293,7 @@
293
293
  "building_type": {
294
294
  "enum": [
295
295
  "Single-Family Attached"
296
- ]
296
+ ]
297
297
  }
298
298
  },
299
299
  "required": [
@@ -315,7 +315,7 @@
315
315
  "building_type": {
316
316
  "enum": [
317
317
  "Multifamily"
318
- ]
318
+ ]
319
319
  }
320
320
  },
321
321
  "required": [
@@ -412,7 +412,7 @@
412
412
  ]
413
413
  },
414
414
  "systemType": {
415
- "description": "Building HVAC system type. Should this be part of a mixed type struct?",
415
+ "description": "Building HVAC system type.",
416
416
  "type": "string",
417
417
  "enum": [
418
418
  "PTAC with baseboard electric",
@@ -476,7 +476,7 @@
476
476
  "Direct evap coolers with baseboard electric",
477
477
  "Direct evap coolers with baseboard gas boiler",
478
478
  "Direct evap coolers with baseboard central air source heat pump",
479
- "Direct evap coolers with no heat",
479
+ "Direct evap coolers with no heat",
480
480
  "Direct evap coolers with gas unit heaters",
481
481
  "Direct evap coolers with forced air furnace",
482
482
  "Gas unit heaters",
@@ -537,7 +537,8 @@
537
537
  "90.1-2007",
538
538
  "90.1-2010",
539
539
  "90.1-2013",
540
- "NREL ZNE Ready 2017",
540
+ "90.1-2016",
541
+ "90.1-2019",
541
542
  "DEER Pre-1975",
542
543
  "DEER 1985",
543
544
  "DEER 1996",
@@ -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
- "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":{"type":"boolean","description":"Flag indicating if the line is a switch or not"},
58
- "is_fuse":{"type":"boolean","description":"Flag indicating if the line is a fuse or not"},
59
- "is_open":{"type":"boolean","description":"Flag indicating if the switch/fuse is a open or not"}
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
- "description": "Array of wires that are on the line",
64
- "type": "array",
65
- "items": {
66
- "$ref": "#/definitions/WireType",
67
- "type": "string"
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
+ }
@@ -75,6 +75,14 @@
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
+ },
78
86
  "user_data": {
79
87
  "description": "Arbitrary user data"
80
88
  }
@@ -105,4 +105,4 @@
105
105
  ]
106
106
  }
107
107
  }
108
- }
108
+ }
@@ -80,4 +80,4 @@
80
80
  ]
81
81
  }
82
82
  }
83
- }
83
+ }
@@ -1,21 +1,31 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC, and other
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
+ # 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,21 +1,31 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC, and other
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
+ # 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,21 +1,31 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC, and other
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
+ # 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.5.2'.freeze
43
+ VERSION = '0.6.3'.freeze
34
44
  end
35
45
  end
@@ -1,21 +1,31 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) 2019-2020, Alliance for Sustainable Energy, LLC, and other
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
+ # 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,12 +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.5.0'
26
+ spec.required_ruby_version = '~> 2.7.0'
27
27
 
28
- spec.add_development_dependency 'bundler', '~> 2.1'
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 'urbanopt-core', '~> 0.5.1'
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.5.2
4
+ version: 0.6.3
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: 2021-02-12 00:00:00.000000000 Z
13
+ date: 2021-07-01 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: '2.1'
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: '2.1'
28
+ version: 2.1.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rake
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -74,14 +74,14 @@ dependencies:
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: 0.5.1
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.5.1
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
@@ -198,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 2.5.0
201
+ version: 2.7.0
202
202
  required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  requirements:
204
204
  - - ">="