urbanopt-geojson 0.9.0 → 0.11.0
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/workflows/nightly_build.yml +19 -16
 - data/CHANGELOG.md +20 -0
 - data/CONTRIBUTING.md +2 -2
 - data/Gemfile +10 -5
 - data/LICENSE.md +16 -11
 - data/README.md +2 -1
 - data/Rakefile +2 -37
 - data/doc_templates/LICENSE.md +16 -11
 - data/doc_templates/copyright_erb.txt +2 -37
 - data/doc_templates/copyright_js.txt +2 -2
 - data/doc_templates/copyright_ruby.txt +2 -37
 - data/docs/package-lock.json +3967 -3489
 - data/lib/measures/.rubocop.yml +2 -1
 - data/lib/measures/urban_geometry_creation/LICENSE.md +16 -11
 - data/lib/measures/urban_geometry_creation/README.md +1 -1
 - data/lib/measures/urban_geometry_creation/measure.rb +7 -41
 - data/lib/measures/urban_geometry_creation/measure.xml +29 -29
 - data/lib/measures/urban_geometry_creation_zoning/LICENSE.md +16 -11
 - data/lib/measures/urban_geometry_creation_zoning/measure.rb +2 -37
 - data/lib/measures/urban_geometry_creation_zoning/measure.xml +21 -27
 - data/lib/urbanopt/geojson/building.rb +2 -37
 - data/lib/urbanopt/geojson/derived_extension.rb +2 -37
 - data/lib/urbanopt/geojson/district_system.rb +2 -37
 - data/lib/urbanopt/geojson/feature.rb +3 -38
 - data/lib/urbanopt/geojson/geo_file.rb +6 -38
 - data/lib/urbanopt/geojson/helper.rb +2 -37
 - data/lib/urbanopt/geojson/logging.rb +2 -37
 - data/lib/urbanopt/geojson/mapper_classes.rb +2 -37
 - data/lib/urbanopt/geojson/model.rb +2 -37
 - data/lib/urbanopt/geojson/region.rb +2 -37
 - data/lib/urbanopt/geojson/scale_area.rb +2 -37
 - data/lib/urbanopt/geojson/schema/district_system_properties.json +5 -4
 - data/lib/urbanopt/geojson/schema/thermal_connector_properties.json +6 -8
 - data/lib/urbanopt/geojson/schema/thermal_junction_properties.json +7 -4
 - data/lib/urbanopt/geojson/update_areas.rb +2 -37
 - data/lib/urbanopt/geojson/validate_geojson.rb +2 -37
 - data/lib/urbanopt/geojson/version.rb +3 -38
 - data/lib/urbanopt/geojson/zoning.rb +2 -37
 - data/lib/urbanopt/geojson.rb +2 -38
 - data/lib/urbanopt-geojson.rb +2 -37
 - data/package-lock.json +4706 -1
 - data/urbanopt-geojson-gem.gemspec +1 -1
 - metadata +4 -5
 - data/Jenkinsfile +0 -10
 
    
        data/lib/measures/.rubocop.yml
    CHANGED
    
    
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            URBANopt 
     | 
| 
      
 1 
     | 
    
         
            +
            URBANopt (tm), Copyright (c) 2019-2023, Alliance for Sustainable Energy, LLC, and other
         
     | 
| 
       2 
2 
     | 
    
         
             
            contributors. All rights reserved.
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            Redistribution and use in source and binary forms, with or without modification,
         
     | 
| 
         @@ -25,13 +25,18 @@ refer to any modified version of this software or any modified version of the 
     | 
|
| 
       25 
25 
     | 
    
         
             
            underlying software originally provided by Alliance without the prior written
         
     | 
| 
       26 
26 
     | 
    
         
             
            consent of Alliance.
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
            OF  
     | 
| 
      
 28 
     | 
    
         
            +
            The name of the copyright holder(s), any contributors, the United States Government,
         
     | 
| 
      
 29 
     | 
    
         
            +
            the United States Department of Energy, or any of their employees may not be used to
         
     | 
| 
      
 30 
     | 
    
         
            +
            endorse or promote products derived from this software without specific prior written
         
     | 
| 
      
 31 
     | 
    
         
            +
            permission from the respective party.
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
            THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND
         
     | 
| 
      
 34 
     | 
    
         
            +
            ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
         
     | 
| 
      
 35 
     | 
    
         
            +
            OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
         
     | 
| 
      
 36 
     | 
    
         
            +
            THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED
         
     | 
| 
      
 37 
     | 
    
         
            +
            STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT,
         
     | 
| 
      
 38 
     | 
    
         
            +
            INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
         
     | 
| 
      
 39 
     | 
    
         
            +
            LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
         
     | 
| 
      
 40 
     | 
    
         
            +
            OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
         
     | 
| 
      
 41 
     | 
    
         
            +
            CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
         
     | 
| 
      
 42 
     | 
    
         
            +
            WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
         
     | 
| 
         @@ -43,7 +43,7 @@ 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 
     | 
| 
      
 46 
     | 
    
         
            +
            ### Scale Footprint Area by the Floor Area
         
     | 
| 
       47 
47 
     | 
    
         
             
            If true, the footprint area from GeoJSON will be scaled by the floor_area provided by the user in URBANopt.
         
     | 
| 
       48 
48 
     | 
    
         
             
            **Name:** scale_footprint_area_by_floor_area,
         
     | 
