Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Map object classes

While registering a domain, in Object Classes (External) set all Fi2 class names as defined by the standard:

  • fi2property

  • fi2structure

  • fi2floor

  • fi2space

These class names must be used as they will be recognized and mapped to corresponding fi2 object types. 

Map Data fields

For each class, user can define any number of mapped fields. 

  • Source class: External class from fi2 schema

  • Source field - External field name, used when exporting to generic type

  • Source field type - External field type, e.g. area, class etc

  • Source value type - External sub type, e.g. BRA, NTA

  • Target field - Internal Field

Possible field types

Source field type

  • AREA - use for fields containing area values. Requires Source value type

  • CLASS - use with dictionary / lookup fields

  • VALUE - use for generic values

  • ID - use for object ID values

  • NAME - use from object name tag

  • ADDRESS - use for object address tag

  • DESCR - use for object description tag

  • CONSTRYEAR - use for object contrition year tag

(warning) If given type/tag is not allowed by schema on given element class, it will be omitted.

VALUE sample

Use "VALUE" for custom field that do not match any specific type. They will be exported as generic code/value pair:

<fi2space_value>
  <fi2value_code>space_coclass_ut</fi2value_code>
  <fi2value_value>BAB</fi2value_value>
</fi2space_value>
  • fi2value_code will be filled in with Source field

  • fi2value_value will be filled in with the actual target field value

sample with schema:

<fi2space_value>
     <fi2value_code>CreatedDate</fi2value_code>
     <fi2value_value>2002-08-19T21:33:02</fi2value_value>
     
     <!-- optional -->
    <fi2value_scheme>
           <fi2scheme_id>VB001_005_001</fi2scheme_id>
           <fi2scheme_name>Tillåtna värden för alla typer av fi2objekt</fi2scheme_name>
           <fi2scheme_url>http://www.fi2.se/valuelist/VB001_005_001.xml</fi2scheme_url>
     </fi2value_scheme>
</fi2space_value>

ID sample

<fi2space_ids>
   <fi2_id usage="SpaceId">113</fi2_id>
</fi2space_ids>
  • usage will be filled with Source field

  • inner content will be filled with the actual target field value

CLASS sample

  • If type CLASS is selected, emitted tag will be fi2space_class

  • fi2class_scheme will include information about:

    • fi2scheme_name will include source (external) field name from domain mapping

    • fi2scheme_url will be based on field type config

FMA Class sample:

<fi2space_class>
     <fi2class_code>211.E</fi2class_code> 
        <fi2class_scheme>                
        <fi2scheme_name>Rumsfunktion</fi2scheme_name>
        <fi2scheme_url>VC001_003_001.xml</fi2scheme_url>
     </fi2class_scheme>
</fi2space_class>

Original Fi2 sample

  <fi2space_class>
       <fi2class_code>211.E</fi2class_code>
       <fi2class_scheme>
           <fi2scheme_id>CX001_002_003</fi2scheme_id>
           <fi2scheme_name>Klassificering BSAB utrymmen</fi2scheme_name>
           <fi2scheme_url>http://www.fi2.se/classlist/CX001_002_003.xml</fi2scheme_url>
       </fi2class_scheme>
  </fi2space_class>

AREA sample

<fi2space_area>
            <fi2area_code>BRA</fi2area_code>
            <fi2area_value unit="m2">219</fi2area_value>
            <!--optional-->
            <fi2area_scheme>
                <fi2scheme_id>VA000_003_005</fi2scheme_id>
                <fi2scheme_name>Mättekniska areabegrepp</fi2scheme_name>
                <fi2scheme_url>http://www.fi2.se/valuelist/VA000_003_005.xml</fi2scheme_url>
            </fi2area_scheme>

            <fi2area_measuredby>Kalles Mätning AB</fi2area_measuredby>
            <fi2area_measureddate>2005-10-01</fi2area_measureddate>
            <fi2area_measuretype />
            <fi2area_derivedfrom />
            <fi2area_perimeter unit="m">0</fi2area_perimeter>
        </fi2space_area>

NAME sample

<fi2space_name lang="sv" usage="Default">785</fi2space_name>

DESCR sample

<fi2space_descr lang="sv" usage="Default">Parkeringsutrymme</fi2space_descr>

CONSTRYEAR sample

<fi2struct_constryear>2014-03-12T11:53:03.100</fi2struct_constryear>

ADDRESS sample

<fi2prop_address>
   <fi2addr_addrline>SIMRISBANVÄGEN 14</fi2addr_addrline>
</fi2prop_address>

Possible Value Types

Value types will be used as an additional attribute in some complex output formats, like AREA.

In AREA the value type will be used for fi2area_code

In CLASS the value type will be used for fi2scheme_url

Source value type

  • BRA

  • NTA

  • BTA

  • class url

  • etc

ADDRESS Value Types

Address supports specific value types:

fi2addr_class

Address Classification

fi2addr_descr

Address Description

fi2addr_addrline

Any address line for street/delivery address

fi2addr_zipcode

Zip-code

fi2addr_city

City

fi2addr_country

Country code (ISO 3166)

fi2addr_region

Areacode

fi2addr_tel

Telephone Number linked to this address

fi2addr_fax

Fax number

  • No labels