urbanopt-geojson 0.3.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +2 -2
- data/CHANGELOG.md +48 -4
- data/CONTRIBUTING.md +1 -1
- data/LICENSE.md +29 -17
- data/RDOC_MAIN.md +26 -22
- data/README.md +2 -2
- 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/.vuepress/components/InnerJsonSchema.vue +7 -11
- data/docs/.vuepress/config.js +11 -1
- data/docs/.vuepress/highlight.js +1 -1
- data/docs/.vuepress/json-schema-deref-loader.js +22 -0
- data/docs/README.md +3 -4
- data/docs/package-lock.json +5280 -6960
- data/docs/package.json +10 -8
- data/lib/measures/urban_geometry_creation/LICENSE.md +27 -17
- data/lib/measures/urban_geometry_creation/README.md +8 -0
- data/lib/measures/urban_geometry_creation/measure.rb +34 -9
- 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/measure.rb +16 -8
- data/lib/measures/urban_geometry_creation_zoning/measure.xml +11 -11
- data/lib/urbanopt-geojson.rb +16 -6
- data/lib/urbanopt/geojson.rb +17 -6
- data/lib/urbanopt/geojson/building.rb +76 -15
- data/lib/urbanopt/geojson/derived_extension.rb +16 -6
- data/lib/urbanopt/geojson/district_system.rb +16 -6
- data/lib/urbanopt/geojson/feature.rb +102 -9
- data/lib/urbanopt/geojson/geo_file.rb +18 -8
- data/lib/urbanopt/geojson/helper.rb +52 -7
- data/lib/urbanopt/geojson/logging.rb +16 -6
- data/lib/urbanopt/geojson/mapper_classes.rb +16 -6
- data/lib/urbanopt/geojson/model.rb +1 -1
- data/lib/urbanopt/geojson/region.rb +1 -1
- data/lib/urbanopt/geojson/scale_area.rb +95 -0
- data/lib/urbanopt/geojson/schema/building_properties.json +57 -13
- data/lib/urbanopt/geojson/schema/electrical_connector_properties.json +24 -15
- 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 +1 -1
- data/lib/urbanopt/geojson/validate_geojson.rb +1 -1
- data/lib/urbanopt/geojson/version.rb +2 -2
- data/lib/urbanopt/geojson/zoning.rb +21 -16
- data/urbanopt-geojson-gem.gemspec +4 -8
- metadata +12 -24
data/docs/package.json
CHANGED
@@ -10,22 +10,24 @@
|
|
10
10
|
},
|
11
11
|
"author": "Brian Schiller",
|
12
12
|
"dependencies": {
|
13
|
-
"highlight.js": "^
|
14
|
-
"json-schema-ref-parser": "^
|
13
|
+
"highlight.js": "^10.4.1",
|
14
|
+
"json-schema-ref-parser": "^9.0.6",
|
15
15
|
"json-schema-view-js": "git+https://git@github.com/bgschiller/json-schema-view-js.git",
|
16
|
-
"vuepress": "^
|
16
|
+
"vuepress": "^1.5.4",
|
17
17
|
"webpack-dev-middleware": "^3.6.0"
|
18
18
|
},
|
19
19
|
"devDependencies": {
|
20
|
-
"braces": "
|
20
|
+
"braces": "^3.0.2",
|
21
21
|
"dot-prop": ">=5.1.1",
|
22
|
-
"gh-pages": "^
|
22
|
+
"gh-pages": "^3.1.0",
|
23
23
|
"js-yaml": ">=3.13.1",
|
24
24
|
"lodash": ">=4.17.19",
|
25
25
|
"lodash.template": ">=4.5.0",
|
26
26
|
"minimist": ">=1.2.3",
|
27
|
-
"mixin-deep": "
|
28
|
-
"serialize-javascript": "
|
29
|
-
"set-value": "
|
27
|
+
"mixin-deep": "^2.0.1",
|
28
|
+
"serialize-javascript": "^5.0.1",
|
29
|
+
"set-value": "^3.0.2",
|
30
|
+
"yargs-parser": "^20.2.3",
|
31
|
+
"ini": "^2.0.0"
|
30
32
|
}
|
31
33
|
}
|
@@ -1,27 +1,37 @@
|
|
1
|
-
URBANopt
|
1
|
+
URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
2
2
|
contributors. All rights reserved.
|
3
3
|
|
4
|
-
Redistribution and use in source and binary forms, with or without modification,
|
4
|
+
Redistribution and use in source and binary forms, with or without modification,
|
5
5
|
are permitted provided that the following conditions are met:
|
6
6
|
|
7
|
-
Redistributions of source code must retain the above copyright notice, this list
|
7
|
+
Redistributions of source code must retain the above copyright notice, this list
|
8
8
|
of conditions and the following disclaimer.
|
9
9
|
|
10
|
-
Redistributions in binary form must reproduce the above copyright notice, this
|
11
|
-
list of conditions and the following disclaimer in the documentation and/or other
|
10
|
+
Redistributions in binary form must reproduce the above copyright notice, this
|
11
|
+
list of conditions and the following disclaimer in the documentation and/or other
|
12
12
|
materials provided with the distribution.
|
13
|
-
|
14
|
-
Neither the name of the copyright holder nor the names of its contributors may be
|
15
|
-
used to endorse or promote products derived from this software without specific
|
13
|
+
|
14
|
+
Neither the name of the copyright holder nor the names of its contributors may be
|
15
|
+
used to endorse or promote products derived from this software without specific
|
16
16
|
prior written permission.
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
18
|
+
Redistribution of this software, without modification, must refer to the software
|
19
|
+
by the same designation. Redistribution of a modified version of this software
|
20
|
+
(i) may not refer to the modified version by the same designation, or by any
|
21
|
+
confusingly similar designation, and (ii) must refer to the underlying software
|
22
|
+
originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
23
|
+
the term “URBANopt”, or any confusingly similar designation may not be used to
|
24
|
+
refer to any modified version of this software or any modified version of the
|
25
|
+
underlying software originally provided by Alliance without the prior written
|
26
|
+
consent of Alliance.
|
27
|
+
|
28
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
29
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
30
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
31
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
32
|
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
33
|
+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
34
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
35
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
36
|
+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
27
37
|
OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -43,6 +43,14 @@ Select which surrounding buildings to include.
|
|
43
43
|
**Required:** true,
|
44
44
|
**Model Dependent:** false
|
45
45
|
|
46
|
+
### Scale Footprint Area by the Floor Area?
|
47
|
+
If true, the footprint area from GeoJSON will be scaled by the floor_area provided by the user in URBANopt.
|
48
|
+
**Name:** scale_footprint_area_by_floor_area,
|
49
|
+
**Type:** Boolean,
|
50
|
+
**Units:** ,
|
51
|
+
**Required:** false,
|
52
|
+
**Model Dependent:** false
|
53
|
+
|
46
54
|
|
47
55
|
|
48
56
|
|
@@ -1,23 +1,33 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *********************************************************************************
|
4
|
-
# URBANopt
|
4
|
+
# URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
5
5
|
# contributors. All rights reserved.
|
6
|
-
|
6
|
+
|
7
7
|
# Redistribution and use in source and binary forms, with or without modification,
|
8
8
|
# are permitted provided that the following conditions are met:
|
9
|
-
|
9
|
+
|
10
10
|
# Redistributions of source code must retain the above copyright notice, this list
|
11
11
|
# of conditions and the following disclaimer.
|
12
|
-
|
12
|
+
|
13
13
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
14
14
|
# list of conditions and the following disclaimer in the documentation and/or other
|
15
15
|
# materials provided with the distribution.
|
16
|
-
|
16
|
+
|
17
17
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
18
18
|
# used to endorse or promote products derived from this software without specific
|
19
19
|
# prior written permission.
|
20
|
-
|
20
|
+
|
21
|
+
# Redistribution of this software, without modification, must refer to the software
|
22
|
+
# by the same designation. Redistribution of a modified version of this software
|
23
|
+
# (i) may not refer to the modified version by the same designation, or by any
|
24
|
+
# confusingly similar designation, and (ii) must refer to the underlying software
|
25
|
+
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
26
|
+
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
27
|
+
# refer to any modified version of this software or any modified version of the
|
28
|
+
# underlying software originally provided by Alliance without the prior written
|
29
|
+
# consent of Alliance.
|
30
|
+
|
21
31
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
22
32
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
23
33
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -75,13 +85,17 @@ class UrbanGeometryCreation < OpenStudio::Measure::ModelMeasure
|
|
75
85
|
surrounding_buildings.setDescription('Select which surrounding buildings to include.')
|
76
86
|
surrounding_buildings.setDefaultValue('ShadingOnly')
|
77
87
|
args << surrounding_buildings
|
88
|
+
# not a required argument
|
89
|
+
scale_footprint_area_by_floor_area = OpenStudio::Ruleset::OSArgument.makeBoolArgument('scale_footprint_area_by_floor_area', false)
|
90
|
+
scale_footprint_area_by_floor_area.setDisplayName('Scale Footprint Area by the Floor Area?')
|
91
|
+
scale_footprint_area_by_floor_area.setDescription('If true, the footprint area from GeoJSON will be scaled by the floor_area provided by the user in URBANopt.')
|
92
|
+
scale_footprint_area_by_floor_area.setDefaultValue(false)
|
93
|
+
args << scale_footprint_area_by_floor_area
|
78
94
|
return args
|
79
95
|
end
|
80
96
|
|
81
97
|
# define what happens when the measure is run
|
82
|
-
# rubocop:disable Metrics/AbcSize
|
83
98
|
def run(model, runner, user_arguments)
|
84
|
-
# rubocop:enable Metrics/AbcSize
|
85
99
|
super(model, runner, user_arguments)
|
86
100
|
# use the built-in error checking
|
87
101
|
if !runner.validateUserArguments(arguments(model), user_arguments)
|
@@ -92,6 +106,7 @@ class UrbanGeometryCreation < OpenStudio::Measure::ModelMeasure
|
|
92
106
|
geojson_file = runner.getStringArgumentValue('geojson_file', user_arguments)
|
93
107
|
feature_id = runner.getStringArgumentValue('feature_id', user_arguments)
|
94
108
|
surrounding_buildings = runner.getStringArgumentValue('surrounding_buildings', user_arguments)
|
109
|
+
scale_footprint_area_by_floor_area = runner.getBoolArgumentValue('scale_footprint_area_by_floor_area', user_arguments)
|
95
110
|
|
96
111
|
default_construction_set = URBANopt::GeoJSON::Model.create_construction_set(model, runner)
|
97
112
|
|
@@ -135,7 +150,17 @@ class UrbanGeometryCreation < OpenStudio::Measure::ModelMeasure
|
|
135
150
|
|
136
151
|
if feature.type == 'Building'
|
137
152
|
# make requested building
|
138
|
-
|
153
|
+
# pass in scaled_footprint_area (calculated from floor_area / number_of_stories)
|
154
|
+
scaled_footprint_area = 0
|
155
|
+
if scale_footprint_area_by_floor_area
|
156
|
+
building_hash = feature.to_hash
|
157
|
+
if building_hash[:number_of_stories] && building_hash[:floor_area]
|
158
|
+
scaled_footprint_area = building_hash[:floor_area].to_f / building_hash[:number_of_stories].to_f
|
159
|
+
@runner.registerInfo("Desired footprint area in ft2: #{scaled_footprint_area}")
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
spaces = feature.create_building(:space_per_floor, model, @origin_lat_lon, @runner, false, scaled_footprint_area)
|
139
164
|
if spaces.nil?
|
140
165
|
@runner.registerError("Failed to create spaces for building '#{name}'")
|
141
166
|
return false
|
@@ -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>2e224aaa-0d77-486f-b8ef-c25121fabd91</version_id>
|
7
|
+
<version_modified>20201208T232103Z</version_modified>
|
8
8
|
<xml_checksum>D254E772</xml_checksum>
|
9
9
|
<class_name>UrbanGeometryCreation</class_name>
|
10
10
|
<display_name>UrbanGeometryCreation</display_name>
|
@@ -46,6 +46,25 @@
|
|
46
46
|
</choice>
|
47
47
|
</choices>
|
48
48
|
</argument>
|
49
|
+
<argument>
|
50
|
+
<name>scale_footprint_area_by_floor_area</name>
|
51
|
+
<display_name>Scale Footprint Area by the Floor Area?</display_name>
|
52
|
+
<description>If true, the footprint area from GeoJSON will be scaled by the floor_area provided by the user in URBANopt.</description>
|
53
|
+
<type>Boolean</type>
|
54
|
+
<required>false</required>
|
55
|
+
<model_dependent>false</model_dependent>
|
56
|
+
<default_value>false</default_value>
|
57
|
+
<choices>
|
58
|
+
<choice>
|
59
|
+
<value>true</value>
|
60
|
+
<display_name>true</display_name>
|
61
|
+
</choice>
|
62
|
+
<choice>
|
63
|
+
<value>false</value>
|
64
|
+
<display_name>false</display_name>
|
65
|
+
</choice>
|
66
|
+
</choices>
|
67
|
+
</argument>
|
49
68
|
</arguments>
|
50
69
|
<outputs />
|
51
70
|
<provenances />
|
@@ -91,12 +110,6 @@
|
|
91
110
|
<usage_type>readmeerb</usage_type>
|
92
111
|
<checksum>703C9964</checksum>
|
93
112
|
</file>
|
94
|
-
<file>
|
95
|
-
<filename>LICENSE.md</filename>
|
96
|
-
<filetype>md</filetype>
|
97
|
-
<usage_type>license</usage_type>
|
98
|
-
<checksum>EA283B74</checksum>
|
99
|
-
</file>
|
100
113
|
<file>
|
101
114
|
<filename>nrel_stm_footprints.geojson</filename>
|
102
115
|
<filetype>geojson</filetype>
|
@@ -104,22 +117,22 @@
|
|
104
117
|
<checksum>40290298</checksum>
|
105
118
|
</file>
|
106
119
|
<file>
|
107
|
-
<filename>
|
120
|
+
<filename>LICENSE.md</filename>
|
108
121
|
<filetype>md</filetype>
|
109
|
-
<usage_type>
|
110
|
-
<checksum>
|
122
|
+
<usage_type>license</usage_type>
|
123
|
+
<checksum>D8541540</checksum>
|
111
124
|
</file>
|
112
125
|
<file>
|
113
126
|
<filename>shadowed_tests.rb</filename>
|
114
127
|
<filetype>rb</filetype>
|
115
128
|
<usage_type>test</usage_type>
|
116
|
-
<checksum>
|
129
|
+
<checksum>F656F8DE</checksum>
|
117
130
|
</file>
|
118
131
|
<file>
|
119
132
|
<filename>urban_geometry_creation_test.rb</filename>
|
120
133
|
<filetype>rb</filetype>
|
121
134
|
<usage_type>test</usage_type>
|
122
|
-
<checksum>
|
135
|
+
<checksum>B4A7376B</checksum>
|
123
136
|
</file>
|
124
137
|
<file>
|
125
138
|
<version>
|
@@ -130,7 +143,13 @@
|
|
130
143
|
<filename>measure.rb</filename>
|
131
144
|
<filetype>rb</filetype>
|
132
145
|
<usage_type>script</usage_type>
|
133
|
-
<checksum>
|
146
|
+
<checksum>791A977E</checksum>
|
147
|
+
</file>
|
148
|
+
<file>
|
149
|
+
<filename>README.md</filename>
|
150
|
+
<filetype>md</filetype>
|
151
|
+
<usage_type>readme</usage_type>
|
152
|
+
<checksum>74F54DC5</checksum>
|
134
153
|
</file>
|
135
154
|
</files>
|
136
155
|
</measure>
|
@@ -1,27 +1,37 @@
|
|
1
|
-
URBANopt
|
1
|
+
URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
2
2
|
contributors. All rights reserved.
|
3
3
|
|
4
|
-
Redistribution and use in source and binary forms, with or without modification,
|
4
|
+
Redistribution and use in source and binary forms, with or without modification,
|
5
5
|
are permitted provided that the following conditions are met:
|
6
6
|
|
7
|
-
Redistributions of source code must retain the above copyright notice, this list
|
7
|
+
Redistributions of source code must retain the above copyright notice, this list
|
8
8
|
of conditions and the following disclaimer.
|
9
9
|
|
10
|
-
Redistributions in binary form must reproduce the above copyright notice, this
|
11
|
-
list of conditions and the following disclaimer in the documentation and/or other
|
10
|
+
Redistributions in binary form must reproduce the above copyright notice, this
|
11
|
+
list of conditions and the following disclaimer in the documentation and/or other
|
12
12
|
materials provided with the distribution.
|
13
|
-
|
14
|
-
Neither the name of the copyright holder nor the names of its contributors may be
|
15
|
-
used to endorse or promote products derived from this software without specific
|
13
|
+
|
14
|
+
Neither the name of the copyright holder nor the names of its contributors may be
|
15
|
+
used to endorse or promote products derived from this software without specific
|
16
16
|
prior written permission.
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
18
|
+
Redistribution of this software, without modification, must refer to the software
|
19
|
+
by the same designation. Redistribution of a modified version of this software
|
20
|
+
(i) may not refer to the modified version by the same designation, or by any
|
21
|
+
confusingly similar designation, and (ii) must refer to the underlying software
|
22
|
+
originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
23
|
+
the term “URBANopt”, or any confusingly similar designation may not be used to
|
24
|
+
refer to any modified version of this software or any modified version of the
|
25
|
+
underlying software originally provided by Alliance without the prior written
|
26
|
+
consent of Alliance.
|
27
|
+
|
28
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
29
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
30
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
31
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
32
|
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
33
|
+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
34
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
35
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
36
|
+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
27
37
|
OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -1,23 +1,33 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *********************************************************************************
|
4
|
-
# URBANopt
|
4
|
+
# URBANopt™, Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
|
5
5
|
# contributors. All rights reserved.
|
6
|
-
|
6
|
+
|
7
7
|
# Redistribution and use in source and binary forms, with or without modification,
|
8
8
|
# are permitted provided that the following conditions are met:
|
9
|
-
|
9
|
+
|
10
10
|
# Redistributions of source code must retain the above copyright notice, this list
|
11
11
|
# of conditions and the following disclaimer.
|
12
|
-
|
12
|
+
|
13
13
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
14
14
|
# list of conditions and the following disclaimer in the documentation and/or other
|
15
15
|
# materials provided with the distribution.
|
16
|
-
|
16
|
+
|
17
17
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
18
18
|
# used to endorse or promote products derived from this software without specific
|
19
19
|
# prior written permission.
|
20
|
-
|
20
|
+
|
21
|
+
# Redistribution of this software, without modification, must refer to the software
|
22
|
+
# by the same designation. Redistribution of a modified version of this software
|
23
|
+
# (i) may not refer to the modified version by the same designation, or by any
|
24
|
+
# confusingly similar designation, and (ii) must refer to the underlying software
|
25
|
+
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
26
|
+
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
27
|
+
# refer to any modified version of this software or any modified version of the
|
28
|
+
# underlying software originally provided by Alliance without the prior written
|
29
|
+
# consent of Alliance.
|
30
|
+
|
21
31
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
22
32
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
23
33
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -83,9 +93,7 @@ class UrbanGeometryCreationZoning < OpenStudio::Measure::ModelMeasure
|
|
83
93
|
end
|
84
94
|
|
85
95
|
# define what happens when the measure is run
|
86
|
-
# rubocop:disable Metrics/AbcSize
|
87
96
|
def run(model, runner, user_arguments)
|
88
|
-
# rubocop:enable Metrics/AbcSize
|
89
97
|
super(model, runner, user_arguments)
|
90
98
|
# use the built-in error checking
|
91
99
|
if !runner.validateUserArguments(arguments(model), user_arguments)
|
@@ -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>0c0d1135-a50f-40c6-82fb-fc357e46dd02</version_id>
|
7
|
+
<version_modified>20201208T232103Z</version_modified>
|
8
8
|
<xml_checksum>D254E772</xml_checksum>
|
9
9
|
<class_name>UrbanGeometryCreationZoning</class_name>
|
10
10
|
<display_name>UrbanGeometryCreationZoning</display_name>
|
@@ -101,13 +101,7 @@
|
|
101
101
|
<filename>LICENSE.md</filename>
|
102
102
|
<filetype>md</filetype>
|
103
103
|
<usage_type>license</usage_type>
|
104
|
-
<checksum>
|
105
|
-
</file>
|
106
|
-
<file>
|
107
|
-
<filename>README.md</filename>
|
108
|
-
<filetype>md</filetype>
|
109
|
-
<usage_type>readme</usage_type>
|
110
|
-
<checksum>0458EE16</checksum>
|
104
|
+
<checksum>D8541540</checksum>
|
111
105
|
</file>
|
112
106
|
<file>
|
113
107
|
<version>
|
@@ -118,13 +112,19 @@
|
|
118
112
|
<filename>measure.rb</filename>
|
119
113
|
<filetype>rb</filetype>
|
120
114
|
<usage_type>script</usage_type>
|
121
|
-
<checksum>
|
115
|
+
<checksum>3E6D4653</checksum>
|
122
116
|
</file>
|
123
117
|
<file>
|
124
118
|
<filename>urban_geometry_creation_zoning_test.rb</filename>
|
125
119
|
<filetype>rb</filetype>
|
126
120
|
<usage_type>test</usage_type>
|
127
|
-
<checksum>
|
121
|
+
<checksum>D609CD4C</checksum>
|
122
|
+
</file>
|
123
|
+
<file>
|
124
|
+
<filename>README.md</filename>
|
125
|
+
<filetype>md</filetype>
|
126
|
+
<usage_type>readme</usage_type>
|
127
|
+
<checksum>0458EE16</checksum>
|
128
128
|
</file>
|
129
129
|
</files>
|
130
130
|
</measure>
|
data/lib/urbanopt-geojson.rb
CHANGED
@@ -1,21 +1,31 @@
|
|
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
|
+
# 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.
|