CN108334579A - Place name identification number encoder, coding method and equipment based on space-time business - Google Patents
Place name identification number encoder, coding method and equipment based on space-time business Download PDFInfo
- Publication number
- CN108334579A CN108334579A CN201810071286.0A CN201810071286A CN108334579A CN 108334579 A CN108334579 A CN 108334579A CN 201810071286 A CN201810071286 A CN 201810071286A CN 108334579 A CN108334579 A CN 108334579A
- Authority
- CN
- China
- Prior art keywords
- code
- place name
- data
- administrative division
- space
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000004364 calculation method Methods 0.000 claims abstract description 33
- 238000012795 verification Methods 0.000 claims abstract description 15
- 238000003860 storage Methods 0.000 claims description 9
- 238000000605 extraction Methods 0.000 claims description 4
- 238000000205 computational method Methods 0.000 claims description 3
- 102100037060 Forkhead box protein D3 Human genes 0.000 claims description 2
- 101001029308 Homo sapiens Forkhead box protein D3 Proteins 0.000 claims description 2
- 238000013316 zoning Methods 0.000 claims description 2
- 239000000203 mixture Substances 0.000 abstract description 3
- 238000007726 management method Methods 0.000 description 5
- 230000009191 jumping Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 241000337007 Oceania Species 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of place name identification number encoder, coding method and equipment based on space-time business.For the encoder by coordinate acquisition module, geographical library module, business library module, grid library module, date generation module, counting library module, verification library module, calculation code module composition, it includes continent and international public domain code, countries and regions name code, administrative division code, following administrative division code at county level, place name geographical attribute class code, space lattice code, life cycle code, sequential counting code, check code to generate place name identification number.The place name identification number encoder realize can not only by between trade classification, timesharing, divide the place name identification number of establishment in a distributed manner of region, and the uniformity of number system can be realized again, improve the cross-platform association of information of place names cross-system, exchange, shared efficiency.
Description
Technical field
It place name identification number (place name ID) encoder, coding method based on space-time business that the present invention relates to a kind of and sets
It is standby, belong to geospatial information tissue, GIS-Geographic Information System field.
Background technology
The coding method of place name identification number is broadly divided into two classes at present.One kind is to take the coding of geographical entity semantic information into account
Mode.Include the classification information of geographic object in such coding mode, but such coding mode generally use administrative division is classified
Mode describes spatial information, and lacks the descriptive power to exact position.Moreover, place name is related to multiple service management by its type
Department, each department need according to this department, alone management coding.So there is common problem:Same place name geographical entity pair
As there are different codes in different system.Another kind of is spatial position coding mode, as Discrete Global grid encodes mould
Type.There is this kind of coding stronger spatial position descriptive power, described geographical entity location information can be accurate to centimetre
Grade.But the semantic information for lacking geographic object, lacks specific description to the classification belonging to geographic object.
Traditional place name ID coding methods can not take into account semanteme and the spatial positional information integration of place name ID, until place name is believed
Breath update, exchanges shared difficulty at association.
Invention content
Goal of the invention:For problems of the prior art, the present invention provides a kind of place name body based on space-time business
Part number encoder, coding method and computer equipment, realize can not only by between trade classification, timesharing, divide the distribution of region
Place name identification number is worked out on ground, and can realize the uniformity of number system again, and it is cross-platform to improve information of place names cross-system
Association exchanges, shared efficiency.
Technical solution:For achieving the above object, the present invention adopts the following technical scheme that:
A kind of place name identification number encoder based on space-time business, including:
Place name object coordinates acquisition module, for acquiring place name object information, described information includes the geographical entity of place name
The coordinate position and name information on area under one's jurisdiction boundary;
Fundamental Geographic Information Database module, for storing comprising continent and international public domain code, countries and regions
Name code, administrative division code, the geometric envelope center of geographical entity of following administrative division code at county level, area under one's jurisdiction boundary
Coordinate geographic information data;
Business classification type Knowledge Base Module, the ground ring service classification information data for storing geographical entity;
Space lattice Rule Information library module is used for the information data of storage ball mesh generation parameter;
Date generation module, for generating the life cycle information that the date is content either manually or automatically;
Sequential counting library module, for record same region, same to business, on the same day in the stored counts for having worked out place name;
Rule Information database module is verified, the data for storing verification Rule Information;
And calculation code module, obtain affiliated continent for being calculated according to the area under one's jurisdiction data boundary of place name geographical entity
With international public domain code, countries and regions name code, administrative division code and following administrative division code at county level, according to
The affiliated place name geographical attribute class code of information of place names data acquisition of place name geographical entity, according to the area under one's jurisdiction of place name geographical entity
Space lattice code is calculated in data boundary, based on above-mentioned code and date data and same region, same to business, on the same day in
Sequential counting code, according to preset format combination generate check code, obtain final place name identification number.
Preferably, the calculation code module in the place name identification number encoder based on space-time business includes:
Continent and international public domain code generation unit, the area under one's jurisdiction data boundary of the place name geographical entity for that will acquire
Area under one's jurisdiction data boundary corresponding with the continent stored in Fundamental Geographic Information Database and international public domain code is compared,
Continent belonging to obtaining and international public domain code;
Countries and regions name code generates unit, the area under one's jurisdiction data boundary and base of the place name geographical entity for that will acquire
The corresponding area under one's jurisdiction data boundary of countries and regions name code stored in plinth geographic information database is compared, and is obtained affiliated
Countries and regions name code;
Administrative division code generation unit, the area under one's jurisdiction data boundary and fundamental geological of the place name geographical entity for that will acquire
The corresponding area under one's jurisdiction data boundary of administrative division code stored in information database is compared, and obtains affiliated administrative division generation
Code;
Following administrative division code generation unit at county level, the area under one's jurisdiction data boundary of place name geographical entity for that will acquire and
The corresponding area under one's jurisdiction data boundary of following administrative division code at county level stored in Fundamental Geographic Information Database is compared, and is obtained
Affiliated following administrative division code at county level;
Geographical attribute class code generates unit, and the information of place names data for the place name geographical entity according to acquisition are obtained employment
The business classification information that storage is obtained in business classification type information bank obtains corresponding affiliated place name geographical attribute class code;
Space lattice code generation unit, the area under one's jurisdiction data boundary for the place name geographical entity according to acquisition extract longitude
Maximum value, longitude minimum value, latitude maximum value, latitude minimum value, calculate place name geographical entity geometric envelope centre data,
Space gridding code is calculated to obtain again;
Life cycle code generates unit, for obtaining date data from date generation module;
Sequential counting code generation unit, for according to genesis sequence count code data the case where having worked out place name;
Check code generates unit, is advised according to the verification of setting for the code character string to being combined into according to preset format
It then calculates and obtains check code data.
Preferably, in the place name identification number encoder based on space-time business, space lattice code is according to as follows
Rule generates:
First according to the longitude maximum value Xmax of the place name geographical entity boundary jurisdictional data of acquisition, longitude minimum value Xmin,
The geometric envelope centre coordinate X and Y data of place name geographical entity is calculated in latitude maximum value Ymax, latitude minimum value Ymin,
Wherein X=(Xmax+Xmin)/2, Y=(Ymax+Ymin)/2;
Longitude grid GX and latitude grid GY is calculated further according to following formula:
When X is in east longitude:
GX=(rounding) [X/360] * 65536
When X is in west longitude:
GX=(rounding) [(X+180)/360] * 65536
When Y is in north latitude:
GY=(rounding) [(90-Y)/180] * 32768
When Y is in south latitude:
GY=(rounding) [(90+Y)/180] * 32768
Obtain GX=
bx15bx14bx13bx12bx11bx10bx9bx8bx7bx6bx5bx4bx3bx2bx1bx0;
Obtain GY=
by15by14by13by12by11by10by9by8by7by6by5by4by3by2by1by0;
Finally obtain space lattice code G=
bx15by15bx14by14bx13by13bx12by12bx11by11bx10by10bx9by9bx8by8
bx7by7bx6by6bx5by5bx4by4bx3by3bx2by2bx1by1bx0by0;
Wherein, bxi indicates longitude grid ith bit position;Byi indicates latitude grid ith bit position.
Preferably, in the place name identification number encoder based on space-time business, sequential counting code is according to as follows
Rule generates:According to the continent of place name and international public domain code, countries and regions name code, administrative division code, county
Grade or less under conditions of administrative division code, place name geographical attribute class code, space lattice code all same, on the same day
The aggregate-value of sequential counting library module counter adds 1, obtains sequential counting code data.
Preferably, in the place name identification number encoder based on space-time business, check code is according to following rule
It generates:According to system mod16-3 verification rules of checking character, by continent and international public domain code, countries and regions title
Code, administrative division code, following administrative division code at county level, place name geographical attribute class code, space lattice code, date
Code, sequential counting code data calculate and obtain check code data.
A kind of place name identification number coding method based on space-time business that another aspect of the present invention provides, including walk as follows
Suddenly:
(1) continent that will be stored in the area under one's jurisdiction data boundary of the place name geographical entity of acquisition and Fundamental Geographic Information Database
Area under one's jurisdiction data boundary corresponding with international public domain code, the corresponding area under one's jurisdiction data boundary of countries and regions name code, row
The corresponding area under one's jurisdiction data boundary of code is drawn in administrative division, the corresponding area under one's jurisdiction data boundary of following administrative division code at county level is compared respectively
Compared with, respectively obtain belonging to continent and international public domain code, countries and regions name code, administrative division code and it is at county level with
Lower administrative division code;
(2) according to storing in the information of place names data of the place name geographical entity of acquisition, with business classification type information bank
Business classification information is compared, and obtains corresponding affiliated place name geographical attribute class code;
(3) according to the area under one's jurisdiction data boundary extraction longitude maximum value of the place name geographical entity of acquisition, longitude minimum value, latitude
Maximum value, latitude minimum value, calculate place name geographical entity geometric envelope centre data, then calculate to obtain space gridding code;
(4) life cycle data is generated, the setting date is then inputted for already present place name geographical entity object in history,
For currently building up or the place name geographical entity object of official approval then complies with system data;
(5) data generated by step (1) to (4) according to preset format combination and are generated into sequential counting code and school
Code is tested, final place name identification number is obtained.
Preferably, in the step (3), the computational methods of space lattice code are:
First according to the longitude maximum value Xmax of the place name geographical entity boundary jurisdictional data of acquisition, longitude minimum value Xmin,
The geometric envelope centre coordinate X and Y data of place name geographical entity is calculated in latitude maximum value Ymax, latitude minimum value Ymin,
Wherein X=(Xmax+Xmin)/2, Y=(Ymax+Ymin)/2;
Longitude grid GX and latitude grid GY is calculated further according to following formula:
When X is in east longitude:
GX=(rounding) [X/360] * 65536
When X is in west longitude:
GX=(rounding) [(X+180)/360] * 65536
When Y is in north latitude:
GY=(rounding) [(90-Y)/180] * 32768
When Y is in south latitude:
GY=(rounding) [(90+Y)/180] * 32768
Obtain GX=
bx15bx14bx13bx12bx11bx10bx9bx8bx7bx6bx5bx4bx3bx2bx1bx0;
Obtain GY=
by15by14by13by12by11by10by9by8by7by6by5by4by3by2by1by0;
Finally obtain space lattice code G=
bx15by15bx14by14bx13by13bx12by12bx11by11bx10by10bx9by9bx8by8
bx7by7bx6by6bx5by5bx4by4bx3by3bx2by2bx1by1bx0by0;
Wherein bxi indicates longitude grid ith bit position;Byi indicates latitude grid ith bit position.
Preferably, in the step (5), sequential counting code is generated according to following rule:According to the continent of place name and
International public domain code, countries and regions name code, administrative division code, following administrative division code at county level, place name
Under conditions of managing attribute class code, space lattice code all same, in the accumulative of sequential counting library module counter on the same day
Value plus 1, obtains sequential counting code data.
Preferably, check code is generated according to following rule in described step (5):According to the system mod16- that checks character
3 verification rules, by continent and international public domain code, countries and regions name code, administrative division code, at county level with downlink
Code, place name geographical attribute class code, space lattice code, date code, sequential counting code data are drawn in administrative division, and calculating obtains
Take check code data.
A kind of computer equipment that another aspect of the present invention provides, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, the place name based on space-time business is realized when which is executed by processor
The step of identification number coding method.
Advantageous effect:Compared with prior art, the coding of generation is or not place name identification number coding method proposed by the present invention
Only be the unique encodings mark of geographic object, while semantic information and location information being merged, solve existing coding mode without
Method takes into account the problem of semantic and location information.Realize can not only by between trade classification, timesharing, divide the establishment in a distributed manner of region
Name identification number, and the uniformity of number system can be realized again, it improves the cross-platform association of information of place names cross-system, hand over
The efficiency change, shared.
Description of the drawings
Fig. 1 is place name identification number coder structure schematic diagram.
Fig. 2 is continent and international public domain code calculation flow chart.
Fig. 3 is countries and regions name code calculation flow chart.
Fig. 4 is administrative division code calculation flow chart.
Fig. 5 is following administrative division code calculation flow chart at county level.
Fig. 6 is place name geographical attribute class code calculation flow chart.
Fig. 7 is space lattice code calculation flow chart.
Fig. 8 is life cycle code calculation flow chart.
Fig. 9 is sequential counting code calculation flow chart.
Figure 10 is check code calculation flow chart.
Figure 11 is place name identification number section structural schematic diagram.
Specific implementation mode
Place name is the proprietary name of geographical entity, and place name jurisdiction is the space boundary linchpin of the corresponding geographical entity of place name
Area's range, place name geometric envelope center are the geometric envelope center site coordinate (longitudes of the corresponding geographical entity of place name
Longitude X, latitude latitude Y).In the following with reference to the drawings and specific embodiments, the present invention is furture elucidated, it should be understood that
These examples are only for illustrating the present invention and are not intended to limit the scope of the present invention.
As shown in Figure 1, a kind of place name identification number (place name ID) based on space-time business disclosed by the embodiments of the present invention is compiled
Code device, mainly by place name object coordinates acquisition module (coordinate acquisition module), Fundamental Geographic Information Data (geographical library module), industry
Business classification type Knowledge Base Module (business library module), space lattice Rule Information library module (grid library module), date generate
Module, sequential counting library module (counting library module), verification Rule Information database module (verification library module), calculation code mould
8 part of block is constituted.The function of each module is as follows:
Coordinate acquisition module:The module acquires the coordinate bit on the geographical entity area under one's jurisdiction boundary of place name by Man Graphics mode
It sets and name information.
Geographical library module:The module stored map manufacturing enterprise or the publication of national management Mapping departments comprising continent and
International public domain code, countries and regions name code, administrative division code, the geography of following administrative division code at county level are real
The geometric envelope center of body, the coordinate geographic information data on area under one's jurisdiction boundary.
Business library module:The module has stored " place name (geographical entity):Code (business classification) " business classification letter
Cease data.
Grid library module:The information data of module storage ball mesh generation parameter.
Date generation module:The module generates the life cycle information that the date is content.
Count library module:The module is in continent and international public domain, countries and regions title, administrative division, at county level
Under the premise of the code all same of following administrative division place name geographical attribute classification, in (same to century, the same year, the same month, same on the same day
Day) in the stored counts for having worked out place name record.
Verify library module:The module has stored the data of verification Rule Information.
Calculation code module:The module above-mentioned module calculate respective code on the basis of, closed by each section of code relation
And encode output place name identification number.
A kind of place name identification number coding method based on space-time business disclosed by the embodiments of the present invention includes mainly as follows
Step:
Step 1:Continent and international public domain code calculation process
Area under one's jurisdiction data boundary in the geographic information data of the geographical entity of the place name of coordinate acquisition module acquisition is read, simultaneously
Continent and international public domain geographic information data in the stored geographic information data of geographical library module are read, is compiled by calculating
Code module compares, if place name jurisdiction is fallen within the scope of continent and international public domain, determines the affiliated continent of place name or state
Border public domain ownership.Foundation《18521-2006 place names of GB/T are classified and classification establishment rules》In " continent is international publicly-owned
Field code " table judges to calculate to obtain the affiliated continent of place name ID paragraph 1 and international public domain code GNC1.See the table below 1, Fig. 2,
11。
1 continent of table and international public domain code
Code | Place name position | Code | Place name position |
1 | Asia | 5 | North America |
2 | Europe | 6 | South America |
3 | Africa | 7 | Across continent |
4 | Oceania | 8 | International public domain |
Step 2:Countries and regions name code calculation process
On the basis of the above, while country and area name in the stored geographic information data of geographical library module being read
Geographic information data, compared by calculation code module, if place name jurisdiction is fallen within the scope of certain countries and regions, determine
Countries and regions ownership belonging to place name.Foundation《The countries and regions GB/T 2659-2000 name code》" countries and regions name
Claim code " table, judge to calculate to obtain the 2nd section of belonging country of place name ID and area name code GNC2;Otherwise, 2-4 sections of all positions
It is disposed as " 0 ", while jumping to step 7.See Fig. 3,11.
Step 3:Administrative division code calculation process
On the basis of the above, while provincial administrative division in the stored geographic information data of geographical library module is read
Geographic information data is compared by calculation code module, if place name jurisdiction is fallen within the scope of provincial administrative division, definitely
The administrative division ownership of provincial place name belonging to name.Establishing criteria《2260 administrative regional division of the People's Republic of China's codes of GB/T》, obtain
Take the 3rd section of GNC3 administrative divisions code the 36th, 35 that be provincial and determining place name ID codes;Otherwise, 3-4 sections of all positions are all provided with
It is set to " 0 ", while jumping to step 7.
On the basis of the above, while grade administrative area of establishing district and municipality in the stored geographic information data of geographical library module is read
The geographic information data drawn, is compared by calculation code module, if place name jurisdiction is fallen in grade administrative division range of establishing district and municipality
It is interior, determine the affiliated administrative division ownership of grade place name of establishing district and municipality.Establishing criteria《2260 administrative regional division of the People's Republic of China of GB/T
Code》, obtain grade of establishing district and municipality and determine the 3rd section of GNC3 administrative divisions code the 34th, 33 of place name ID codes;Otherwise, 3-4
Other positions of section are disposed as " 0 " while jumping to step 7.
On the basis of the above, while reading what administrative areas at the county level in the stored geographic information data of geographical library module drew
Geographic information data is compared by calculation code module, is drawn in range in administrative areas at the county level if place name jurisdiction is fallen, is determined county
The affiliated administrative division ownership of grade place name.Establishing criteria《2260 administrative regional division of the People's Republic of China's codes of GB/T》, obtain at county level
And determine the 3rd section of GNC3 administrative divisions code the 32nd, 31 of place name ID codes;Otherwise, 3-4 sections of other positions are disposed as
" 0 ", while jump procedure 7.
Specifically, if place name jurisdiction transcounty grade administrative division area under one's jurisdiction, chooses administrative division code of establishing district and municipality,
Administrative areas at the county level draw code and are set as 00;If place name jurisdiction chooses provincial row across grade administrative division of establishing district and municipality area under one's jurisdiction
Code is drawn in administrative division, and grade administrative division code of establishing district and municipality is set as 00;If place name jurisdiction grade administrative division transprovincially area under one's jurisdiction,
Administrative division code is set as 000000.See Fig. 4,11.
Step 4:Following administrative division code calculation process at county level
On the basis of above-mentioned, while reading the stored following administrative division geography information number at county level of geographical library module
According to being compared by calculation code module, if place name jurisdiction is fallen within the scope of following administrative division at county level, determined belonging to place name
Following administrative division ownership at county level.According to national standards《The following administrative division code compilation rule at county level of GB/T 10114-2003
Then》Standard criterion, and determine the 4th section of GNC4 following administrative division codes at county level of place name ID codes;Otherwise, the 4th section of all positions
It is set as 0.See Fig. 5,11.
Step 5:Place name geographical attribute class code calculation process
Geographical name data in the geographical entity information data of coordinate acquisition module acquisition is read, while the business library module of reading is
" the place name of geographical entity of storage:The code of classification " business classification information data, are compared, base area by calculation code module
Name, according to national standards《GB/T 18521-2006 place names are classified and classification establishment rules》In " place name geographical attribute classification generation
The Type division of the standard criterion of code " obtains and determines the 5th section of place name geographical attribute class code of the ID codes of place name
GNC5 is shown in Fig. 6,11.
Step 6:Space lattice code calculation process
On the basis of the place name geographical entity area under one's jurisdiction space boundary information data of above-mentioned reading coordinate acquisition module, simultaneously
Read the data of space lattice library module parameter (comprising formula, constant, model), extraction boundary longitude maximum value Xmax, longitude
Minimum value Xmin, latitude maximum value Ymax, latitude minimum value Ymin, through formula (1), (2) calculate place name geographical entity it is several
What envelope centre coordinate (X, Y) data, then calculate to obtain space lattice G code (longitude grid GX, latitude through (3), (4), (5), (6)
Spend grid GY) GNC6.See Fig. 7,11.Computational methods are as follows:
X=(Xmax+Xmin)/2 (1)
Y=(Ymax+Ymin)/2 (2)
When X is in east longitude:
GX=(rounding) [X/360] * 65536 (3)
When X is in west longitude:
* 65536 (4) GX=(rounding) [(X+180)/360]
When Y is in north latitude:
* 32768 (5) GY=(rounding) [(90-Y)/180]
When Y is in south latitude:
* 32768 (6) GY=(rounding) [(90+Y)/180]
Obtain GX=
bx15bx14bx13bx12bx11bx10bx9bx8bx7bx6bx5bx4bx3bx2bx1bx0;
Obtain GY=
by15by14by13by12by11by10by9by8by7by6by5by4by3by2by1by0;
G=GXGY=is obtained again
bx15by15bx14by14bx13by13bx12by12bx11by11bx10by10bx9by9bx8by8
bx7by7bx6by6bx5by5bx4by4bx3by3bx2by2bx1by1bx0by0;
Export space lattice code GNC6.Wherein, bxi:Indicate longitude grid ith bit position;byi:Indicate latitude grid
Ith bit position.
Step 7:Life cycle code calculation process
The date data of date generation module is read, obtains and determine the 7th section of life cycle code of place name ID codes
GNC7 is shown in Fig. 8.Life cycle code represents place name and generates or identify the date, represents the time that place name life cycle management starts
Information.According to standard《GB/T 7408-2005 data elements and exchange format information exchange date and time representation》, Life Cycle
Phase code uses CCYYMMDD (CCYY:Year, MM:Month, DD:Day) 8 decimal number formats, see Fig. 8,11.
The place name life cycle code of physical geography entity is complied with subject to the record dates such as place name will.It not can determine that
, the century generated in history, year, month, day value be 00;Artificial production and construction and social management place names are given birth to
Life cycle codes are according to administrative unit's approval, subject to the date built up or arranged.
Date generation module is synchronized by encoder system and generates date data, and the date data for reading date generation module contains
Justice is that current date data are the effective then automated collection systems dates, for history place name geographical entity current date without
Effect, then be manually entered the date data of needs.
Step 8:Sequential counting code calculation process
The last time for reading counting module adds up sequential encoding data, adds up in sequential encoding data basis in last time, adds 1 certainly
(according to the continent of place name and international public domain code, countries and regions name code, administrative division code, at county level with downlink
Under conditions of code, place name geographical attribute class code, space lattice code all same are drawn in administrative division, library module is being counted on the same day
The aggregate-value of counter adds 1, reaches sequential counting coding and does not repeat), generate the 8th section of sequential counting code of place name ID codes
GNC8 is shown in Fig. 9,11.
Step 9:Check code calculation process
The verification Rule Information data for reading verification library module, to continent or international public domain code, countries and regions
Name code, administrative division code, following administrative division code at county level, place name geographical attribute code, space lattice code, life
8 sections of cycle codes, sequential counting code codes use《23732 Chinese Industrial Standards (CIS) text codes of GB/T》It checks character system
Mod16-3 methods generate check code GNC9.Using check code it can be found that place name identification number generates error code in transmission process.
See Figure 10,11, example 1.
Step 10:The coding output of place name identity code
On the basis of above-mentioned each section of code building, according to Geo_Name_Code=GNC1:GNC2:GNC3:GNC4:
GNC5:GNC6:GNC7:GNC8:GNC9 (wherein ":" represent series relationship between segmentation code), calculation code module merges above-mentioned 9
Section code value, and export place name identification number Geo_Name_Code data.
The place name ID coding structures ultimately generated are by continent and international public domain code (1), countries and regions title
Code (3), administrative division code (6), following administrative division code (3) at county level, place name geographical attribute class code (6
Position), space lattice code (8), life cycle code (8), sequential counting code (4), 9 sections of check code (1) composition.
Place name ID codes amount to 40, see Figure 11.
It is known as domestic place name ID when the country place name ID uses, coding structure can be reduced to by administrative division code (6), county
Grade or less administrative division code (3), place name geographical attribute class code (6), space lattice code (8), life cycle
7 sections of code (8), sequential counting code (4), check code (1) compositions, domestic place name ID codes amount to 36.
The embodiment of the present invention is also disclosed a kind of computer equipment, including memory, processor and storage are on a memory simultaneously
The computer program that can be run on a processor, the program realize the above-mentioned place name body based on space-time business when being executed by processor
The step of part number coding method.
Several place name encoding examples are set forth below for ease of understanding the present invention program in place name encoding example.
1 Nanjing Normal University's virtual geographic information laboratory geographical science building of example
In CGCS2000 referentials, the geometric envelope in Nanjing Normal University's virtual geographic information laboratory geographical science building
Centre coordinate (118.91196,32.11702).Place name ID each section codes constitute as follows:Continent or international public domain code:
1;Countries and regions name code:156;Administrative division code:320113;Following administrative division code at county level:406;Place name class
Type code:261100;Space lattice code:266184EB;Life cycle code:20011004;Sequence code:0004;Check code:
F.The place name ID in Nanjing Normal University's virtual geographic information laboratory geographical science building:
1156320113406261100266184EB200110040004F。
2 check code computational chart of table
Note 1:Using pure system weight, r=:The basis of root or a geometric progression;
Note 2:In MOD16-3, the value of MOD=16, r roots are 3;
Note 3:I=:Indicate the location index of position code;
Note 4:Hi=:Indicate the place name ID heuristicimal code place values that i-th bit is set;
Note 5:Wi=:Indicate the weighted factor that i-th bit is set;
Note 6:Di=:(hi hexadecimals are converted into) decimal number;
Note 7:Pi=:(di*wi) product;
Note 8:Sum=:The summation of pi products;
Note 9:Cdi=:Metric check code (MOD 16 of sum, cdi:code_di);
Note 10:Chi=:Based on the hexadecimal text check code (chi of cd:code_hi).
The 2 Nanjing South Roads Zhong Shan of example
The geometric envelope centre coordinate (118.77692,32.02617) at the Nanjing South Roads Zhong Shan.Place name ID each section codes
It constitutes as follows:Continent or international public domain code:1;Countries and regions name code:156;Administrative division code:320100;
Following administrative division code at county level is:000;Place name type code:235120;Space lattice code:26612F69;Life cycle
Code:19900615;Sequence code:0005;Check code:D.The place name ID at the Nanjing South Roads Zhong Shan:
115632010000023512026612F69199006150005D。
3 Haian County of Jiangsu Province of example
The geometric envelope centre coordinate (120.46726,32.53369) of Haian County of Jiangsu Province.Place name ID each section code structures
At as follows:Continent or international public domain code:1;Countries and regions name code:156;Row
Draw code in administrative division:3201621;Following administrative division code at county level is:000;Place name type code:214000;It is empty
Between gridding code:2662D9D9;Life cycle code is 19490615;Sequence code:0004;Check code:3.Haian County of Jiangsu Province
Place name ID:
11563206210002140002662D9D91949061500043。
4 Haian County of Jiangsu Province towns Qu Tang villages Qu Tang 22 groups No. 5 of example
The geometric envelope centre coordinate (120.3138,32.50208) in Haian County of Jiangsu Province towns Qu Tang villages Qu Tang 22 groups No. 5.
Place name ID each section codes constitute as follows:Continent or international public domain code:1;Countries and regions name code:156;It is administrative
Zoning code:320621;Following administrative division code at county level:102;Place name type code:217110;Space lattice code:
2662D4AD;Life cycle code is 19961004;Sequence code 0005;Check code:7.Haian County of Jiangsu Province towns Qu Tang villages Qu Tang
22 groups No. 5 place name ID:
11563206211022171102662D4AD1996100400057。
5 Yangtze River in China of example
The geometric envelope centre coordinate (108.016667,32.53369) of Yangtze River in China.Place name ID each section codes are constituted
It is as follows:Continent or international public domain code:1;Countries and regions name code:156;Administrative division code:000000;It is at county level
Following administrative division code:000;Place name type code:121000;Space lattice code:24E1A5EA;Life cycle code is
00000000;Sequence code:0001;Check code:8.The place name ID of Yangtze River in China:
115600000000012100024E1A5EA0000000000018。
Claims (10)
1. a kind of place name identification number encoder based on space-time business, which is characterized in that including:
Place name object coordinates acquisition module, for acquiring place name object information, described information includes the geographical entity area under one's jurisdiction of place name
The coordinate position and name information on boundary;
Fundamental Geographic Information Database module, for storing comprising continent and international public domain, countries and regions title, administration
Zoning, the geometric envelope center of geographical entity of following administrative division at county level, area under one's jurisdiction boundary coordinate geographic information data;
Business classification type Knowledge Base Module, the ground ring service classification information data for storing geographical entity;
Space lattice Rule Information library module is used for the information data of storage ball mesh generation parameter;
Date generation module, for generating the life cycle information that the date is content;
Sequential counting library module, for record same region, same to business, on the same day in the stored counts for having worked out place name;
Rule Information database module is verified, the data for storing verification Rule Information;
And calculation code module, obtain affiliated continent and state for being calculated according to the area under one's jurisdiction data boundary of place name geographical entity
Border public domain code, countries and regions name code, administrative division code and following administrative division code at county level, according to place name
The information of place names data of geographical entity, which calculate, obtains affiliated place name geographical attribute class code, according to the area under one's jurisdiction of place name geographical entity
Space lattice code is calculated in data boundary, based on above-mentioned code and date data and same region, same to business, on the same day in
Sequential counting code, according to preset format combination generate check code, obtain final place name identification number.
2. a kind of place name identification number encoder based on space-time business according to claim 1, which is characterized in that described
Calculation code module includes:
Continent and international public domain code generation unit, the area under one's jurisdiction data boundary and base of the place name geographical entity for that will acquire
The continent stored in plinth geographic information database area under one's jurisdiction data boundary corresponding with international public domain code is compared, and is obtained
Affiliated continent and international public domain code;
Countries and regions name code generates unit, area under one's jurisdiction data boundary and the basis ground of the place name geographical entity for that will acquire
The corresponding area under one's jurisdiction data boundary of countries and regions name code stored in reason information database is compared, and obtains belonging country
With area name code;
Administrative division code generation unit, the area under one's jurisdiction data boundary and Fundamental Geographic Information System of the place name geographical entity for that will acquire
The corresponding area under one's jurisdiction data boundary of administrative division code stored in database is compared, and obtains affiliated administrative division code;
Following administrative division code generation unit at county level, area under one's jurisdiction data boundary and the basis of the place name geographical entity for that will acquire
The corresponding area under one's jurisdiction data boundary of following administrative division code at county level stored in geographic information database is compared, obtain belonging to
Following administrative division code at county level;
Geographical attribute class code generates unit, and the information of place names data for the place name geographical entity according to acquisition are divided from business
The business classification information that storage is obtained in Class Type information bank obtains corresponding affiliated place name geographical attribute class code;
Space lattice code generation unit, the area under one's jurisdiction data boundary extraction longitude for the place name geographical entity according to acquisition are maximum
Value, longitude minimum value, latitude maximum value, latitude minimum value, calculate place name geographical entity geometric envelope centre data, then count
Calculate to obtain space gridding code;
Life cycle code generates unit, for obtaining date data from date generation module;
Sequential counting code generation unit, for according to genesis sequence count code data the case where having worked out place name;
Check code generates unit, based on the verification rule by the code character string to being combined into according to preset format according to setting
It calculates and obtains check code data.
3. a kind of place name identification number encoder based on space-time business according to claim 1 or 2, which is characterized in that
The space lattice code is generated according to following rule:
First according to longitude maximum value Xmax, longitude minimum value Xmin, the latitude of the place name geographical entity boundary jurisdictional data of acquisition
The geometric envelope centre coordinate X and Y data of place name geographical entity is calculated in maximum value Ymax, latitude minimum value Ymin, wherein
X=(Xmax+Xmin)/2, Y=(Ymax+Ymin)/2;
Longitude grid GX and latitude grid GY is calculated further according to following formula:
When X is in east longitude:
GX=(rounding) [X/360] * 65536
When X is in west longitude:
GX=(rounding) [(X+180)/360] * 65536
When Y is in north latitude:
GY=(rounding) [(90-Y)/180] * 32768
When Y is in south latitude:
GY=(rounding) [(90+Y)/180] * 32768
Obtain GX=
bx15bx14bx13bx12bx11bx10bx9bx8bx7bx6bx5bx4bx3bx2bx1bx0;
Obtain GY=
by15by14by13by12by11by10by9by8by7by6by5by4by3by2by1by0;
Finally obtain space lattice code G=
bx15by15bx14by14bx13by13bx12by12bx11by11bx10by10bx9by9bx8by8bx7by7bx6by6b
x5by5bx4by4bx3by3bx2by2bx1by1bx0by0;
Wherein, bxi indicates longitude grid ith bit position;Byi indicates latitude grid ith bit position.
4. a kind of place name identification number encoder based on space-time business according to claim 1 or 2, which is characterized in that
The sequential counting code is generated according to following rule:According to the continent of place name and international public domain code, countries and regions
Name code, administrative division code, following administrative division code at county level, place name geographical attribute class code, space lattice code
Under conditions of all same, adds 1 in the aggregate-value of interior sequential counting library module counter on the same day, obtain sequential counting code data.
5. a kind of place name identification number encoder based on space-time business according to claim 1 or 2, which is characterized in that
The check code is generated according to following rule:It is publicly-owned by continent and the world according to system mod16-3 verification rules of checking character
Field code, countries and regions name code, administrative division code, following administrative division code at county level, place name geographical attribute class
Other code, space lattice code, date code, sequential counting code data calculate and obtain check code data.
6. a kind of place name identification number coding method based on space-time business, which is characterized in that include the following steps:
(1) by the continent stored in the area under one's jurisdiction data boundary of the place name geographical entity of acquisition and Fundamental Geographic Information Database and state
The corresponding area under one's jurisdiction data boundary of border public domain code, the corresponding area under one's jurisdiction data boundary of countries and regions name code, administrative area
Draw the corresponding area under one's jurisdiction data boundary of code, the corresponding area under one's jurisdiction data boundary of following administrative division code at county level is compared respectively,
Continent belonging to respectively obtaining and international public domain code, countries and regions name code, administrative division code and at county level following
Administrative division code;
(2) according to the business point stored in the information of place names data of the place name geographical entity of acquisition and business classification type information bank
Category information is compared, and obtains corresponding affiliated place name geographical attribute class code;
(3) maximum according to the area under one's jurisdiction data boundary extraction longitude maximum value of the place name geographical entity of acquisition, longitude minimum value, latitude
Value, latitude minimum value, calculate place name geographical entity geometric envelope centre data, then calculate to obtain space gridding code;
(4) life cycle data is generated, the setting date is then inputted for already present place name geographical entity object in history, for
It currently builds up or the place name geographical entity object of official approval then complies with system data;
(5) data that will be generated by step (1) to (4), according to preset format combination and generate sequential counting code and verification
Code obtains final place name identification number.
7. a kind of place name identification number coding method based on space-time business according to claim 6, which is characterized in that institute
It states in step (3), the computational methods of space lattice code are:
First according to longitude maximum value Xmax, longitude minimum value Xmin, the latitude of the place name geographical entity boundary jurisdictional data of acquisition
The geometric envelope centre coordinate X and Y data of place name geographical entity is calculated in maximum value Ymax, latitude minimum value Ymin, wherein
X=(Xmax+Xmin)/2, Y=(Ymax+Ymin)/2;
Longitude grid GX and latitude grid GY is calculated further according to following formula:
When X is in east longitude:
GX=(rounding) [X/360] * 65536
When X is in west longitude:
GX=(rounding) [(X+180)/360] * 65536
When Y is in north latitude:
GY=(rounding) [(90-Y)/180] * 32768
When Y is in south latitude:
GY=(rounding) [(90+Y)/180] * 32768
Obtain GX=
bx15bx14bx13bx12bx11bx10bx9bx8bx7bx6bx5bx4bx3bx2bx1bx0;
Obtain GY=
by15by14by13by12by11by10by9by8by7by6by5by4by3by2by1by0;
Finally obtain space lattice code G=
bx15by15bx14by14bx13by13bx12by12bx11by11bx10by10bx9by9bx8by8
bx7by7bx6by6bx5by5bx4by4bx3by3bx2by2bx1by1bx0by0;
Wherein, bxi indicates longitude grid ith bit position;Byi indicates latitude grid ith bit position.
8. a kind of place name identification number coding method based on space-time business according to claim 5, which is characterized in that institute
Sequential counting code in step (5) is stated to generate according to following rule:According to the continent of place name and international public domain code, country
With area name code, administrative division code, following administrative division code at county level, place name geographical attribute class code, space networks
Under conditions of lattice code all same, adds 1 in the aggregate-value of sequential counting library module counter on the same day, obtain sequential counting code number
According to.
9. a kind of place name identification number coding method based on space-time business according to claim 5, which is characterized in that institute
Say that check code is generated according to following rule in step (5):According to system mod16-3 verification rule of checking character, by continent and
International public domain code, countries and regions name code, administrative division code, following administrative division code at county level, place name
Attribute class code, space lattice code, date code, sequential counting code data are managed, calculates and obtains check code data.
10. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, which is characterized in that when the program is executed by processor realize according to described in claim any one of 6-9 be based on space-time
The step of place name identification number coding method of business.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810071286.0A CN108334579B (en) | 2018-01-25 | 2018-01-25 | Geographical name ID number coding device based on space-time service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810071286.0A CN108334579B (en) | 2018-01-25 | 2018-01-25 | Geographical name ID number coding device based on space-time service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108334579A true CN108334579A (en) | 2018-07-27 |
CN108334579B CN108334579B (en) | 2021-10-22 |
Family
ID=62925750
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810071286.0A Active CN108334579B (en) | 2018-01-25 | 2018-01-25 | Geographical name ID number coding device based on space-time service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108334579B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109872534A (en) * | 2019-03-21 | 2019-06-11 | 中交信有限责任公司 | A kind of whole nation road passenger transportation station code system and method |
CN110097444A (en) * | 2019-05-14 | 2019-08-06 | 京东方科技集团股份有限公司 | A kind of flowing water code generating method and device |
CN112115221A (en) * | 2020-09-08 | 2020-12-22 | 浙江嘉兴数字城市实验室有限公司 | Multi-factor matching fusion method for block data |
CN113129000A (en) * | 2019-12-31 | 2021-07-16 | 航天信息股份有限公司 | Electronic service certificate generation method and equipment |
CN114676368A (en) * | 2022-03-07 | 2022-06-28 | 广州市城市规划勘测设计研究院 | Geographic entity information display method, device, equipment and medium based on identification code |
CN115064054A (en) * | 2022-05-07 | 2022-09-16 | 西宁市测绘院 | Geographic entity space identity coding construction method |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110314072A1 (en) * | 2010-06-22 | 2011-12-22 | Cleversafe, Inc. | Metadata access in a dispersed storage network |
CN102385591A (en) * | 2010-09-03 | 2012-03-21 | 广东瑞图万方科技股份有限公司 | Global positioning encoding device and method |
CN102523273A (en) * | 2011-12-08 | 2012-06-27 | 江苏紫荆花信息科技有限公司 | System for providing location-based service |
CN103488736A (en) * | 2013-09-18 | 2014-01-01 | 中国科学技术大学 | Method and system for establishing multisource geospatial information correlation model |
EP2720157A2 (en) * | 2012-07-11 | 2014-04-16 | VeriSign, Inc. | System and method for adding a whitelist entry via DNS |
US20150254347A1 (en) * | 2014-03-04 | 2015-09-10 | Palo Alto Research Center Incorporated | System and method for direct storage access in a content-centric network |
CN105975477A (en) * | 2016-04-07 | 2016-09-28 | 华北电力大学 | Method for automatically constructing place name data sets on basis of network |
CN106844622A (en) * | 2017-01-19 | 2017-06-13 | 中国测绘科学研究院 | A kind of total space information expression method and total space information system |
CN106951453A (en) * | 2017-02-23 | 2017-07-14 | 浙江工业大学 | A kind of geographical entity coding method of quick renewal and data sharing |
-
2018
- 2018-01-25 CN CN201810071286.0A patent/CN108334579B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110314072A1 (en) * | 2010-06-22 | 2011-12-22 | Cleversafe, Inc. | Metadata access in a dispersed storage network |
CN102385591A (en) * | 2010-09-03 | 2012-03-21 | 广东瑞图万方科技股份有限公司 | Global positioning encoding device and method |
CN102523273A (en) * | 2011-12-08 | 2012-06-27 | 江苏紫荆花信息科技有限公司 | System for providing location-based service |
EP2720157A2 (en) * | 2012-07-11 | 2014-04-16 | VeriSign, Inc. | System and method for adding a whitelist entry via DNS |
CN103488736A (en) * | 2013-09-18 | 2014-01-01 | 中国科学技术大学 | Method and system for establishing multisource geospatial information correlation model |
US20150254347A1 (en) * | 2014-03-04 | 2015-09-10 | Palo Alto Research Center Incorporated | System and method for direct storage access in a content-centric network |
CN105975477A (en) * | 2016-04-07 | 2016-09-28 | 华北电力大学 | Method for automatically constructing place name data sets on basis of network |
CN106844622A (en) * | 2017-01-19 | 2017-06-13 | 中国测绘科学研究院 | A kind of total space information expression method and total space information system |
CN106951453A (en) * | 2017-02-23 | 2017-07-14 | 浙江工业大学 | A kind of geographical entity coding method of quick renewal and data sharing |
Non-Patent Citations (1)
Title |
---|
孙如江 等: ""基于无线局域网IEEE802.11技术的地理空间定位方法"", 《地球信息科学》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109872534A (en) * | 2019-03-21 | 2019-06-11 | 中交信有限责任公司 | A kind of whole nation road passenger transportation station code system and method |
CN110097444A (en) * | 2019-05-14 | 2019-08-06 | 京东方科技集团股份有限公司 | A kind of flowing water code generating method and device |
CN113129000A (en) * | 2019-12-31 | 2021-07-16 | 航天信息股份有限公司 | Electronic service certificate generation method and equipment |
CN112115221A (en) * | 2020-09-08 | 2020-12-22 | 浙江嘉兴数字城市实验室有限公司 | Multi-factor matching fusion method for block data |
CN114676368A (en) * | 2022-03-07 | 2022-06-28 | 广州市城市规划勘测设计研究院 | Geographic entity information display method, device, equipment and medium based on identification code |
CN115064054A (en) * | 2022-05-07 | 2022-09-16 | 西宁市测绘院 | Geographic entity space identity coding construction method |
CN115064054B (en) * | 2022-05-07 | 2023-10-13 | 西宁市测绘院 | Geographic entity space identity code construction method |
Also Published As
Publication number | Publication date |
---|---|
CN108334579B (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108334579A (en) | Place name identification number encoder, coding method and equipment based on space-time business | |
Li et al. | Urban form and household electricity consumption: A multilevel study | |
CN106909692B (en) | Method for calculating urban public facility coverage radiation index | |
CN108647332B (en) | Administrative division space information organization method based on global grid | |
CN112085250B (en) | Population space distribution simulation method, terminal equipment and storage medium | |
CN101853332B (en) | Multi-facility fair site selecting method and system | |
CN114444356A (en) | Method and device for acquiring carbon emission of residential space | |
CN107169893A (en) | A kind of land deeds property right body coding method refined based on uniformly subdivision in vertical direction | |
CN108984584A (en) | geographic information processing method and device | |
CN115481212A (en) | Building space-time coding method considering logical building | |
CN116451931A (en) | Data processing method for public service facility site selection administrative management decision | |
CN112232688A (en) | Business website layout and scale correction method based on uniformity | |
CN116644886A (en) | Method, device, terminal and medium for evaluating transformation value of stock land | |
CN109885638B (en) | Three-dimensional space indexing method and system | |
CN109947876A (en) | It falls to damage house code identification method and statistical method based on geographic grid | |
CN115525642A (en) | Reverse geocoding method and device and electronic equipment | |
CN117689099A (en) | GIS-based refined campus carbon sink carbon fixation benefit estimation and visualization method | |
JP5281284B2 (en) | System and method for manufacturing a flexible geographic grid | |
ZHANG | Planning and Layout Strategies of Urban Institution Pension Service Facilities under the Background of Aging Society: A Case Study of the Main Urban District of Xuzhou City. | |
Rodrigues et al. | Land-use dynamics at the micro level: constructing and analyzing historical datasets for the portuguese census tracts | |
Kento et al. | Development of current estimated household data and agent-based simulation of the future population distribution of households in Japan | |
Assel et al. | A Great Lakes ice cover digital data set for winters 1973-2000 | |
CN116011068B (en) | Comprehensive calculation method and system for land utilization intensity | |
Alipouri et al. | Analysis, measurement, and evaluation of sustainable development in Aleshtar city using AHP-Fuzzy and TOPSIS models | |
Xu | Quantitative analysis of spatial vitality of urban built-up area: a case study of Shenzhen |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |