CN101957839A - Map file format - Google Patents

Map file format Download PDF

Info

Publication number
CN101957839A
CN101957839A CN2010102818242A CN201010281824A CN101957839A CN 101957839 A CN101957839 A CN 101957839A CN 2010102818242 A CN2010102818242 A CN 2010102818242A CN 201010281824 A CN201010281824 A CN 201010281824A CN 101957839 A CN101957839 A CN 101957839A
Authority
CN
China
Prior art keywords
file
map
information
form according
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010102818242A
Other languages
Chinese (zh)
Inventor
黄学民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SUZHOU NG NETWORKS CO Ltd
Original Assignee
SUZHOU NG NETWORKS CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SUZHOU NG NETWORKS CO Ltd filed Critical SUZHOU NG NETWORKS CO Ltd
Priority to CN2010102818242A priority Critical patent/CN101957839A/en
Publication of CN101957839A publication Critical patent/CN101957839A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a map file format. The map file format comprises a level description file, a display file, a general picture file and at least one map blocking file, wherein the level description file is used to store the description information and setting content of a map; the display file is used to define the mapping relationship from data to a color table; the general picture file is used to display the general picture of the entire map; and the map blocking file is used to record the blocked map information. By using the map blocking file format of the invention to store the blocked map information, the problem how massive map data are reasonably used under the premise of limited memory capacity can be effectively solved.

Description

