|
2 | 2 |
|
3 | 3 | ### [back to main docs](../)
|
4 | 4 |
|
5 |
| -The URBANopt<sup>™</sup> GeoJSON Gem has been developed by restructuring methods extracted from the |
| 5 | +The URBANopt™ GeoJSON Gem has been developed by restructuring methods extracted from the |
6 | 6 | [urban_geometry_creation](https://github.com/NREL/openstudio-urban-measures/tree/develop/measures/urban_geometry_creation)
|
7 | 7 | and
|
8 | 8 | [urban_geometry_creation_zoning.](https://github.com/NREL/openstudio-urban-measures/tree/develop/measures/urban_geometry_creation_zoning)
|
9 | 9 |
|
10 |
| -The +urban_geometry_creation+ measure can be used to create an OpenStudio Model for a |
| 10 | +The `urban_geometry_creation` measure can be used to create an OpenStudio Model for a |
11 | 11 | building feature from the feature file and create the surrounding buildings that are shading the
|
12 | 12 | building feature as shading objects.
|
13 |
| -The arguments used in the measure are the +GeoJSON File+, +Feature ID+ of the building and +Surrounding Buildings+. The |
14 |
| -Surrounding Buildings argument takes two possible choices - None or Shading Only. The None choice |
| 13 | +The arguments used in the measure are the `geojson_file`, `feature_id` of the building, `surrounding_buildings` and `scale_footprint_area_by_floor_area`. The |
| 14 | +`surrounding_buildings` argument takes two possible choices - None or Shading Only. The None choice |
15 | 15 | would create no other buildings adjacent to the building feature while the Shading Only option
|
16 |
| -determines what other buildings are shading the building feature and creates them as OpenStudio Shading Surfaces. |
| 16 | +determines what other buildings are shading the building feature and creates them as OpenStudio |
| 17 | +Shading Surfaces. The `scale_footprint_area_by_floor_area` is an optional argument that is set to |
| 18 | +false by default. When set to true, the building footprint area is calculated from the |
| 19 | +floor_area/number_of_stories for the building in the GeoJSON file and this footprint area is used to |
| 20 | +scale the building coordinates and create the building. |
17 | 21 |
|
18 |
| -The +urban_geometry_creation_zoning+ measure has the same capabilities as the |
19 |
| -+urban_geometry_creation+ measure, however it also creates core and perimeter zones for the spaces |
20 |
| -in the OpenStudio Model. It takes in the same arguments as the +urban_geometry_creation+ measure. |
| 22 | +The `urban_geometry_creation_zoning` measure has the same capabilities as the |
| 23 | +`urban_geometry_creation` measure, however it also creates core and perimeter zones for the spaces |
| 24 | +in the OpenStudio Model. It takes in the `geojson_file`, `feature_id` of the building, |
| 25 | +`surrounding_buildings` as arguments. |
21 | 26 |
|
22 | 27 | The main components of the gem are:
|
23 | 28 |
|
24 |
| -- geojson.rb : Base gem file that imports all modules and classes. |
| 29 | +- geojson.rb : Base gem file that imports all modules and classes. |
25 | 30 | - extension.rb : The extension class inherits from OpenStudio::Extension::Extension, and
|
26 |
| - overrides the following methods as needed - |
| 31 | + overrides the following methods as needed |
27 | 32 | - _measures_dir_
|
28 | 33 | - _files_dir_
|
29 | 34 | - _doc_templates_dir_
|
30 |
| -- Gemfile and .gemspec : Describe the extension dependencies on other gems. |
31 |
| -- Classes and Modules within +lib/urbanopt/geojson+ - |
32 |
| - |
| 35 | +- Gemfile and .gemspec : Describe the extension dependencies on other gems. |
| 36 | +- Classes and Modules within `lib/urbanopt/geojson` |
33 | 37 |
|
34 | 38 | *Modules that do not require instances for calling the methods:*
|
35 | 39 |
|
36 | 40 | - URBANopt::GeoJSON::Helper : Contains methods extracted from the two measures to
|
37 |
| - perform utility-like tasks like - +is_shaded+ and +is_shadowed+. |
| 41 | + perform utility-like tasks like - `is_shaded` and `is_shadowed`. |
38 | 42 | - URBANopt::GeoJSON::Zoning : Contains methods extracted from
|
39 |
| - +urban_geometry_creation_zoning+ . |
| 43 | + `urban_geometry_creation_zoning`. |
40 | 44 | - URBANopt::GeoJSON::Model : Contains methods that perform tasks on an instance of
|
41 |
| - +OpenStudio::Model::Model+. |
| 45 | + `OpenStudio::Model::Model`. |
42 | 46 |
|
43 | 47 | *Classes and subclasses that contain instance-dependant methods and private methods
|
44 | 48 | that perform tasks on the given feature.*
|
45 | 49 |
|
46 |
| - - URBANopt::GeoJSON::GeoFile : Contains a +get_feature+ method that returns an |
| 50 | + - URBANopt::GeoJSON::GeoFile : Contains a `get_feature` method that returns an |
47 | 51 | instance of a Feature Subclass for the the feature type. Also contains methods to validate the GeoJSON
|
48 |
| - file against the GeoJSON schema. |
49 |
| - - URBANopt::GeoJSON::Feature : Contains methods to return +feature+ +id+ , +name+ , |
50 |
| - +multiple+ +polygons+ +coordinates+ which are inherited by classes for all feature types. |
| 52 | + file against the GeoJSON schema. |
| 53 | + - URBANopt::GeoJSON::Feature : Contains methods to return `feature id` , `name` , |
| 54 | + `multiple polygons coordinates` which are inherited by classes for all feature types. |
51 | 55 | - URBANopt::GeoJSON::Building : A subclass of Feature, contains class methods that
|
52 |
| - are specific to handling features of the Building type. |
| 56 | + are specific to handling features of the Building type. |
53 | 57 | - URBANopt::GeoJSON::DistrictSystem : A subclass of Feature, contains class methods
|
54 |
| - that are specific to handling features of District System type. *Note: This subclass does not contain any methods yet*. |
| 58 | + that are specific to handling features of District System type. *Note: This subclass does not contain any methods yet*. |
0 commit comments