Project of a digital map |
Project of a digital map is a set of spatial data containing a complex representation of a territory in the form of vector maps of different levels of detail, rasters (images of the terrain), elevation matrixes and matrixes of qualitative characteristics of the terrain, insets from the same data, the links to data from the GIS Server and from geoportals under various protocols. The user can set the data display order, composition of displayed objects, range of display scales, palette, brightness, contrast, flag of displaying (you can work with a matrix of heights without displaying it), flag of editing and other data properties. The list of open datasets and the specified properties are stored in a text file of the project with the MPT extension, which has the same structure as INI files. The path to the main map of the project is specified in the [MAP] section in the «PATH=» line. Strings containing UTF-8 characters are written after the symbols %=%. For example: PATH1%=%Noginsk.sitx
If a data set is located in the same directory as the MPT file or in a subdirectory, then the path to it is written relative to the MPT file. For example: PATH2=rsw\photo.rsw
The composition of displayed layers and map objects can be written in the form of an xml section, to which the VIEWSELECT property refers. For example: [MAP] PATH=map\noginsk.mptz VIEWSELECT=#xml#vclx [#xml#vclx] <model name="DialogsState" draw="0" level="0"> <locals>polygon</locals> <segments> vegetation,hydrogr,settlements </segments> <objects mode="0"> 253-000-S,416-000-S,308-020-S,293-000-S,a_var_water,D-43400000-S,D-45142000-S,S0041100000,S0042100001,S0041100001 </objects> </model> [SITELIST]
The main map can be a vector, a raster or a matrix one. Saving a project is done through the main menu File - Save as. The opening of project is carried out via the Open item. OLE-objects drawn onto the map are saved in a file with the OMP extension. The name of the OMP file must be the same as the name of the saved project. If the OMP file does not exist, it is automatically created when the project is opened. All data sets of the project, documents and graphics files referenced on the map, and the file of project can be packed into one compressed file - an MPTZ project.
Example of a project's file:
[MAP] PATH=map\noginsk.mptz SCALE=500000 SCALETOP=320000000 VIEWSELECT=#xml#vclx [#xml#vclx] <model name="DialogsState" draw="0" level="0"> <locals>polygon</locals> <segments> vegetation,hydrogr,settlements </segments> <objects mode="0"> 253-000-S,416-000-S,308-020-S,293-000-S,a_var_water,D-43400000-S,D-45142000-S,S0041100000,S0042100001,S0041100001 </objects> </model> [SITELIST] PATH1%=%HOST#gisserver.ru#2047#ALIAS#Ногинск PATH2=graph\noginsk_graph.sitz VISIBLE2=0 PATH3=map\user.sitx VIEWSELECT3=#xml#vclx3 PATH4=border\border.sitz COUNT=4 [#xml#vclx3] <model name="DialogsState" draw="0" level="0"> <locals>line</locals> <segments> indust,road,boundss,hydrogr,electr,social,routes,territories </segments> <objects mode="0"> 262-100-L,L0031220000,328-000-L,255-200-L,163-200-L,189-100-L,214-000-L,212-100-L,218-100-L,211-000-L,286-700-L,286-800-L,281-300-L,280-300-L,218-300-L,183-000-L,206-400-L,085-100-L,084-500-L,L00513191002,L00513191007,L00513191009,217-000-L,218-110-L,221-000-L </objects> <semantics condition="and"> <item>2,more,1</item> </semantics> </model> COUNT=2 [RSTLIST] PATH1=rsw\emblem.rsw OVERMAP1=1 PATH2=rsw\photo.rsw OVERMAP2=1 COUNT=2 [MTRLIST] COUNT=0 [MTQLIST] COUNT=0 COUNT=0 [TINLIST] COUNT=0 [MTLLIST] COUNT=0 [MTDLIST] COUNT=0 [WMSLIST] COUNT=0 [INSET] PATH1=sheme\mosarea.sitx NAME1=mosarea.sitx PLACE1=0 SCALE1=100000 TOP1=40000000 FPX1=0.972676 FPY1=0.672451 SPX1=0.970998 SPY1=0.676031 FFX1=5994286.758049 FFY1=7607927.345149 PLACETYPE1=GEO TRANSPARENCE1=0 DCOLOR1=16777215 BCOLOR1=0 BTHICK1=260 COUNT=1
|