A kind of map file form
Technical field
The present invention relates to a kind of file layout, be specifically related to a kind of map file form.
Background technology
Along with popularizing of computer utility; electronic chart is applied to various fields more and more widely; comprise that E-Government, territory planning, public security are emergent, traffic, aviation, water conservancy, the energy, mapping, forestry, tourism, communication, environmental protection, military and national defense, real estate etc., become requisite basic data in numerous infosystems by the represented geographic information data of electronic chart.A lot of application programs need to use electronic three-dimensional map in calculating, these electronic three-dimensional maps are normally deposited in the mode of grid, need take more internal memory.Especially high-resolution electronic three-dimensional map, its data volume tend to surpass the memory size (about 2-4GB) that active computer often has, therefore usually can be owing to the internal memory overload causes the application program operation slowly.
How under the limited prerequisite of memory size, reasonably use the magnanimity map datum, become the key that a lot of application programs promote operational performances.We propose a kind of method that the map piecemeal is deposited for this reason, and application program is each only calls in internal memory to the segment that needs in the actual operation to use, rather than calls in whole map, thereby has significantly reduced the internal memory that map datum takies.
Summary of the invention
In order to realize the piecemeal storage of electronic chart, the object of the present invention is to provide a kind of map file form, realize by the following technical solutions:
A kind of map file form comprises following file under same catalogue: a layer description document, and described layer description document is used to preserve the descriptor of map and content is set; And at least one map divides block file, and described map divides block file to be used to write down the information of piecemeal map.
Further, described map file form also comprises a display file, and described display file is used for the mapping relations of definition of data to color table.
Further, described map file form also comprises a general picture map file, and described general picture map file is used to show the general picture of whole map.
Further, described layer description document is an ascii text file, file extent is called .ldf, described display file is an ascii text file, file extent is called .prs, and described general picture map file is a bitmap file, and file extent is called .BMP, it is a binary file that described map divides block file, does not have file extension.
Further, the definition of described layer description document comprises at least: map divides the file name information of block file; Described map divides the data description information of block file; And, layer descriptor.
Further, described map divides the information of blocking of record map in the block file to comprise: the data of piecemeal map file name and piecemeal map.
Further, described piecemeal map file name comprises: a prefix character string as the segment filename; The Position Number of one segment comprises horizontal ordinate numbering and ordinate numbering; And, be used to separate the character that described prefix character string, horizontal ordinate numbering and ordinate are numbered.
Further, the location label of described segment is from a BOB(beginning of block) in the lower left corner of map, and the horizontal ordinate label of first segment is 01, the ordinate label is 01, and the maximum numbering of described horizontal ordinate label and ordinate label is 99.
Further, the data storage of described piecemeal map is begun by the lower left corner in a continuous array, by from left to right, series arrangement from bottom to top.
Further, described display file comprises following information: file header information, described file header information are the catalogue of whole file; Data value look-up table, described data value look-up table are the contrast relationship tables between a data value and the color index; The name lookup table, described name lookup table provides the another name of described color index; Color table, described color table define color itself; 16 kinds of gray value informations; 16 kinds of color value information; And, a label information of describing map style.
Map file form of the present invention has following beneficial effect:
Utilize map piecemeal file layout of the present invention when the map piecemeal is deposited, solved the problem of under the limited prerequisite of memory size, reasonably using the magnanimity map datum effectively.Application program is each only calls in internal memory to the segment that needs in the actual operation to use, rather than calls in whole map, thereby has significantly reduced the internal memory that map datum takies.
The present invention is described in further detail below in conjunction with the drawings and specific embodiments.
Description of drawings
Fig. 1 is a map file form theory diagram of the present invention.
Fig. 2 is the synoptic diagram of an embodiment of map file form of the present invention.
Fig. 3 is the synoptic diagram of the location label of segment of the present invention.
Fig. 4 is the arrangement synoptic diagram of the data of piecemeal map of the present invention.
Embodiment
Referring to Fig. 1, shown in Figure 2, a kind of map file form comprises following file under same catalogue:
A layer description document 1, described layer description document 1 is used to preserve the descriptor of map and content is set;
A display file 2, described display file 2 is used for the mapping relations of definition of data to color table;
A general picture map file 3, described general picture map file 3 is used to show the general picture of whole map;
And at least one map divides block file 4, and described map divides block file 4 to be used to write down the cartographic information of piecemeal.
Further, described general picture map file 3 is a bitmap file, and file extent is called .BMP.
Further, the file extent of described layer description document 1 ldf by name, this document is simple ASCII text file, comprising plurality of sections, each section is all with the section name beginning in the bracket, for example: [mySection], every section clauses and subclauses all have following form:
Item_name=(data_type)item_value
As: Multiplier=(double) 1.0.
Described layer description document 1 necessary called after LAYERDESCRIPTIONFILE.LDF, typical example is as follows:
[Common]
Date =(cstring)″20.07.1997″
Version =(cstring)″1.0.0″
[Filenames]
Prefix =(cstring)″Topo50″
Delimiter =(cstring)″_″
XSuffix =(cstring)″00″
YSuffix =(cstring)″00″
[DataDescription]
XPixel =(long) 600
YPixel =(long) 600
BitsPerPixel =(long) 16
PixelDataType =(cstring)″short″
ByteOrder =(cstring)″BigEndian″
FileType =(cstring)″Binary″
Multiplier =(double) 1.0
Offset =(double) 0.0
MappingFile =(cstring)″″
PresentationFile =(cstring)″topo.prs″
[LayerDescription]
TypeID =(cstring)″LuS″
DataType =(cstring)″Topo″
DefaultLayerName =(cstring)″Topo?50?BW″
CoordSystem =(cstring)″GK3 DHDN-″
ReferencePoint =(cstring)″LowerLeftCorner″
Units =(cstring)″m″
RefPointX =(double) 3450050.0
RefPointY =(double) 5300100.0
AreaExtendX =(double) 210000.0
AreaExtendY =(double) 210000.0
ResolutionX =(double) 50.0
ResolutionY =(double) 50.0
DefaultValue =(double) 0.0
ColourTable =(cstring)″Rainbow″
[Info]
Comment =(cstring)″Kommentar″
MinValue =(double) 200
MaxValue =(double) 2000.0
Wherein, Date represents the date of map building in the formula, and date format is " dd.mm.yyyy ";
Version represents the version of map, and the form of version is " major.minor.fix ", the agreement that following table 1 is used for start context:
Table 1
Figure BSA00000269927300051
Figure BSA00000269927300061
Perfix: divide the character string of block file filename prefix as map, mostly be 9 letters most, special symbol as " _; / ﹠amp; " can not use;
Delimiter: be used to separate prefix character string and x-tile, the character of y-tile numeral can only be used underscore " _ " at present;
XSuffix, YSuffix: give x-tile or y-tile the numeral of numbering, its form is two a numeral, as " 01 ";
XPixel, YPixel: the integer of two long types, represent that what pixels each map block laterally or vertically respectively has, and is generally 600;
BitsPerPixel: the integer of a long type, the bit number of each pixel in the expression map;
PixelDateType: a character string shows the pairing data type of pixel in the map;
ByteOrder: a character string shows the order of byte;
FileType: a character string shows the file type of map;
Multiplier, Offset: the floating number of two double types is used to adjust the size of data;
MappingFile: it is standby to reserve definition;
PresentationFile: the filename of " display file ", this document must with layer description document in same catalogue;
TypeID: inner string token is used to write down the customer service type;
DataType: the character string of graph type explanatorily;
DefaultLayerName: the figure layer name of using in the application program;
CoordSystem: a character string, the coordinate system that is used for this map is described, following table 2 is listed available coordinate system title at present:
Table 2
Figure BSA00000269927300071
Figure BSA00000269927300081
ReferencePoint: a character string illustrates that on the map which point is the starting point as piecemeal;
Units: the unit of x and y value in the layer description document;
RefPointX/Y: the floating number of two double types is used to represent the geographic coordinate of reference point " ReferencePoint ";
AreaExtendX/Y: the floating number of two double types, the expression map is in the scope of thing and North and South direction, and unit is " Units ";
ResolutionX/Y: the floating number of two double types, the resolution of definition map is unit with " Units ";
DefaultValue: this default value is the floating number of a double type, is used for the pixel that outline map does not have data;
ColourTable: the title of expression map color;
Comment: note;
MinValue: the floating number of a double type shows the minimum value that may occur in the map;
MaxValue: the floating number of a double type shows the maximal value that may occur in the map.
Further, described Perfix, Delimiter, XSuffix and YSuffix constitute the file name information that map divides block file.
Further, described XPixel, YPixel, BitsPerPixel, PixelDateType, ByteOrder, FileType, Multiplier, Offset, MappingFile and PresentationFile constitute the data description information that map divides block file.
Further, described TypeID, DataType, DefaultLayerName, CoordSystem, ReferencePoint, Units, RefPointX/Y, AreaExtendX/Y, ResolutionX/Y, DefaultValue and ColourTable constitute layer descriptor.
Further, a plurality of fritters of map segmentation, the size of every fritter segment is generally 600 row, 600 pixels of every row, such information that segment comprised has constituted described map and has divided block file 4.
Further, it is a binary file that described map divides block file 4, does not have file extension.
Further, described map divides the information of blocking of record map in the block file 4 to comprise: the data of piecemeal map file name and piecemeal map.
Further, described piecemeal map file name comprises: a prefix character string as the segment filename; The Position Number of one segment comprises horizontal ordinate numbering and ordinate numbering; And, be used to separate the character that described prefix character string, horizontal ordinate numbering and ordinate are numbered.The location label of described segment is from a BOB(beginning of block) in the lower left corner of map, the horizontal ordinate label of first segment is 01, the ordinate label is 01, the maximum numbering of described horizontal ordinate label and ordinate label is 99, as shown in Figure 3, title is the prefix character string of segment filename among the figure, x is the horizontal ordinate numbering, and y is the ordinate numbering.
Further, the data storage of described piecemeal map is begun by the lower left corner in a continuous array, by from left to right, series arrangement from bottom to top, as shown in Figure 4, the size that define every piecemeal segment is 600 capable, 600 pixels of every row.
Further, the file extent of described display file 3 .prs by name and described map divide block file 4 and described layer description document 1 to leave under the same catalogue, use the filename of PresentionFile definition in the described layer description document 1.
Further, described display file 3 is ASCII text file, and wherein definition comes display map data with which type of color, and it comprises following information: Header: file header information, described file header information are the catalogue of whole file; ValueLookUp: data value look-up table, described data value look-up table are the contrast relationship tables between a data value and the color index; NameLookUp: the name lookup table, described name lookup table provides the another name of described color index; ColorTable: color table, described color table define color itself; GrayScale16:16 kind gray value information; GrayScale8:8 kind gray value information, predefine is standby; Reduced16:16 kind color value information; And, Type a: label information of describing map style.
Be the example of a display file 3 below:
[Header]
;<SectionName><NbrOfentries>
ValueLookUp?128
NameLookUp 160
ColorTable 160
GrayScale16 16
GrayScale8 8
Reduced16 16
Type 1
[Type]
TOPO
[ValueLookUp]
;<from><Lo><colorLableindex>
-32767 -32256 0
-32255 -31744 1
-31743 -31232 2
-31231 -30720 3
-30719 -30208 4
-30207 -29696 5
[..]
27649 28160 118
28161 28672 119
28673 29184 120
29185 29696 121
29697 30208 122
30209 30720 123
30721 31232 124
31233 31744 125
31745 32256 126
32257 32768 127
[NameLookUp]
;<colorindex><colorname>
0?ColorName?0
1?ColorName?1
2?ColorName?2
3?ColorName?3
4?ColorName?4
[..]
153?ColorName?153
154?ColorName?154
155?ColorName?155
156?ColorName?156
157?ColorName?157
158?ColorName?158
159?ColorName?159
[ColorTable]
;<colorindex><Red><Green><Blue>
0 254 0 0 0 0
1 254 7 0 0 0
2 254 15 0 0 0
3 254 23 0 0 0
4 254 31 0 0 0
[..]
144 0 0 0 0 0
145 15 15 15 0 1
146 31 31 31 0 2
147 47 47 47 0 3
148 63 63 63 0 4
149 79 79 79 0 5
150 95 95 95 0 6
151 111 111 111 0 7
152 127 127 127 0 0
153 143 143 143 0 1
154 159 159 159 0 2
155 175 175 175 0 3
156 191 191 191 0 4
157 207 207 207 0 5
158 223 223 223 0 6
159 239 239 239 0 7
[GrayScale?16]
;<colorindex><colorLableindex>
0 144
1 145
2 146
3 147
4 148
5 149
6 150
7 151
8 152
9 153
10?154
11?155
12?I56
13?157
14?158
15?159
[GrayScale8]
;<colorindex><colorLableindex>
0 145
1 147
2 149
3 151
4 153
5 155
6 157
7 159
[Reduced16]
;<colorindex><colorLableindex>
0 128
1 129
2 130
3 131
4 132
5 133
6 134
7 135
8 136
9 137
10?138
11?139
12?140
13?141
14?142
15?143
The foregoing description just is to allow the one of ordinary skilled in the art can understand content of the present invention and enforcement according to this for technical conceive of the present invention and characteristics being described, its objective is, can not limit protection scope of the present invention with this.The variation or the modification of every equivalence that the essence of content has been done according to the present invention all should be encompassed in protection scope of the present invention.

