To import a GeoJSON, go to Extension < IESiCD < Import/Export < Import GeoJSON file (with attribute mapping) and browse the GeoJSON file. Once selected, the Attribute mapping opens.
The Attribute Mapping Dialogue Box allows you to assign the data available as fields in the GeoJSON file to attribute in iCD. It contains the following sections: Object type, Attribute Label (geometric information), Import Format, Target Attribute (iCD attribute), Preview and Ignore options for the selected GeoJSON file.
Attribute Label
The “Attribute Label” column shows the different object attributes available in the GeoJSON file with their respective names (see Figure 4-6). Every GeoJSON file will have different set of attributes based on the available information.
Figure 4-6 IES iCD Attribute Mapping dialogue box
Import Format
The import format represents the list of different format values which can be used to match the Attribute Label to the Target Attribute (iCD). Import Format consists of default list of attribute formats such as String, Integer, Floating point, Options for Ext Wall, Options for Int Wall etc.
Depending on the import format, it is possible to match the GeoJSON to different iCD attribute. For example, if the Import format is set as Integer, the imported GeoJSON attribute can assigned to the attributes “number of storeys” or “Year built” as they are the only two attributes in iCD under this format. To match the Attribute Label with Target Attribute, appropriate Import Format must be selected from the list.
Figure 4-7 IES iCD Attribute Mapping – Import Format
Target Attribute
Target Attribute represents the final attribute in which data will be imported to in the iCD model. AS mentioned in the previous paragraph, the list of options available in the Target Attribute is based on the option selected in Import Format.
“Do not map with existing attribute” can be used to import the GeoJSON attribute as a new custom attribute instead of importing the data within a pre-existing iCD attribute (see Figure 4-8 and Figure 4-9).
The “Ignore” option can be selected if the user doesn’t wish to import an attribute information to the iCD model attribute (see Figure 4-8).
Figure 4-8 IES iCD Attribute Mapping – Target Attribute
Figure 4-9 shows the GeoJSON attributes that were imported as Custom attributes. They are now visible in the Custom Model Attributes window for further editing.
Figure 4-9 Imported GeoJSON attributes visible in the Custom Model Attributes window
Preview
Preview option can be used by the user to verify or understand the available data for each GeoJSON attributes (Attribute).
Example: These are the available information for the Attribute distname.
Figure 4-10 Attribute Mapping – Preview of the “distname” attribute
Import type
Below the attributes’ settings, two dropdowns menus give the user the possibility to choose the object type corresponding to your GeoJSON import (see Figure 4-11 below).
Polygon layers
If the GeoJSON layer contains only polygons, only the “Polygon object import type” will appear.
Polygon layers can be imported as any object defined by their footprint in the iCD: buildings, boundaries, landscape, roads, water etc…
Point layers
If the GeoJSON layer contains only points, only the “Point object import type” will appear.
Polygon layers can be imported as any point object: PVs, Trees, Streetlights, EV chargers.
Figure 4-11 GeoJSON import type
Match and Import GeoJSON Data
The data in the Attribute Mapping dialogue box can be matched manually or automatically. The following example demonstrates the method to manually match and import the GeoJSON attributes’ data into the iCD model.
In the example below, there are five different GeoJSON attributes including ID, Distname (Building Names), Sitetheme (Building Type), Classifica (Building Subcategory) & Featcode (Building Code). Data carried in each attribute can be viewed using the Preview button and the appropriate import format must be selected to match the attribute data to the Target attribute based on user’s preference. In this example, the GeoJSON attribute “distname” is matched to the iCD attribute “Name”, “id” and “classifica” are ignored and “sitetheme” and “featcode” are not mapped to an existing iCD attribute.
In this case, the buildings will be imported with corresponding distname data imported in the Object Name attribute column in iCD. Id & Classifica will be ignored and feat code & sitetheme will be imported as a new custom attribute (User Defined) as Do not map with existing attribute is selected.
Another method is to match the GeoJSON attributes automatically. GeoJSON attribute are then automatically matched to a pre-existing iCD attribute (Target Attribute). Unmapped GeoJSON attributes will have their data imported into new Custom Attributes (User Defined).
Figure 4-13 Attribute Mapping – Match Automatically