Other ASCII files
[ LINES ] [ POINTS ] [ POINT2D ] [ SAMPLE ] [
GRIDREG
] [ TABLE ] [ TEXT ] [ POLYGONS ] [ NETWORK ] [ NETWORK_OBJECTS ]
LINES
This file type is used only for maps of the Thematic or Cadastral models.
When importing the user has to define if the file will define an IL of these two
models.
The first line of a file which has lines has to have the keyword LINES. This line
starts an identification section, which is a mandatory section. For the second
line there is the following options:
- Keyword INFO, identifying the information section beginning, which
ends with the INFO_END, but it is not mandatory, or
- X Y or LONG LAT values for the first point in the line. This option for
the second line only happens if the information section is not present.
At the end of each line the keyword END has to be present, and the sequence
END END indicates the end of the data section in the file. There is no
constraint about the number of entity instances in a file. The lines can represent
rivers, roads, or areas (polygons) formed by a single line (island) or several
lines (see the figure below and learn more about
vector elements structure).
NOTE: A line file from a thematic map is similar to the line file for a
cadastral map, the only difference is if the associated identification file
(POINTS), is used to identify thematic classes or cadastral objects.
The examples below present a thematic lines file (having 3 lines with
4, 5 and 4 points, respectively) and a cadastral lines file (having 1 line and 11 points):
LINES
INFO
// Arcs Without Topology
// ASCII file generated by the SPRING system
// project Proj1 information layer Uso1996
// category Uso model THEMATICMODEL
DATUM SAD69, 6378160.000000, 0.003353, 0.000000, 0.000000, 0.000000
PROJECTION UTM/SAD69, 0, 0.000000, -0.785398, 0.000000, 0.000000
BOX 181972.256980, 8241710.934769, 202825.187176, 8264137.640522
UNITS meters
SCALE 25000.000000
INFO_END
655187.857179 7407859.544576
655472.221629 7407885.411728
656385.634709 7407902.656496
657011.000000 7407708.000000
END
657011.000000 7407708.000000
657161.174117 7407661.229744
657454.155671 7407195.621008
657385.218834 7406643.788432
657348.312500 7406469.000000
END
657348.312500 7406469.000000
657195.642535 7405747.060496
657040.534653 7404867.577327
657089.625000 7404843.500000
END
END
|
LINES
INFO
// Arcs Without Topology
// ASCII File generated by the SPRING system
// project Proj1 information layer Mapa_rural
// category Cad_rural model CADASTRALMODEL
DATUM SAD69, 6378160.000000, 0.003353, 0.000000, 0.000000, 0.000000
PROJECTION UTM/SAD69, 0, 0.000000, -0.785398, 0.000000, 0.000000
BOX 181972.256980, 8241710.934769, 202825.187176, 8264137.640522
UNITS meters
SCALE 25000.000000
INFO_END
653998.696754 7408566.580065
654317.529622 7408540.712912
654524.340131 7408540.712912
654748.384848 7408506.223376
654851.790103 7408488.978608
654903.492730 7408488.978608
654972.429566 7408471.733840
655110.303239 7408454.489072
655230.942702 7408437.244304
655317.113747 7408419.999536
655368.816374 7408419.999536
END
END
|
The examples presented above could also be represented using geographical coordinates,
without the INFO section, as shown below:
LINES
w 43 28 5.241 s 23 27 43.096
w 43 27 43.299 s 23 27 31.609
END
w 43 26 59.128 s 23 27 8.821
w 43 26 51.894 s 23 27 5.089
w 43 26 2.798 s 23 27 5.414
END
w 43 28 5.241 s 23 27 43.096
w 43 28 6.842 s 23 28 2.839
END
w 43 28 6.842 s 23 28 2.839
w 43 28 7.347 s 23 28 11.148
END
END
|
NOTE: When exporting a lines file, by default, the file name extension is "spr",
with the "_L2D" suffix added to the IL's name, that is, *_L2D.spr.
However, for importing a file it has to have the "spr" extension, in case the
file was created in a different system.
About ASCII format
See about Importing/Exporting in the SPRING system
Other ASCII files
[ LINES ] [ POINTS ] [ POINT2D ] [ SAMPLE ] [
GRIDREG
] [ TABLE ] [ TEXT ] [ POLYGONS ] [ NETWORK ] [ NETWORK_OBJECTS ]
See also:
How to IMPORT data?
How to IMPORT data from the SGI?
How to IMPORT GRIB images?
How to EXPORT data?
|