Claims (10)

1. a map file form is characterized in that, comprises following file under same catalogue:
A layer description document (1), described layer description document (1) are used to preserve the descriptor of map and content are set;
And at least one map divides block file (4), and described map divides block file (4) to be used to write down the information of piecemeal map.
2. map file form according to claim 1 is characterized in that: described map file form also comprises a display file (2), and described display file (2) is used for the mapping relations of definition of data to color table.
3. map file form according to claim 1 and 2 is characterized in that: described map file form also comprises a general picture map file (3), and described general picture map file (3) is used to show the general picture of whole map.
4. map file form according to claim 3, it is characterized in that, described layer description document (1) is an ascii text file, file extent is called .ldf, and described display file (2) is an ascii text file, and file extent is called .prs, described general picture map file (3) is a bitmap file, file extent is called .BMP, and it is a binary file that described map divides block file (4), does not have file extension.
5. map file form according to claim 1 is characterized in that, the definition of described layer description document (1) comprises at least:
Map divides the file name information of block file;
Described map divides the data description information of block file;
And, layer descriptor.
6. map file form according to claim 1 is characterized in that, described map divides the information of blocking of record map in the block file (4) to comprise: the data of piecemeal map file name and piecemeal map.
7. map file form according to claim 6 is characterized in that, described piecemeal map file name comprises:
One prefix character string as the segment filename;
The Position Number of one segment comprises horizontal ordinate numbering and ordinate numbering; And,
Be used to separate the character of described prefix character string, horizontal ordinate numbering and ordinate numbering.
8. map file form according to claim 7, it is characterized in that, the location label of described segment is from a BOB(beginning of block) in the lower left corner of map, and the horizontal ordinate label of first segment is 01, the ordinate label is 01, and the maximum numbering of described horizontal ordinate label and ordinate label is 99.
9. map file form according to claim 6 is characterized in that, the data storage of described piecemeal map is begun by the lower left corner in a continuous array, by from left to right, series arrangement from bottom to top.
10. map file form according to claim 2 is characterized in that, described display file (3) comprises following information:
File header information, described file header information are the catalogue of whole file;
Data value look-up table, described data value look-up table are the contrast relationship tables between a data value and the color index;
The name lookup table, described name lookup table provides the another name of described color index;
Color table, described color table define color itself;
16 kinds of gray value informations;
16 kinds of color value information;
And, a label information of describing map style.
CN2010102818242A 2010-09-15 2010-09-15 Map file format Pending CN101957839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102818242A CN101957839A (en) 2010-09-15 2010-09-15 Map file format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102818242A CN101957839A (en) 2010-09-15 2010-09-15 Map file format

