====== Orbit DataBase File ====== An Orbit DataBase file (*.odb) is Orbit's database resource (database table) connection file. \\ An odb file is a file based connection to one well defined database resource. It makes it possible to work with database resources in the same way as file based resources. It is strongly advised to read first the documentation about [[201:technology:core:spatial_databases|]]. ===== Structure ===== The odb configuration settings : * [[201:technology:core:database_connection|]] * Spatial type * Oracle Spatial * SpatialCLOB * WKT: read and write * eWKT: read only *SpatialBLOB * WKB: read and write * PointXY (2D) and PointXYZ (3D) * Required fields * Unique identifier * References about spatial fields in the database * Desired visible attributes * Edit rights * Fixed Fields An odb file can be edited using a text editor, take care of its structure. ===== Tags ===== |< 100% 15% 15% 10% 60% >| ^ Parameter ^ Value ^ Value Type ^ Description ^ | **DATABASE** |||| | CONNECTION | | String | Name of Orbit Database Connection. | | **MODELS** |||| | **MODEL** |||| | ID | | Integer | Starting from 1 to amount of models | | NAME | | String | Orbit name of the model | | TYPE | POINT | String | Spatial component are Points | | ::: | LINE | String | Spatial component are Lines | | ::: | AREA | String | Spatial component are Areas | | COORDINATEMODEL | 2D | String | 2 dimension Spatial Component (without Z value) | | ::: | 3D | String | 3 dimension Spatial Component (with Z value) | | TABLENAME | . | String | Name of database table in table within the database connection. \\ For some databases : case sensitive and/or scheme name must be added as prefix (e.g. Oracle). | | OBJECTID_COLUMN | | String | Unique identifier defined by a single column | | ::: | KEY() | String | Unique idintifier defined by multiple columns | | SPATIALTYPE | SpatialCLOB | String | Text markup language : Well Known Text Characters (WKT) \\ * Type of objects : points, lines or areas \\ * Dimension : 2D or 3D | | ::: | SpatialBLOB | String | Text markup language : Well Known Text Binary (WKB) \\ * Type of objects : points, lines or areas \\ * Dimension : 2D or 3D | | ::: | com.orbitgis.orbitx.driver.\\ spatialsql.oracle10.TypeOracleSpatial | String | Oracle Spatial SQL \\ * Type of objects : points, lines or areas \\ * Dimension : 2D or 3D | | ::: | com.orbitgis.orbitx.driver.\\ spatialsql.oracle11.TypeOracleSpatial | ::: | ::: | | ::: | PointXY | String | Separated coordinate fields \\ * Type of objects : points \\ * Dimension : 2D | | ::: | PointXYZ | String | Separated coordinate fields \\ * Type of objects : points \\ * Dimension : 3D | | SPATIAL_COLUMN | | Longtext | Column containing vector geometry for the following spatialtypes: \\ * SpatialCLOB (WKT) \\ * SpatialBLOB (WKB) \\ * Oracle Spatial SQL | | SPATIAL_COLUMN_X | | Double | Column containing a separate x,y - coordinate \\ * PointXY (2D) \\ * PointXYZ (3D) | | SPATIAL_COLUMN_Y | | Double | ::: | | SPATIAL_COLUMN_Z | | Double | Column containing a separate z-coordinate (only PointXYZ) | | SPATIAL_SRID | | Integer | Only necessary when using SPATIALTYPE Oracle Spatial SQL. See [[http://en.wikipedia.org/wiki/Srid|Wikipedia Srid]] | | ATTRIBUTES | | String | Columns that should be visible as attribute. \\ If this tag isn't available or no columns are listed, Orbit will display all available database columns as attribute except spatial columns. | | ATTRIBUTES_HIDDEN | | String | Columns that should be hidden. | | UPDATEMODE | READONLY | String | Database table access level: read only | | ::: | ONLY_UPDATES | String | Database table access level: editing existing objects (attribute and spatial information) is permitted, but one cannot add or delete objects (rows) | | ::: | ONLY_SPATIAL_UPDATES | String | Database table access level: editing of existing objects (only spatial information) is permitted, but one cannot add or delete objects (rows) | | ::: | FULL_CONTROL | String | Database table access level: full control | | FIXED_FIELDS | : \\ :;: | String | the records or objects included in a separate model can be restricted to a specific attribute value | ===== Examples ===== Single Model Dataset - Oracle DATABASE= CONNECTION= MODELS= MODEL= ID=1 NAME= TYPE= COORDINATEMODEL= TABLENAME= OBJECTID_COLUMN= SPATIALTYPE= SPATIAL_COLUMN= SPATIAL_SRID= UPDATEMODE= Multi Model Dataset DATABASE= CONNECTION=inventory MODELS= MODEL= ID=1 NAME=Trees TYPE=POINT COORDINATEMODEL=2D TABLENAME=green_elements OBJECTID_COLUMN=ID SPATIALTYPE=PointXY SPATIAL_COLUMN_X=area_x SPATIAL_COLUMN_Y=area_y ATTRIBUTES= LASTCHANGEQUERY= UPDATEMODE=READONLY FIXED_FIELDS=type:1 MODEL= ID=2 NAME=roads TYPE=LINE COORDINATEMODEL=2D TABLENAME=public_space OBJECTID_COLUMN=id SPATIAL_COLUMN=area_geometry SPATIALTYPE=SpatialCLOB ATTRIBUTES= LASTCHANGEQUERY= UPDATEMODE=READONLY FIXED_FIELDS=type:2 MODEL= ID=3 NAME=Areas TYPE=AREA COORDINATEMODEL=2D TABLENAME=public_space OBJECTID_COLUMN=id SPATIAL_COLUMN=area_geometry SPATIALTYPE=SpatialCLOB ATTRIBUTES= LASTCHANGEQUERY= UPDATEMODE=FULL_CONTROL FIXED_FIELDS=type:3