To import data
The importation of data
in any of the formats ASCII-SPRING, ARCINFO-UNG, DXF-R12, SHAPEFILE, JPEG, RAW, JPEG->JPEG, SITIM, SURFER-ASC, IDRISI.IMG-ASC or DXF/DWGrequires the a
priori definition of categories that are adequate to each data to be
imported.
It is not necessary to have an active project to perform the importation, but
in this case, one must inform the name, projection, and bounding box, in the
same importation window.
To ease the description of the procedures, we divide the importation in:
See also:
Definition
of Database
Definition
of Data Model
How
to IMPORT data from GIS ?
How to IMPORT GRIB
images ?
How to EXPORT data ?
How to
convert SHAPEFILE, MID/MIF, E00 and DBF into ASCII-SPRING ?
Data Export - Tables ASCII-SPRING
See more about the formats of importation/exportation in SPRING
Importation of
ASCII-SPRING or ARCINFO-UNG data
In order for SPRING to
recognize in the file list one of these formats it should have the following
extensions:
Importing
ASCII-SPRING or ARCINFO-UNG data :
-
load a database (
) and define the categories that will receive the external data,
in case they do not yet exist;
-
load a Project (
) that should include the coordinates of the data in the external
file, otherwise the parameters to create a project will be requested, in
case one is not loaded;
-
click on File and
select Import... . The "Import" dialog will be
presented;
-
click on the Directory... button
to select the directory where the file to be imported is, or type in the
path and click on the CR button.
-
in Format: you select between
ASCII-SPRING and ARCINFO-UNG.
If there are any files with the corresponding extension they will be
presented in the list underneath;
-
click on the file name in the
list;
-
click on Entity.: and
choose among:
-
Line without adjust - imports 2D lines
for IL's of the thematic, cadastral or network types into the formats
ASCII-SPRING (LINES type in case thematic or cadastral - NETWORK
type in case networks) or ARCINFO-UNG. The lines won't be adjusted or
polygonized in case they define closed areas;
-
Line with adjust - imports 2D lines
and adjusts the nodes with tolerance 0 (zero), that is, the end of two
lines should be in the same point so that the system recognizes the
connection between them. Useful for lines in thematic, cadastral, or
network IL's of the format ASCII-SPRING (of the type LINES in the case
of thematic os cadastral - type NETWORK in the case of network) or ARCINFO-UNG.
The polygonalization is not done in case the lines define closed areas;
-
Line with topology - imports 2D lines
and adjusts the nodes with 0 (zero) tolerance and polygonizes, that is,
creates the polygons if the lines define closed areas. Useful for
polygons of thematic or cadastral IL's of the formats ASCII-SPRING (LINES
type in cases thematic or cadastral - NETWORK types in case
network) or ARCINFO-UNG. If you use this option with lines of a
category of the network model the polygonalization will not be
performed. The processing will be the same as in the option before.
-
Labels - imports the
classification (labeling) of 2D lines (in this case one pair of
coordinates over each line) or polygons (one pair of coordinates within
the polygon) for thematic, cadastral or network type IL's in the
ASCII-SPRING (type POINTS in cases thematic or cadastral -
type NETWORK_OBJECTS in case network)or ARCINFO-UNG
formats. The thematic classes or objects will be created, in case they
do not exist in the database.
-
Point 2D - imports 2D points and
their identification as classes of a thematic IL or objects of a
cadastral IL. Useful for the ASCII-SPRING format (type POINT2D in
case thematic or cadastral).
-
Sample (MNT) - imports 3D contour
lines and 3D points for IL's of the numeric model in the formats
ASCII-SPRING (typo SAMPLE) or ARCINFO-UNG;
-
Break Line (MNT) - imports 2D
rectangular grids for thematic or numeric IL's. Useful for lines in the
formats ASCII-SPRING (type LINES) or ARCINFO-UNG.
-
Regular Grid/Matrix -
imports 2D rectangular grids into thematic or numeric IL's in the
formats ASCII-SPRING (type GRIDREG in cases thematic or numeric)
or ARCINFO-UNG (only for numeric grids). In the case of a thematic
ASCII the definition of the classes and the visual should be defined
within the file;
-
Text - imports the toponymy
for any type of IL, be it thematic, cadastral, images or network in the
format ASCII-SPRING (type TEXT);
-
select the unit for the data in Unit:
m, km, feet, pol., degrees, sec., mm. In case the data is
latitude/longitude (for example s 23 45 32.34 w 45 20 0.0), they will be
automatically recognized, independently of the selection of some unit;
-
type in the Scale for the
IL that will be created. It is suggested to keep the same scale of the
base, or define a scale that will be used by your output device (for
example a printer);
-
type in the resolution in meters
in the fields Res.: _X: and Y:, in the case the entity is
a sample of MNT (DTM) or Break Line (DTM);
-
in case you don't have a loaded project it will be necessary to
define a projection, so click on the button Projection...
and provide the needed parameters (see how to use the window "Projections");
-
use the button
Bounding
Box... to define a rectangle smaller than the one of
the loaded project. In case there is a loaded project, these values
should be informed in the window "Bounding Box...";
-
type in the name of a Project (maximum
32 characters) in case you do not have loaded one;
-
click on the button Category...
to choose the category to which the IL that will be created will belong
to. The window "Categories
List" is presented. Select
one category from the list equivalent to the model to which the data to
be created belongs (Thematic, Cadastral, Network, or Numeric);
-
type in the name of the IL to be
created or inform the name of one that belongs to the loaded Project,
but do not forget to click on the Mosaic check box in this last
case;
-
click on Execute to
perform the importation.
NOTE 1: In the case of any error verify
the parameters provided above, mainly if the data model of the external data
corresponds to the one chosen in the category.
NOTE 2: The following items must be
checked so that the importation is successful:
·
If the measure unit informed in
the importation window is correct( the default unit in the importation window
is meters and the data can be in degrees, kilometers or others);
·
If the bounding box is correct
according to the data
·
If the projection data are equal
(if they are not, inform in the importation interface the source projection,
so that the importation is performed with remapping).
Importation of DXF/DWG data
In order for SPRING to
recognize in its file list the format DXF/DWG, the file should have the following
extension:
Importing
DXF/DWG data:
-
load a database (
)
and define the categories that will receive the external data, in case
they do not exist.
-
load a Project (
) that will have to enclose the coordinates of the data from the
external file, or the parameters to create one will be requested, in
case one is not loaded;
-
click on File and
select Import... . The window "Import"
will be presented;
-
use the button
Directory... to navigate to the
directory where the file to be imported resides or type in the path to
the file and click on the button CR.
-
select in Format:
DXF/DWG. If there are files with the corresponding extension, they will
be presented in the list underneath;
-
select the desired file from the
list;
-
click on Layer... .
The window "Layers"
will be presented to select the layer(s). It can be verified
in this window the layer content and some transformations can be
performed in the DXF/DWG data to correct the positioning (Delta X and Delta
Y), rotation and scale, so that it is geographically adjusted with the
active project;
-
after selecting the layer(s)
note that the name of the
layer must be in the text box in front of the button;
-
click in Entity: and
choose among:
-
Line without adjust - imports 2D lines
for IL's of the thematic, cadastral or network types. The lines won't
be adjusted or polygonized in case they define closed areas;
-
Line with adjust - imports 2D lines
and adjusts the nodes with tolerance 0 (zero), that is, the end of two
lines should be in the same point so that the system recognizes the
connection between them. Useful for lines in thematic, cadastral, or
network IL's. The polygonalization is not done in case the lines define
closed areas;
-
Line with topology - imports 2D lines
and adjusts the nodes with 0 (zero) tolerance and polygonizes, that is,
creates the polygons if the lines define closed areas. Useful for
polygons of thematic or cadastral IL's. If you use this option with
lines of a category of the network model the polygonalization will not
be performed. The processing will be the same as in the option before.
-
Labels - imports the
classification (labeling) of polygons only for thematic or cadastral
type IL's. A layer of text must exist containing the origin of each
text (lower left corner) internal to each polygon. If the active
IL is thematic it will be enough to choose the entity, otherwise the
window "DXF/DWG
Text Selection"will be presented to filter the type of text and the prefix or
suffix that will be added to each text identifying the objects in the
map;
-
Point 2D - imports 2D points into a
thematic or cadastral IL;
-
Sample (MNT) - imports 3D contour
lines and 3D points into an IL of the numeric type. One must have the
height Z associated to each LINE, POLYLINE or POINT in the origin file.
-
Break Line (MNT) - imports 2D lines
into numeric IL's;
-
Regular Grid/Matrix - NOT available for DXF/DWG;
-
Text - imports one layer from
the DXF/DWG as toponymy into any type of IL, be it thematic, cadastral,
images or network;
-
select the unit for the data in Unit:
m, km, feet, pol., degrees, sec., mm.
-
type in the Scale for the
IL that will be created. It is suggested to keep the same scale of the
base, or define a scale that will be used by your output device (for
example a printer);
-
type in the resolution in meters
in the fields Res.:_X: and Y:, in the case the entity is a
sample of MNT (DTM);
-
in case you don't have a loaded project it will be necessary to
define a projection, so click on the button Projection...
and provide the needed parameters (see how to use the window "Projections");
-
use the button
Bounding Box... to define a
rectangle smaller than the one of the loaded project. In case there is a
loaded project, these values should be informed in the window "Bounding Box...";
-
type in the name of a Project (maximum
32 characters) in case you do not have loaded one;
-
click on the button Category...
to choose the category to which the IL that will be created will belong
to. The window "Categories
List" is presented. Select
one category from the list equivalent to the model to which the data to
be created belongs (Thematic, Cadastral, Network, or Numeric);
-
type in the name of the IL to be
created or inform the name of one that belongs to the loaded Project,
but do not forget to click on the Mosaic check box in this last
case;
-
click on Execute to
perform the importation.
NOTE 1: In the “Layers” window, some
transformations on the data that are in the DXF/DWG can be performed to correct
the positioning (Delta X and Delta Y), rotation and scale, so that it will be
geographically adjusted with the loaded project.
NOTE 2: In
the case of any error verify the parameters provided above, mainly if the
data model of the external data corresponds to the one chosen in the
category.
NOTE 3: The
following items must be checked so that the importation is successful:
·
If the measure unit informed in
the importation window is correct( the default unit in the importation window
is meters and the data can be in degrees, kilometers or others);
·
If the bounding box is correct
according to the data
If the projection data
are equal (if they are not, inform in the importation interface the source
projection, so that the importation is performed with remapping).