Publications (1)

Publication Number Publication Date
CN101957839A true CN101957839A (en) 2011-01-26

Family

ID=43485169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102818242A Pending CN101957839A (en) 2010-09-15 2010-09-15 Map file format

Country Status (1)

Country Link
CN (1) CN101957839A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779165A (en) * 2012-06-21 2012-11-14 上海众恒信息产业股份有限公司 Building method of grid map picture base
CN103365911A (en) * 2012-04-06 2013-10-23 腾讯科技(深圳)有限公司 Map space indexing method and system based on two dimension partitioned structure
CN104216919A (en) * 2013-06-05 2014-12-17 北京千橡网景科技发展有限公司 Method and system for perfecting electronic map data
WO2016107440A1 (en) * 2014-12-31 2016-07-07 高德软件有限公司 Method and apparatus for generating and displaying an electronic map
CN107231817A (en) * 2016-01-25 2017-10-03 谷歌公司 Reduce the time delay in map interface
CN107615271A (en) * 2015-12-30 2018-01-19 深圳配天智能技术研究院有限公司 Character string retrieving method and device
CN108460112A (en) * 2018-02-09 2018-08-28 上海思岚科技有限公司 map storage method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365911A (en) * 2012-04-06 2013-10-23 腾讯科技(深圳)有限公司 Map space indexing method and system based on two dimension partitioned structure
CN102779165A (en) * 2012-06-21 2012-11-14 上海众恒信息产业股份有限公司 Building method of grid map picture base
CN104216919A (en) * 2013-06-05 2014-12-17 北京千橡网景科技发展有限公司 Method and system for perfecting electronic map data
CN104216919B (en) * 2013-06-05 2018-09-07 捷讯平和(北京)科技发展有限公司 Method and system for improving electronic map data
WO2016107440A1 (en) * 2014-12-31 2016-07-07 高德软件有限公司 Method and apparatus for generating and displaying an electronic map
CN107615271A (en) * 2015-12-30 2018-01-19 深圳配天智能技术研究院有限公司 Character string retrieving method and device
CN107231817A (en) * 2016-01-25 2017-10-03 谷歌公司 Reduce the time delay in map interface
CN108460112A (en) * 2018-02-09 2018-08-28 上海思岚科技有限公司 map storage method and system

