Other ASCII files

[ LINES ]   [ POINTS ]   [ POINT2D ]   [ SAMPLE ]   [ GRIDREG ]   [ TABLE ]   [ TEXT ]   [ POLYGONS ]   [ NETWORK ]   [ NETWORK_OBJECTS ]


POLYGONS

A POLYGONS file type can be used by a thematic or cadastral map. However, when there are polygons in map for both models, the lines behave like islands. The figure below shows two polygons imported from a file of this type, where visually the common line for both polygons are not perceived, but keep in mind that in the polygons adjacency there is a line duplication.

The first line of the file is the keyword POLYGONS. This line starts the identification section, which is a mandatory section. For the POLYGONS entity the information section is not mandatory.

The general format of the ASCII file for the POLYGONS entity is presented in the next example.

The first line of the file is the keyword POLYGONS. This line is the identification section, which is mandatory. For this entity the information section is not mandatory, thus the following options are available:

  • Keyword INFO, identifying the beginning of the information section, which ends with the INFO_END, but this section is not mandatory, or
  • Values X Y or LONG LAT of the first point of the line. This option for the second line only happens if there is no information section in the file.

The end of each polygon is marked by the keyword END, and the sequence END END shows the end of the data section in the file. There is no constraint related to the number of instances in a file. The lines can represent linear features, or areas (polygons) formed by closing lines, that is islands.

A polygon file of a thematic map is the same as a cadastral, the only difference is if the (POINTS) identification file associated to it is used to identify the thematic classes or the cadastral objects.

The general format of the ASCII file for the POLYGONS entity is presented in the next example. Notice that the starting and ending coordinates for each polygon are the same, defining the island closing.


POLYGONS
INFO
//Arcs without Topology
//ASCII file generated by SPRING system
//Project: Brasilia - Information Layer: Blocks_Map
//Category: Cad_Urbano  - Model: CADASTRALMODEL
DATUM	SAD69, 6378160.000000, 0.003353, 0.000000, 0.000000, 0.000000
PROJECTION	UTM/SAD69, 1, 0.000000, -0.785398, 0.000000, 0.000000
BOX	181990.505000, 8241710.956000, 202826.190000, 8262907.402000
UNITS Meters
SCALE	25000.000000
INFO_END
187051.833456     8247108.384885
186759.005233     8246878.261618
186715.830074     8246929.444645
186876.435534     8247340.335304
187051.833456     8247108.384885
END
186759.005233     8246878.261618
187051.833456     8247108.384885
187251.599732     8246839.536347
186950.949420     8246602.289567
186759.005233     8246878.261618
END
187251.599732     8246839.536347
187051.833456     8247108.384885
187362.304284     8247331.333811
187563.203921     8247076.458311
187251.599732     8246839.536347
END
END

NOTE: By default when exporting a polygon file the file name extension is "spr", added to the suffix"_POL" to the IL name, that is, *_POL.spr. However, when importing, if the file was generated by a different system, it has to have the "spr" extension in the file name. The user should select the "Polig. and Identif." option in the>" Exporting" window. Besides the *_POL.spr file it will be created the file *.LAB.spr (POINTS type), as in the "Lines and Identif." option.



About ASCII formats

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 ]