| 
       49 
49 
     | 
    
         
             
            **Type:** Boolean,
         
     | 
| 
         @@ -1,43 +1,8 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # frozen_string_literal: true
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            # *********************************************************************************
         
     | 
| 
       4 
     | 
    
         
            -
            # URBANopt 
     | 
| 
       5 
     | 
    
         
            -
            #  
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            # Redistribution and use in source and binary forms, with or without modification,
         
     | 
| 
       8 
     | 
    
         
            -
            # are permitted provided that the following conditions are met:
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
            # Redistributions of source code must retain the above copyright notice, this list
         
     | 
| 
       11 
     | 
    
         
            -
            # of conditions and the following disclaimer.
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
            # Redistributions in binary form must reproduce the above copyright notice, this
         
     | 
| 
       14 
     | 
    
         
            -
            # list of conditions and the following disclaimer in the documentation and/or other
         
     | 
| 
       15 
     | 
    
         
            -
            # materials provided with the distribution.
         
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
            # Neither the name of the copyright holder nor the names of its contributors may be
         
     | 
| 
       18 
     | 
    
         
            -
            # used to endorse or promote products derived from this software without specific
         
     | 
| 
       19 
     | 
    
         
            -
            # prior written permission.
         
     | 
| 
       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 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
            # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
         
     | 
| 
       32 
     | 
    
         
            -
            # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
         
     | 
| 
       33 
     | 
    
         
            -
            # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
         
     | 
| 
       34 
     | 
    
         
            -
            # IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
         
     | 
| 
       35 
     | 
    
         
            -
            # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
         
     | 
| 
       36 
     | 
    
         
            -
            # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
         
     | 
| 
       37 
     | 
    
         
            -
            # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
         
     | 
| 
       38 
     | 
    
         
            -
            # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
         
     | 
| 
       39 
     | 
    
         
            -
            # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
         
     | 
| 
       40 
     | 
    
         
            -
            # OF THE POSSIBILITY OF SUCH DAMAGE.
         
     | 
| 
      
 4 
     | 
    
         
            +
            # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
         
     | 
| 
      
 5 
     | 
    
         
            +
            # See also https://github.com/urbanopt/urbanopt-geojson-gem/blob/develop/LICENSE.md
         
     | 
| 
       41 
6 
     | 
    
         
             
            # *********************************************************************************
         
     | 
| 
       42 
7 
     | 
    
         | 
| 
       43 
8 
     | 
    
         
             
            require 'json'
         
     | 
| 
         @@ -86,8 +51,8 @@ class UrbanGeometryCreation < OpenStudio::Measure::ModelMeasure 
     | 
|
| 
       86 
51 
     | 
    
         
             
                surrounding_buildings.setDefaultValue('ShadingOnly')
         
     | 
| 
       87 
52 
     | 
    
         
             
                args << surrounding_buildings
         
     | 
| 
       88 
53 
     | 
    
         
             
                # not a required argument
         
     | 
| 
       89 
     | 
    
         
            -
                scale_footprint_area_by_floor_area = OpenStudio:: 
     | 