Similar Documents

Publication Publication Date Title
CN101957839A (en) Map file format
CN101908060B (en) Manufacturing method, display method and system of vector numerical map
CN106782034B (en) Flood prevention and drought resistance data localization map publishing and rendering method and system
CN105528460A (en) Establishing method of tile pyramid model and tile reading method
CN103500060B (en) The manufacture method of electronic chart, producing device, display packing and display device
CN107977407A (en) tile map storage method, device, storage medium and computer equipment
CN106534478A (en) Map information display system based on asynchronous loading
CN103996372A (en) LED display screen and a display control method
CN104166695A (en) Subdivision, query and dynamic display method oriented to remote sensing data content
CN105354291B (en) A kind of raster data index and querying method
CN102324100A (en) Real-time color acquiring method and device based on camera of mobile terminal
CN103678657B (en) Method for storing and reading altitude data of terrain
CN103544247A (en) GIS display method and system
CN115687675A (en) Airborne vector map data processing method
Mahammad et al. GeoTIFF-A standard image file format for GIS applications
CN103699641A (en) Method for accessing different raster map services
CN106453822A (en) Map information display method based on asynchronous loading
US9794373B1 (en) System and method for ensuring anonymity of user travel and navigation data through hashing
CN102103600B (en) Map building method and map system
CN112486488A (en) Page self-adaption method applied to government affair service terminal
CN102508888A (en) File compression storage and indexing method for improving map access efficiency
CN101813485B (en) Electronic map based on geographic information data and navigation method thereof
CN104463634B (en) A kind of autonomous advertisement delivery method in internet based on streetscape map
US9286705B1 (en) Presenting wireless-telecommunications coverage areas
CN206117732U (en) Cartographic data server system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20110126