Difference between revisions of "IMSMA Staging Area"
Line 46: | Line 46: | ||
|- | |- | ||
| align="left" | '''Place data''' | | align="left" | '''Place data''' | ||
− | | align="left" | The | + | | align="left" | The localid and name of the place linked to an object are directly stored in the main object table. |
− | | align="left" | | + | | align="left" | The HAZARD table in the staging are has the columns ammunition_storage_localid and ammunition_storage_name that refer to a place object. |
|- | |- | ||
| align="left" | '''Classification data (Country structure, Assistance Classification, Cause Classification and Needs Assessment Classification)''' | | align="left" | '''Classification data (Country structure, Assistance Classification, Cause Classification and Needs Assessment Classification)''' | ||
Line 81: | Line 81: | ||
** '''coordinate_format:''' e.g. "Decimal Degrees" | ** '''coordinate_format:''' e.g. "Decimal Degrees" | ||
** '''shape:''' PostGIS-representation of the shape that can be accessed with a PostGIS query | ** '''shape:''' PostGIS-representation of the shape that can be accessed with a PostGIS query | ||
− | * '''<OBJECT>_POLYLINE:''' | + | * '''<OBJECT>_POLYLINE:''' contains all the data related to polylines defined on the object. The individual points making up the polyline are stored in the <OBJECT>_POINT table, but the polyline object is additionally stored in the <OBJECT>_POLYLINE table. The main column is '''shape''', a PostGIS-representation of the shape that can be accessed with a PostGIS query. |
− | * '''<OBJECT>_POLYGON:''' | + | * '''<OBJECT>_POLYGON:''' similar to <OBJECT>_POLYLINE, but for polygon objects. |
===Views===__NOEDITSECTION__ | ===Views===__NOEDITSECTION__ |
Revision as of 13:57, 20 June 2014
![]() |
This page is under construction |
What is the IMSMA Staging Area?
The IMSMA staging area is a flattened and read-only version of the IMSMA operational database. In terms of content, the data is an exact copy of the IMSMA database, but the structure is much less complex and therefore easier to query. While in the operational IMSMA database the core object data (e.g. the ID and name of a Land) is stored in one table (e.g. in the HAZARD table) and descriptive attributes (such as single- and multi-select standard and custom defined fields) are stored in separate tables, in the staging area all this information is available in one single table. Therefore, there is no need to write complex queries to get to all the attributes of an object. Ultimately, reporting and data analysis tools can easily be connected to the staging area.
A staging area can be created out of an IMSMANG v 6.0 (and higher) database. It is typically used as a reporting database, via lightMINT, MINT or any other reporting/analysis tool.
Structure of the IMSMA Staging Area
Flattening principles
![]() |
This section requires basic knowledge of the IMSMANG structure |
Database model
A simplified staging area database model for the Land (Hazard) object is depicted below. For all the other main objects, the model looks very similar.
Special table
Table name | Description |
ETLHISTORY | This table is the only one that does never get dropped from the staging area, but persists as the database is re-generated again and again (see Staging Area Generator). I contains information about all the staging area generations on a specific database (i.e. for example when a staging area database with the same name is generated regularly, e.g. once per day or week). It has two columns:
Having x rows in this table means that the database has been generated x times, and allows to keep a history of the individual runs. It also allows to determine how old the information in the staging area is, by looking at latest timestamp. |
Point, Polyline and Polygon tables
If the option of generating geodata has been chosen on the Staging Area Generator interface, then three related tables with geodata are generated for every main object/table (ACCIDENT, VICTIM, QM, HAZARD (Land), etc.):
- <OBJECT>_POINT: contains all the data related to points defined on the object, with the following main information:
- point_type: e.g. Benchmark, Landmark, Turning Point (all points making up a polygon are also recorded in this table)
- lat: latitude
- lon: longitude
- coordinate_reference_system: e.g. "WGS 1984"
- coordinate_format: e.g. "Decimal Degrees"
- shape: PostGIS-representation of the shape that can be accessed with a PostGIS query
- <OBJECT>_POLYLINE: contains all the data related to polylines defined on the object. The individual points making up the polyline are stored in the <OBJECT>_POINT table, but the polyline object is additionally stored in the <OBJECT>_POLYLINE table. The main column is shape, a PostGIS-representation of the shape that can be accessed with a PostGIS query.
- <OBJECT>_POLYGON: similar to <OBJECT>_POLYLINE, but for polygon objects.
Views
Geographical data in the staging area
|