| 
       90 
     | 
    
         
            -
                scale_footprint_area_by_floor_area.setDisplayName('Scale Footprint Area by the Floor Area 
     | 
| 
      
 54 
     | 
    
         
            +
                scale_footprint_area_by_floor_area = OpenStudio::Measure::OSArgument.makeBoolArgument('scale_footprint_area_by_floor_area', false)
         
     | 
| 
      
 55 
     | 
    
         
            +
                scale_footprint_area_by_floor_area.setDisplayName('Scale Footprint Area by the Floor Area')
         
     | 
| 
       91 
56 
     | 
    
         
             
                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 
57 
     | 
    
         
             
                scale_footprint_area_by_floor_area.setDefaultValue(false)
         
     | 
| 
       93 
58 
     | 
    
         
             
                args << scale_footprint_area_by_floor_area
         
     | 
| 
         @@ -148,7 +113,8 @@ class UrbanGeometryCreation < OpenStudio::Measure::ModelMeasure 
     | 
|
| 
       148 
113 
     | 
    
         
             
                  @runner.registerWarning("Surface elevation not set for building '#{name}'")
         
     | 
| 
       149 
114 
     | 
    
         
             
                end
         
     | 
| 
       150 
115 
     | 
    
         | 
| 
       151 
     | 
    
         
            -
                 
     | 
| 
      
 116 
     | 
    
         
            +
                case feature.type
         
     | 
| 
      
 117 
     | 
    
         
            +
                when 'Building'
         
     | 
| 
       152 
118 
     | 
    
         
             
                  # make requested building
         
     | 
| 
       153 
119 
     | 
    
         
             
                  # pass in scaled_footprint_area (calculated from floor_area / number_of_stories)
         
     | 
| 
       154 
120 
     | 
    
         
             
                  scaled_footprint_area = 0
         
     | 
| 
         @@ -205,7 +171,7 @@ class UrbanGeometryCreation < OpenStudio::Measure::ModelMeasure 
     | 
|
| 
       205 
171 
     | 
    
         
             
                    URBANopt::GeoJSON::Helper.convert_to_shading_surface_group(space)
         
     | 
| 
       206 
172 
     | 
    
         
             
                  end
         
     | 
| 
       207 
173 
     | 
    
         | 
| 
       208 
     | 
    
         
            -
                 
     | 
| 
      
 174 
     | 
    
         
            +
                when 'District System'
         
     | 
| 
       209 
175 
     | 
    
         
             
                  district_system_type = feature[:properties][:district_system_type]
         
     | 
| 
       210 
176 
     | 
    
         
             
                  if district_system_type == 'Community Photovoltaic'
         
     | 
| 
       211 
177 
     | 
    
         
             
                    shading_surfaces = URBANopt::GeoJSON::Helper.create_photovoltaics(feature, 0, model, @origin_lat_lon, @runner)
         
     | 
| 
         @@ -1,10 +1,10 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            <?xml version="1.0"?>
         
     | 
| 
       2 
2 
     | 
    
         
             
            <measure>
         
     | 
| 
       3 
     | 
    
         
            -
              <schema_version>3. 
     | 
| 
      
 3 
     | 
    
         
            +
              <schema_version>3.1</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>583499fb-4275-4787-9168-e3383dca0fc6</version_id>
         
     | 
| 
      
 7 
     | 
    
         
            +
              <version_modified>2023-11-20T17:10:01Z</version_modified>
         
     | 
| 
       8 
8 
     | 
    
         
             
              <xml_checksum>D254E772</xml_checksum>
         
     | 
| 
       9 
9 
     | 
    
         
             
              <class_name>UrbanGeometryCreation</class_name>
         
     | 
| 
       10 
10 
     | 
    
         
             
              <display_name>UrbanGeometryCreation</display_name>
         
     | 
| 
         @@ -48,7 +48,7 @@ 
     | 
|
| 
       48 
48 
     | 
    
         
             
                </argument>
         
     | 
| 
       49 
49 
     | 
    
         
             
                <argument>
         
     | 
| 
       50 
50 
     | 
    
         
             
                  <name>scale_footprint_area_by_floor_area</name>
         
     | 
| 
       51 
     | 
    
         
            -
                  <display_name>Scale Footprint Area by the Floor Area 
     | 
| 
      
 51 
     | 
    
         
            +
                  <display_name>Scale Footprint Area by the Floor Area</display_name>
         
     | 
| 
       52 
52 
     | 
    
         
             
                  <description>If true, the footprint area from GeoJSON will be scaled by the floor_area provided by the user in URBANopt.</description>
         
     | 
| 
       53 
53 
     | 
    
         
             
                  <type>Boolean</type>
         
     | 
| 
       54 
54 
     | 
    
         
             
                  <required>false</required>
         
     | 
| 
         @@ -104,52 +104,52 @@ 
     | 
|
| 
       104 
104 
     | 
    
         
             
                </attribute>
         
     | 
| 
       105 
105 
     | 
    
         
             
              </attributes>
         
     | 
| 
       106 
106 
     | 
    
         
             
              <files>
         
     | 
| 
      
 107 
     | 
    
         
            +
                <file>
         
     | 
| 
      
 108 
     | 
    
         
            +
                  <filename>LICENSE.md</filename>
         
     | 
| 
      
 109 
     | 
    
         
            +
                  <filetype>md</filetype>
         
     | 
| 
      
 110 
     | 
    
         
            +
                  <usage_type>license</usage_type>
         
     | 
| 
      
 111 
     | 
    
         
            +
                  <checksum>9A4578CE</checksum>
         
     | 
| 
      
 112 
     | 
    
         
            +
                </file>
         
     | 
| 
      
 113 
     | 
    
         
            +
                <file>
         
     | 
| 
      
 114 
     | 
    
         
            +
                  <filename>README.md</filename>
         
     | 
| 
      
 115 
     | 
    
         
            +
                  <filetype>md</filetype>
         
     | 
| 
      
 116 
     | 
    
         
            +
                  <usage_type>readme</usage_type>
         
     | 
| 
      
 117 
     | 
    
         
            +
                  <checksum>AA2D38B0</checksum>
         
     | 
| 
      
 118 
     | 
    
         
            +
                </file>
         
     | 
| 
       107 
119 
     | 
    
         
             
                <file>
         
     | 
| 
       108 
120 
     | 
    
         
             
                  <filename>README.md.erb</filename>
         
     | 
| 
       109 
121 
     | 
    
         
             
                  <filetype>erb</filetype>
         
     | 
| 
       110 
122 
     | 
    
         
             
                  <usage_type>readmeerb</usage_type>
         
     | 
| 
       111 
123 
     | 
    
         
             
                  <checksum>703C9964</checksum>
         
     | 
| 
       112 
124 
     | 
    
         
             
                </file>
         
     | 
| 
      
 125 
     | 
    
         
            +
                <file>
         
     | 
| 
      
 126 
     | 
    
         
            +
                  <version>
         
     | 
| 
      
 127 
     | 
    
         
            +
                    <software_program>OpenStudio</software_program>
         
     | 
| 
      
 128 
     | 
    
         
            +
                    <identifier>1.9.0</identifier>
         
     | 
| 
      
 129 
     | 
    
         
            +
                    <min_compatible>1.9.0</min_compatible>
         
     | 
| 
      
 130 
     | 
    
         
            +
                  </version>
         
     | 
| 
      
 131 
     | 
    
         
            +
                  <filename>measure.rb</filename>
         
     | 
| 
      
 132 
     | 
    
         
            +
                  <filetype>rb</filetype>
         
     | 
| 
      
 133 
     | 
    
         
            +
                  <usage_type>script</usage_type>
         
     | 
| 
      
 134 
     | 
    
         
            +
                  <checksum>5D490083</checksum>
         
     | 
| 
      
 135 
     | 
    
         
            +
                </file>
         
     | 
| 
       113 
136 
     | 
    
         
             
                <file>
         
     | 
| 
       114 
137 
     | 
    
         
             
                  <filename>nrel_stm_footprints.geojson</filename>
         
     | 
| 
       115 
138 
     | 
    
         
             
                  <filetype>geojson</filetype>
         
     | 
| 
       116 
139 
     | 
    
         
             
                  <usage_type>test</usage_type>
         
     | 
| 
       117 
140 
     | 
    
         
             
                  <checksum>40290298</checksum>
         
     | 
| 
       118 
141 
     | 
    
         
             
                </file>
         
     | 
| 
       119 
     | 
    
         
            -
                <file>
         
     | 
| 
       120 
     | 
    
         
            -
                  <filename>README.md</filename>
         
     | 
| 
       121 
     | 
    
         
            -
                  <filetype>md</filetype>
         
     | 
| 
       122 
     | 
    
         
            -
                  <usage_type>readme</usage_type>
         
     | 
| 
       123 
     | 
    
         
            -
                  <checksum>74F54DC5</checksum>
         
     | 
| 
       124 
     | 
    
         
            -
                </file>
         
     | 
| 
       125 
     | 
    
         
            -
                <file>
         
     | 
| 
       126 
     | 
    
         
            -
                  <filename>LICENSE.md</filename>
         
     | 
| 
       127 
     | 
    
         
            -
                  <filetype>md</filetype>
         
     | 
| 
       128 
     | 
    
         
            -
                  <usage_type>license</usage_type>
         
     | 
| 
       129 
     | 
    
         
            -
                  <checksum>03523BF4</checksum>
         
     | 
| 
       130 
     | 
    
         
            -
                </file>
         
     | 
| 
       131 
142 
     | 
    
         
             
                <file>
         
     | 
| 
       132 
143 
     | 
    
         
             
                  <filename>shadowed_tests.rb</filename>
         
     | 
| 
       133 
144 
     | 
    
         
             
                  <filetype>rb</filetype>
         
     | 
| 
       134 
145 
     | 
    
         
             
                  <usage_type>test</usage_type>
         
     | 
| 
       135 
     | 
    
         
            -
                  <checksum> 
     | 
| 
      
 146 
     | 
    
         
            +
                  <checksum>6F2F2CA8</checksum>
         
     | 
| 
       136 
147 
     | 
    
         
             
                </file>
         
     | 
| 
       137 
148 
     | 
    
         
             
                <file>
         
     | 
| 
       138 
149 
     | 
    
         
             
                  <filename>urban_geometry_creation_test.rb</filename>
         
     | 
| 
       139 
150 
     | 
    
         
             
                  <filetype>rb</filetype>
         
     | 
| 
       140 
151 
     | 
    
         
             
                  <usage_type>test</usage_type>
         
     | 
| 
       141 
     | 
    
         
            -
                  <checksum> 
     | 
| 
       142 
     | 
    
         
            -
                </file>
         
     | 
| 
       143 
     | 
    
         
            -
                <file>
         
     | 
| 
       144 
     | 
    
         
            -
                  <version>
         
     | 
| 
       145 
     | 
    
         
            -
                    <software_program>OpenStudio</software_program>
         
     | 
| 
       146 
     | 
    
         
            -
                    <identifier>1.9.0</identifier>
         
     | 
| 
       147 
     | 
    
         
            -
                    <min_compatible>1.9.0</min_compatible>
         
     | 
| 
       148 
     | 
    
         
            -
                  </version>
         
     | 
| 
       149 
     | 
    
         
            -
                  <filename>measure.rb</filename>
         
     | 
| 
       150 
     | 
    
         
            -
                  <filetype>rb</filetype>
         
     | 
| 
       151 
     | 
    
         
            -
                  <usage_type>script</usage_type>
         
     | 
| 
       152 
     | 
    
         
            -
                  <checksum>3667C98F</checksum>
         
     | 
| 
      
 152 
     | 
    
         
            +
                  <checksum>81FF63D2</checksum>
         
     | 
| 
       153 
153 
     | 
    
         
             
                </file>
         
     | 
| 
       154 
154 
     | 
    
         
             
              </files>
         
     | 
| 
       155 
155 
     | 
    
         
             
            </measure>
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            URBANopt 
     | 
| 
      
 1 
     | 
    
         
            +
            URBANopt (tm), Copyright (c) 2019-2023, Alliance for Sustainable Energy, LLC, and other
         
     | 
| 
       2 
2 
     | 
    
         
             
            contributors. All rights reserved.
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            Redistribution and use in source and binary forms, with or without modification,
         
     | 
| 
         @@ -25,13 +25,18 @@ refer to any modified version of this software or any modified version of the 
     | 
|
| 
       25 
25 
     | 
    
         
             
            underlying software originally provided by Alliance without the prior written
         
     | 
| 
       26 
26 
     | 
    
         
             
            consent of Alliance.
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
            OF  
     | 
| 
      
 28 
     | 
    
         
            +
            The name of the copyright holder(s), any contributors, the United States Government,
         
     | 
| 
      
 29 
     | 
    
         
            +
            the United States Department of Energy, or any of their employees may not be used to
         
     | 
| 
      
 30 
     | 
    
         
            +
            endorse or promote products derived from this software without specific prior written
         
     | 
| 
      
 31 
     | 
    
         
            +
            permission from the respective party.
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
            THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND
         
     | 
| 
      
 34 
     | 
    
         
            +
            ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
         
     | 
| 
      
 35 
     | 
    
         
            +
            OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
         
     | 
| 
      
 36 
     | 
    
         
            +
            THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED
         
     | 
| 
      
 37 
     | 
    
         
            +
            STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT,
         
     | 
| 
      
 38 
     | 
    
         
            +
            INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
         
     | 
| 
      
 39 
     | 
    
         
            +
            LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
         
     | 
| 
      
 40 
     | 
    
         
            +
            OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
         
     | 
| 
      
 41 
     | 
    
         
            +
            CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
         
     | 
| 
      
 42 
     | 
    
         
            +
            WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
         
     | 
| 
         @@ -1,43 +1,8 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # frozen_string_literal: true
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            # *********************************************************************************
         
     | 
| 
       4 
     | 
    
         
            -
            # URBANopt 
     | 
| 
       5 
     | 
    
         
            -
            #  
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            # Redistribution and use in source and binary forms, with or without modification,
         
     | 
| 
       8 
     | 
    
         
            -
            # are permitted provided that the following conditions are met:
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
            # Redistributions of source code must retain the above copyright notice, this list
         
     | 
| 
       11 
     | 
    
         
            -
            # of conditions and the following disclaimer.
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
            # Redistributions in binary form must reproduce the above copyright notice, this
         
     | 
| 
       14 
     | 
    
         
            -
            # list of conditions and the following disclaimer in the documentation and/or other
         
     | 
| 
       15 
     | 
    
         
            -
            # materials provided with the distribution.
         
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
            # Neither the name of the copyright holder nor the names of its contributors may be
         
     | 
| 
       18 
     | 
    
         
            -
            # used to endorse or promote products derived from this software without specific
         
     | 
| 
       19 
     | 
    
         
            -
            # prior written permission.
         
     | 
| 
       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 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
            # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
         
     | 
| 
       32 
     | 
    
         
            -
            # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
         
     | 
| 
       33 
     | 
    
         
            -
            # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
         
     | 
| 
       34 
     | 
    
         
            -
            # IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
         
     | 
| 
       35 
     | 
    
         
            -
            # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
         
     | 
| 
       36 
     | 
    
         
            -
            # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
         
     | 
| 
       37 
     | 
    
         
            -
            # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
         
     | 
| 
       38 
     | 
    
         
            -
            # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
         
     | 
| 
       39 
     | 
    
         
            -
            # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
         
     | 
| 
       40 
     | 
    
         
            -
            # OF THE POSSIBILITY OF SUCH DAMAGE.
         
     | 
| 
      
 4 
     | 
    
         
            +
            # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
         
     | 
| 
      
 5 
     | 
    
         
            +
            # See also https://github.com/urbanopt/urbanopt-geojson-gem/blob/develop/LICENSE.md
         
     | 
| 
       41 
6 
     | 
    
         
             
            # *********************************************************************************
         
     | 
| 
       42 
7 
     | 
    
         | 
| 
       43 
8 
     | 
    
         
             
            # see the URL below for information on how to write OpenStudio measures
         
     | 
| 
         @@ -1,10 +1,10 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            <?xml version="1.0"?>
         
     | 
| 
       2 
2 
     | 
    
         
             
            <measure>
         
     | 
| 
       3 
     | 
    
         
            -
              <schema_version>3. 
     | 
| 
      
 3 
     | 
    
         
            +
              <schema_version>3.1</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>4d47bb3f-6e49-4309-a4e0-5f2c3748b947</version_id>
         
     | 
| 
      
 7 
     | 
    
         
            +
              <version_modified>2023-11-20T17:10:01Z</version_modified>
         
     | 
| 
       8 
8 
     | 
    
         
             
              <xml_checksum>D254E772</xml_checksum>
         
     | 
| 
       9 
9 
     | 
    
         
             
              <class_name>UrbanGeometryCreationZoning</class_name>
         
     | 
| 
       10 
10 
     | 
    
         
             
              <display_name>UrbanGeometryCreationZoning</display_name>
         
     | 
| 
         @@ -86,16 +86,10 @@ 
     | 
|
| 
       86 
86 
     | 
    
         
             
              </attributes>
         
     | 
| 
       87 
87 
     | 
    
         
             
              <files>
         
     | 
| 
       88 
88 
     | 
    
         
             
                <file>
         
     | 
| 
       89 
     | 
    
         
            -
                  <filename> 
     | 
| 
       90 
     | 
    
         
            -
                  <filetype> 
     | 
| 
       91 
     | 
    
         
            -
                  <usage_type> 
     | 
| 
       92 
     | 
    
         
            -
                  <checksum> 
     | 
| 
       93 
     | 
    
         
            -
                </file>
         
     | 
| 
       94 
     | 
    
         
            -
                <file>
         
     | 
| 
       95 
     | 
    
         
            -
                  <filename>nrel_stm_footprints.geojson</filename>
         
     | 
| 
       96 
     | 
    
         
            -
                  <filetype>geojson</filetype>
         
     | 
| 
       97 
     | 
    
         
            -
                  <usage_type>test</usage_type>
         
     | 
| 
       98 
     | 
    
         
            -
                  <checksum>40290298</checksum>
         
     | 
| 
      
 89 
     | 
    
         
            +
                  <filename>LICENSE.md</filename>
         
     | 
| 
      
 90 
     | 
    
         
            +
                  <filetype>md</filetype>
         
     | 
| 
      
 91 
     | 
    
         
            +
                  <usage_type>license</usage_type>
         
     | 
| 
      
 92 
     | 
    
         
            +
                  <checksum>9A4578CE</checksum>
         
     | 
| 
       99 
93 
     | 
    
         
             
                </file>
         
     | 
| 
       100 
94 
     | 
    
         
             
                <file>
         
     | 
| 
       101 
95 
     | 
    
         
             
                  <filename>README.md</filename>
         
     | 
| 
         @@ -104,10 +98,10 @@ 
     | 
|
| 
       104 
98 
     | 
    
         
             
                  <checksum>0458EE16</checksum>
         
     | 
| 
       105 
99 
     | 
    
         
             
                </file>
         
     | 
| 
       106 
100 
     | 
    
         
             
                <file>
         
     | 
| 
       107 
     | 
    
         
            -
                  <filename> 
     | 
| 
       108 
     | 
    
         
            -
                  <filetype> 
     | 
| 
       109 
     | 
    
         
            -
                  <usage_type> 
     | 
| 
       110 
     | 
    
         
            -
                  <checksum> 
     | 
| 
      
 101 
     | 
    
         
            +
                  <filename>README.md.erb</filename>
         
     | 
| 
      
 102 
     | 
    
         
            +
                  <filetype>erb</filetype>
         
     | 
| 
      
 103 
     | 
    
         
            +
                  <usage_type>readmeerb</usage_type>
         
     | 
| 
      
 104 
     | 
    
         
            +
                  <checksum>703C9964</checksum>
         
     | 
| 
       111 
105 
     | 
    
         
             
                </file>
         
     | 
| 
       112 
106 
     | 
    
         
             
                <file>
         
     | 
| 
       113 
107 
     | 
    
         
             
                  <version>
         
     | 
| 
         @@ -118,13 +112,13 @@ 
     | 
|
| 
       118 
112 
     | 
    
         
             
                  <filename>measure.rb</filename>
         
     | 
| 
       119 
113 
     | 
    
         
             
                  <filetype>rb</filetype>
         
     | 
| 
       120 
114 
     | 
    
         
             
                  <usage_type>script</usage_type>
         
     | 
| 
       121 
     | 
    
         
            -
                  <checksum> 
     | 
| 
      
 115 
     | 
    
         
            +
                  <checksum>5827BCFA</checksum>
         
     | 
| 
       122 
116 
     | 
    
         
             
                </file>
         
     | 
| 
       123 
117 
     | 
    
         
             
                <file>
         
     | 
| 
       124 
     | 
    
         
            -
                  <filename> 
     | 
| 
       125 
     | 
    
         
            -
                  <filetype> 
     | 
| 
      
 118 
     | 
    
         
            +
                  <filename>OV_Buildings_Update_090420_res_eui_test.json</filename>
         
     | 
| 
      
 119 
     | 
    
         
            +
                  <filetype>json</filetype>
         
     | 
| 
       126 
120 
     | 
    
         
             
                  <usage_type>test</usage_type>
         
     | 
| 
       127 
     | 
    
         
            -
                  <checksum> 
     | 
| 
      
 121 
     | 
    
         
            +
                  <checksum>F611B1E8</checksum>
         
     | 
| 
       128 
122 
     | 
    
         
             
                </file>
         
     | 
| 
       129 
123 
     | 
    
         
             
                <file>
         
     | 
| 
       130 
124 
     | 
    
         
             
                  <filename>example_project_combined.json</filename>
         
     | 
| 
         @@ -133,16 +127,16 @@ 
     | 
|
| 
       133 
127 
     | 
    
         
             
                  <checksum>9BC47B41</checksum>
         
     | 
| 
       134 
128 
     | 
    
         
             
                </file>
         
     | 
| 
       135 
129 
     | 
    
         
             
                <file>
         
     | 
| 
       136 
     | 
    
         
            -
                  <filename> 
     | 
| 
       137 
     | 
    
         
            -
                  <filetype> 
     | 
| 
      
 130 
     | 
    
         
            +
                  <filename>nrel_stm_footprints.geojson</filename>
         
     | 
| 
      
 131 
     | 
    
         
            +
                  <filetype>geojson</filetype>
         
     | 
| 
       138 
132 
     | 
    
         
             
                  <usage_type>test</usage_type>
         
     | 
| 
       139 
     | 
    
         
            -
                  <checksum> 
     | 
| 
      
 133 
     | 
    
         
            +
                  <checksum>40290298</checksum>
         
     | 
| 
       140 
134 
     | 
    
         
             
                </file>
         
     | 
| 
       141 
135 
     | 
    
         
             
                <file>
         
     | 
| 
       142 
     | 
    
         
            -
                  <filename> 
     | 
| 
       143 
     | 
    
         
            -
                  <filetype> 
     | 
| 
      
 136 
     | 
    
         
            +
                  <filename>urban_geometry_creation_zoning_test.rb</filename>
         
     | 
| 
      
 137 
     | 
    
         
            +
                  <filetype>rb</filetype>
         
     | 
| 
       144 
138 
     | 
    
         
             
                  <usage_type>test</usage_type>
         
     | 
| 
       145 
     | 
    
         
            -
                  <checksum> 
     | 
| 
      
 139 
     | 
    
         
            +
                  <checksum>FC65E7CE</checksum>
         
     | 
| 
       146 
140 
     | 
    
         
             
                </file>
         
     | 
| 
       147 
141 
     | 
    
         
             
              </files>
         
     | 
| 
       148 
142 
     | 
    
         
             
            </measure>
         
     | 
| 
         @@ -1,41 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # *********************************************************************************
         
     | 
| 
       2 
     | 
    
         
            -
            # URBANopt 
     | 
| 
       3 
     | 
    
         
            -
            #  
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            # Redistribution and use in source and binary forms, with or without modification,
         
     | 
| 
       6 
     | 
    
         
            -
            # are permitted provided that the following conditions are met:
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
            # Redistributions of source code must retain the above copyright notice, this list
         
     | 
| 
       9 
     | 
    
         
            -
            # of conditions and the following disclaimer.
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
            # Redistributions in binary form must reproduce the above copyright notice, this
         
     | 
| 
       12 
     | 
    
         
            -
            # list of conditions and the following disclaimer in the documentation and/or other
         
     | 
| 
       13 
     | 
    
         
            -
            # materials provided with the distribution.
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            # Neither the name of the copyright holder nor the names of its contributors may be
         
     | 
| 
       16 
     | 
    
         
            -
            # used to endorse or promote products derived from this software without specific
         
     | 
| 
       17 
     | 
    
         
            -
            # prior written permission.
         
     | 
| 
       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 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
            # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
         
     | 
| 
       30 
     | 
    
         
            -
            # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
         
     | 
| 
       31 
     | 
    
         
            -
            # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
         
     | 
| 
       32 
     | 
    
         
            -
            # IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
         
     | 
| 
       33 
     | 
    
         
            -
            # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
         
     | 
| 
       34 
     | 
    
         
            -
            # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
         
     | 
| 
       35 
     | 
    
         
            -
            # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
         
     | 
| 
       36 
     | 
    
         
            -
            # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
         
     | 
| 
       37 
     | 
    
         
            -
            # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
         
     | 
| 
       38 
     | 
    
         
            -
            # OF THE POSSIBILITY OF SUCH DAMAGE.
         
     | 
| 
      
 2 
     | 
    
         
            +
            # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
         
     | 
| 
      
 3 
     | 
    
         
            +
            # See also https://github.com/urbanopt/urbanopt-geojson-gem/blob/develop/LICENSE.md
         
     | 
| 
       39 
4 
     | 
    
         
             
            # *********************************************************************************
         
     | 
| 
       40 
5 
     | 
    
         | 
| 
       41 
6 
     | 
    
         
             
            require 'urbanopt/geojson/feature'
         
     | 
| 
         @@ -1,41 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # *********************************************************************************
         
     | 
| 
       2 
     | 
    
         
            -
            # URBANopt 
     | 
| 
       3 
     | 
    
         
            -
            #  
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            # Redistribution and use in source and binary forms, with or without modification,
         
     | 
| 
       6 
     | 
    
         
            -
            # are permitted provided that the following conditions are met:
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
            # Redistributions of source code must retain the above copyright notice, this list
         
     | 
| 
       9 
     | 
    
         
            -
            # of conditions and the following disclaimer.
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
            # Redistributions in binary form must reproduce the above copyright notice, this
         
     | 
| 
       12 
     | 
    
         
            -
            # list of conditions and the following disclaimer in the documentation and/or other
         
     | 
| 
       13 
     | 
    
         
            -
            # materials provided with the distribution.
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            # Neither the name of the copyright holder nor the names of its contributors may be
         
     | 
| 
       16 
     | 
    
         
            -
            # used to endorse or promote products derived from this software without specific
         
     | 
| 
       17 
     | 
    
         
            -
            # prior written permission.
         
     | 
| 
       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 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
            # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
         
     | 
| 
       30 
     | 
    
         
            -
            # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
         
     | 
| 
       31 
     | 
    
         
            -
            # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
         
     | 
| 
       32 
     | 
    
         
            -
            # IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
         
     | 
| 
       33 
     | 
    
         
            -
            # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
         
     | 
| 
       34 
     | 
    
         
            -
            # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
         
     | 
| 
       35 
     | 
    
         
            -
            # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
         
     | 
| 
       36 
     | 
    
         
            -
            # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
         
     | 
| 
       37 
     | 
    
         
            -
            # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
         
     | 
| 
       38 
     | 
    
         
            -
            # OF THE POSSIBILITY OF SUCH DAMAGE.
         
     | 
| 
      
 2 
     | 
    
         
            +
            # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
         
     | 
| 
      
 3 
     | 
    
         
            +
            # See also https://github.com/urbanopt/urbanopt-geojson-gem/blob/develop/LICENSE.md
         
     | 
| 
       39 
4 
     | 
    
         
             
            # *********************************************************************************
         
     | 
| 
       40 
5 
     | 
    
         | 
| 
       41 
6 
     | 
    
         
             
            require 'urbanopt/geojson/version'
         
     | 
| 
         @@ -1,41 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # *********************************************************************************
         
     | 
| 
       2 
     | 
    
         
            -
            # URBANopt 
     | 
| 
       3 
     | 
    
         
            -
            #  
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            # Redistribution and use in source and binary forms, with or without modification,
         
     | 
| 
       6 
     | 
    
         
            -
            # are permitted provided that the following conditions are met:
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
            # Redistributions of source code must retain the above copyright notice, this list
         
     | 
| 
       9 
     | 
    
         
            -
            # of conditions and the following disclaimer.
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
            # Redistributions in binary form must reproduce the above copyright notice, this
         
     | 
| 
       12 
     | 
    
         
            -
            # list of conditions and the following disclaimer in the documentation and/or other
         
     | 
| 
       13 
     | 
    
         
            -
            # materials provided with the distribution.
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            # Neither the name of the copyright holder nor the names of its contributors may be
         
     | 
| 
       16 
     | 
    
         
            -
            # used to endorse or promote products derived from this software without specific
         
     | 
| 
       17 
     | 
    
         
            -
            # prior written permission.
         
     | 
| 
       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 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
            # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
         
     | 
| 
       30 
     | 
    
         
            -
            # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
         
     | 
| 
       31 
     | 
    
         
            -
            # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
         
     | 
| 
       32 
     | 
    
         
            -
            # IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
         
     | 
| 
       33 
     | 
    
         
            -
            # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
         
     | 
| 
       34 
     | 
    
         
            -
            # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
         
     | 
| 
       35 
     | 
    
         
            -
            # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
         
     | 
| 
       36 
     | 
    
         
            -
            # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
         
     | 
| 
       37 
     | 
    
         
            -
            # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
         
     | 
| 
       38 
     | 
    
         
            -
            # OF THE POSSIBILITY OF SUCH DAMAGE.
         
     | 
| 
      
 2 
     | 
    
         
            +
            # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
         
     | 
| 
      
 3 
     | 
    
         
            +
            # See also https://github.com/urbanopt/urbanopt-geojson-gem/blob/develop/LICENSE.md
         
     | 
| 
       39 
4 
     | 
    
         
             
            # *********************************************************************************
         
     | 
| 
       40 
5 
     | 
    
         | 
| 
       41 
6 
     | 
    
         
             
            require 'urbanopt/geojson/feature'
         
     | 
| 
         @@ -1,41 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # *********************************************************************************
         
     | 
| 
       2 
     | 
    
         
            -
            # URBANopt 
     | 
| 
       3 
     | 
    
         
            -
            #  
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            # Redistribution and use in source and binary forms, with or without modification,
         
     | 
| 
       6 
     | 
    
         
            -
            # are permitted provided that the following conditions are met:
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
            # Redistributions of source code must retain the above copyright notice, this list
         
     | 
| 
       9 
     | 
    
         
            -
            # of conditions and the following disclaimer.
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
            # Redistributions in binary form must reproduce the above copyright notice, this
         
     | 
| 
       12 
     | 
    
         
            -
            # list of conditions and the following disclaimer in the documentation and/or other
         
     | 
| 
       13 
     | 
    
         
            -
            # materials provided with the distribution.
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            # Neither the name of the copyright holder nor the names of its contributors may be
         
     | 
| 
       16 
     | 
    
         
            -
            # used to endorse or promote products derived from this software without specific
         
     | 
| 
       17 
     | 
    
         
            -
            # prior written permission.
         
     | 
| 
       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 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
            # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
         
     | 
| 
       30 
     | 
    
         
            -
            # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
         
     | 
| 
       31 
     | 
    
         
            -
            # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
         
     | 
| 
       32 
     | 
    
         
            -
            # IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
         
     | 
| 
       33 
     | 
    
         
            -
            # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
         
     | 
| 
       34 
     | 
    
         
            -
            # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
         
     | 
| 
       35 
     | 
    
         
            -
            # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
         
     | 
| 
       36 
     | 
    
         
            -
            # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
         
     | 
| 
       37 
     | 
    
         
            -
            # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
         
     | 
| 
       38 
     | 
    
         
            -
            # OF THE POSSIBILITY OF SUCH DAMAGE.
         
     | 
| 
      
 2 
     | 
    
         
            +
            # URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
         
     | 
| 
      
 3 
     | 
    
         
            +
            # See also https://github.com/urbanopt/urbanopt-geojson-gem/blob/develop/LICENSE.md
         
     | 
| 
       39 
4 
     | 
    
         
             
            # *********************************************************************************
         
     | 
| 
       40 
5 
     | 
    
         | 
| 
       41 
6 
     | 
    
         
             
            require 'urbanopt/core/feature'
         
     | 
| 
         @@ -292,7 +257,7 @@ module URBANopt 
     | 
|
| 
       292 
257 
     | 
    
         | 
| 
       293 
258 
     | 
    
         
             
                    [central_longitude * 180 / Math::PI,
         
     | 
| 
       294 
259 
     | 
    
         
             
                      central_latitude * 180 / Math::PI]
         
     | 
| 
       295 
     | 
    
         
            -
             
     | 
| 
      
 260 
     | 
    
         
            +
             
     | 
| 
       296 
261 
     | 
    
         
             
                  end
         
     | 
| 
       297 
262 
     | 
    
         | 
| 
       298 
263 
     | 
    
         
             
                  private
         
     |