Importation of SHAPEFILE
data
In order for SPRING to
recognize in its file list the format Shape the file should have the
following extension:
NOTE: The direct importation of a
SHAPEFILE is valid only for IL's of the CADASTRAL model or NETWORK. In the case of a thematic only
the lines/points will be imported. For the other models it is recommended the
use of the converter window “File->Convert to ASCII_SPRING” and then
import the ASCII-SPRING file generated.
Importing SHAPEFILE data:
-
load a database (
) and define the categories that will receive the external data,
in case they do not yet exist;
-
load a Project (
) that should include the coordinates of the data in the external
file, otherwise the parameters to create a project will be requested, in
case one is not loaded;
-
click on File and
select Import... . The "Import" dialog will be
presented;
-
click on the Directory...
button to select the directory where the file to be imported is, or type
in the path and click on the CR button.
-
in
Format: you select SHAPEFILE. If there are any
files with the corresponding extension they will be presented in the
list underneath;
-
click on the file name in the
list;
-
select the unit for the data in Unit: m, km, feet, pol., degrees,
sec., mm.
-
type in the Scale for the IL
that will be created. It is suggested to keep the same scale of the
base, or define a scale that will be used by your output device (for
example a printer);
-
in case you don't have loaded project it will be necessary to
define a projection, so click on the button Projection...
and provide the needed parameters (see how to use the window "Projections");
-
use the button
Bounding
Box... to define a rectangle smaller than the one of
the loaded project. In case there is a loaded project, these values
should be informed in the window "Bounding Box...";
-
type in the name of a Project
(maximum 32 characters) in case you do not have loaded one;
-
click on the button Category... to choose
the category to which the IL that will be created will belong to. The
window "Categories
List" is presented. Select one
category from the list equivalent to the model to which the data to be
created belongs (Thematic, Cadastral, Network, or Numeric);
-
type in the name of the IL to
be created or inform the name of one that belongs to the loaded Project,
but do not forget to click on the Mosaic check box in this last case;
-
click on Execute to
perform the importation.
NOTE 1: In
the case of any error verify the parameters provided above, mainly if the
data model of the external data corresponds to the one chosen in the
category.
NOTE 2: The
following items must be checked so that the importation is successful:
·
If the measure unit informed in
the importation window is correct( the default unit in the importation window
is meters and the data can be in degrees, kilometers or others);
·
If the bounding box is correct
according to the data
If the projection data
are equal (if they are not, inform in the importation interface the source
projection, so that the importation is performed with remapping).
Importation of JPEG,
RAW, and SITIM data
Importing
JPEG, RAW AND SITIM images:
-
load a database (
) and define the categories that will receive the external data,
in case they do not yet exist;
-
load a Project (
) that should include the coordinates of the data in the external
file, otherwise the parameters to create a project will be requested, in
case one is not loaded;
-
click on File and
select Import... . The "Import" dialog will be
presented;
-
click on the Directory... button to
select the directory where the file to be imported is, or type in the
path and click on the CR button.
-
in
Format: you select JPEG, RAW, JPEG->JPEG or
SITIM. If there are any files with the corresponding extension they will
be presented in the list underneath. The option JPEG -> JPEG keeps
the image with that same format in SPRING but as a synthetic only;
-
click on the desired file name
in the list;
-
select the entity to which the
data belongs, that is, Image, Classified Image, or Synthetic Image;
-
type in the resolution: X: and Y: in meters for the
image that will be associated to the created IL;
-
for the RAW format
type in
the number of the image columns (Columns:),
number of the image lines (Lines:)
-
in case you haven't loaded a project it will be necessary to
define a projection, so click on the button Projection...
and provide the needed parameters (see how to use the window "Projections");
-
use the button
Bounding Box... to define a
rectangle smaller than the one of the loaded project. In case there is a
loaded project, these values should be informed in the window "Bounding Box...";
-
type in the name of a Project (maximum
32 characters) in case you do not have loaded one;
-
click on the button Category...
to choose the category to which the IL that will be created will belong
to. The window "Categories
List" is presented. Select
one category from the list equivalent to the Image model;
-
type in the name of the IL to be
created or inform the name of one that belongs to the loaded Project,
but do not forget to click on the Mosaic check box in this last
case;
-
click on Execute to
perform the importation.
OBS: When selecting images in the SITIM
format, make sure that the descriptor file contains the images. See also if
the characters of the descriptor file name and of the images use the same
font, that is, all in capital or lower case letters.
IMPORTANT: Since the images to be imported are not georeferenced they
should be imported into a box (bounding box) with the same number of lines
and columns, otherwise they should be converted from the formats RAW and
SITIM into the GRIB format, by the use of the IMPIMA module. After having an image in the GRIB
format, you can acquire control points and afterwards perform the
registration.
NOTE: The importation
of the JPEG -> JPEG format does not allow for the change in Projection, so
for example, if your JPEG was generated in UTMSAD69, it can only be imported
into a project of the same projection.

See also:
Definition
of Database
Definition
of the Conceptual Scheme
How
to IMPORT SGI data ?
How
to IMPORT GRIB images ?
How
to EXPORT data ?
How
to convert SHAPEFILE, MID/MIF, E00 and DBF into ASCII-SPRING ?
|