Other ASCII files
[ LINES ] [ POINTS ] [ POINT2D ] [ SAMPLE ] [
GRIDREG
] [ TABLE ] [ TEXT ] [ POLYGONS ] [ NETWORK ] [ NETWORK_OBJECTS ]
TABLE
A TABLE file type stores geographic objects descriptive attributes. Thus,
in this version of SPRING, such attributes can be imported or exported only when associated
to a cadastral or network IL model. These attributes can be associated to a
non-spatial category.
The figure below shows the connection scheme in an objects table (Lot Table) with the
corresponding polygon in the Urban Lots Map. The user can, to any instance, connect
the objects table to a non-spatial table (Owners Table). Both tables can be created
(or imported) from an ASCII-SPRING file or exported, if they already exist.

The first line of the file has the keyword TABLE. This line is the identification section ,
which is mandatory. To the TABLE entity, the information section is also mandatory
and has to have a description of the attributes stored in the file.
The following keywords are mandatory in the information section: SEPARATOR,
UNFORMATED, FORMATED, CATEGORY_OBJ, CATEGORY_NOSPAPTIAL, T_KEY e T_NAME:
- SEPARATOR: Name of the data source objects table. This table is defined in the
database conceptual scheme;
- UNFORMATED: Option to control the way the data entity TABLE is stored. It goes
together with the SEPARATOR item.
- FORMATED: Defines the fields formatting of a TABLE's entity (NOT IMPLEMENTED).
- CATEGORY_OBJ: Name of the objects table. This table is defined in the database model;
- CATEGORY_NOSPATIAL: Name of the Non-Spatial category in the database, used for
the descriptive tables.
- T_KEY: Object identification label. By default this field is created by the
text type system with 32 characters long. Only the contents is defined by the user during an
object identification. The contents is unique in the database, but it can be associated to
several entities;
- T_NAME: Object identification name. By default this field is created by the text
type system with 32 characters long. Only the contents is defined by the user during the
object identification. The field contents can be repeated or not for different objects with
different labels.
After the T_KEY and T_NAME keywords the user attributes description (fields)
is informed, following the format below:
field_name_, type, size, decimals
NOTE: The items definition for each attribute are separated by the character defined
in SEPARATOR. When the type is TEXT, the decimals item should be filled with a zero
(0).
The general format of the ASCII file for the TABLE entity follows the scheme presented next.
TABLE
INFO
// ASCII attributes table generated by SPRING system
SEPARATOR ;
UNFORMATED / FORMATED data with or without formatting
CATEGORY_OBJ / CATEGORY_NOSPATIAL Objects Category or Non Spatial
T_KEY,TEXT,32,0 field for object label
T_NAME,TEXT,32,0 field for object name
field_name_3, type, size, decimals
field_name_4, type, size, decimals
...
field_name_n, type, size, decimals
INFO_END
T_KEY,T_NAME,field_value_3,field_value_4, ..., ..., field_value_n
..............
..............
END
|
The examples below show a non-spatial table and an objects table.
TABLE
INFO
// ASCII attributes table generated by SPRING system
SEPARATOR ,
UNFORMATED
CATEGORY_NOSPATIAL Blocks
CODIGO , TEXT , 12 , 0
ASA , TEXT , 7 , 0
USO , TEXT , 15 , 0
NUM_IMOV , INTEGER , 10 , 0
POPULAC , INTEGER , 10 , 0
RENDA , REAL , 17 , 8
MDECLIV , REAL , 17 , 8
APTIDAO , TEXT , 15 , 0
INFO_END
SQN-103 , NORTH , Public , 15 , 250 , 20000.000000 , 2.001377 , Tall
SQN-104 , NORTH , Public , 18 , 300 , 25000.000000 , 2.456820 , Tall
SQN-105 , NORTH , Public , 100 , 400 , 30000.000000 , 1.874424 , Tall
SQN-106 , NORTH , Residential , 120 , 500 , 8000.000000 , 2.607974 , Tall
SQN-107 , NORTH , Residential , 35 , 140 , 8000.000000 , 1.988258 , Tall
SQS-716 , SOUTH , Residential , 80 , 190 , 2000.000000 , 0.978811 , Tall
END
|
TABLE
INFO
// ASCII attributes table generated by SPRING system
SEPARATOR ;
UNFORMATED
CATEGORY_OBJ Bocks
T_KEY ; TEXT ; 32 ; 0
T_NAME ; TEXT ; 32 ; 0
NAME,TEXT,30,0
VALUE,REAL,17,8
AGE_CAD,INTEGER,10,0
DATA_CAT,TIME,8,0
INFO_END
Fz045757;Fz045757;Tanque II ;74545.660000;59;19940701
Fz654433;Fz654433;Faz Santa Cecilia ;353535.550000;23;19941230
Fz655222;Fz655222;Sao Roque ;645455.550000;65;19930508
Fz657463;Fz657463;Madre Paula ;867676.770000;98;19710508
END
|
NOTE: When exporting an object table or a non-spatial table from the database,
Table option in the
" Exporting" window, the TABLE
file is created. By default, when exporting a file, the file name extension "spr"
is used with the "_TAB" suffix and added to the IL's name, that is, *_TAB.spr.
However, when importing a file, if it was created by a different system, it has to have
the "spr" file name extension. The difference between a non-spatial table and an
objects table is in the item declaration CATEGORY_NOSPATIAL or CATEGORY_OBJ
in the information section.
About ASCII format
Learn more about Import/Export in SPRING
See also:
How to IMPORT data?
How to IMPORT SGI data?
How to IMPORT GRIB images?
How to EXPORT data?
Other ASCII files
[ LINES ] [ POINTS ] [ POINT2D ] [ SAMPLE ] [
GRIDREG
] [ TABLE ] [ TEXT ] [ POLYGONS ] [ NETWORK ] [ NETWORK_OBJECTS ]
|