CN105589903B - Street lamp location information acquisition storage and querying method and system - Google Patents

Street lamp location information acquisition storage and querying method and system Download PDF

Info

Publication number
CN105589903B
CN105589903B CN201410736840.4A CN201410736840A CN105589903B CN 105589903 B CN105589903 B CN 105589903B CN 201410736840 A CN201410736840 A CN 201410736840A CN 105589903 B CN105589903 B CN 105589903B
Authority
CN
China
Prior art keywords
street lamp
memory space
section
latitude
longitude information
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.)
Active
Application number
CN201410736840.4A
Other languages
Chinese (zh)
Other versions
CN105589903A (en
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.)
Shenzhen Huazhi Measuring & Control Technology Co Ltd
Original Assignee
Shenzhen Huazhi Measuring & Control Technology 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 Shenzhen Huazhi Measuring & Control Technology Co Ltd filed Critical Shenzhen Huazhi Measuring & Control Technology Co Ltd
Priority to CN201410736840.4A priority Critical patent/CN105589903B/en
Publication of CN105589903A publication Critical patent/CN105589903A/en
Application granted granted Critical
Publication of CN105589903B publication Critical patent/CN105589903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of street lamp location information acquisition and storage method, comprising the following steps: smart machine receives the street lamp number of input;Smart machine obtains street lamp number and instruction is submitted in position;Smart machine obtains the latitude and longitude information of the machine geographic location by GPS positioning device;Smart machine corresponding with the latitude and longitude information sends monitoring center for street lamp number;Monitoring center receives the street lamp number and the latitude and longitude information that smart machine is sent;The received street lamp number and the latitude and longitude information are carried out corresponding storage by monitoring center.The above method is to inquire accurate latitude and longitude information according to street lamp number to provide the foundation, so that alarm people only needs to provide street lamp number that is, reporting accurate location information in alarm procedure.In addition, also provide a kind of street lamp location information acquisition and memory system, and provide a kind of street lamp location information inquiry method and system.

Description

Street lamp location information acquisition storage and querying method and system
[technical field]
The present invention relates to smart machine and field of computer technology, in particular to a kind of street lamp location information acquires storage side Method and system, and it is related to a kind of street lamp location information inquiry method and system.
[background technique]
In emergency circumstances need to know the location information oneself being in some, such as to needing when 110 or 120 alarm Location information is provided.The mode of popular is to position the position being presently in, some mobile terminals by GPS positioning device GPS positioning device is built-in in (such as smart phone).However, in the case where not carrying GPS positioning device, just only The environment of surrounding can be observed by party to provide the location information of current breath.The location information that party provides is according to working as Thing people can have a degree of deviation to the difference of the familiarity of environment and the level of understanding of party in accuracy.
How to provide a kind of simple and can rapidly and accurately report that the approach for being presently in location information is urgent need to resolve Problem.
[summary of the invention]
Based on this, it is necessary to provide a kind of street lamp location information acquisition storage of accurate location information that can collect street lamp Method and apparatus, and it is necessary to provide a kind of roads of accurate location information that corresponding street lamp can be inquired according to street lamp number Lamp location information inquiry method and system.
A kind of street lamp location information acquisition and storage method, comprising the following steps:
Smart machine receives the street lamp number of input;
Smart machine obtains street lamp number and instruction is submitted in position;
Smart machine obtains the latitude and longitude information of the machine geographic location by GPS positioning device;
Smart machine corresponding with the latitude and longitude information sends monitoring center for street lamp number;
Monitoring center receives the street lamp number and the latitude and longitude information that smart machine is sent;
The received street lamp number and the latitude and longitude information are carried out corresponding storage by monitoring center.
In one of the embodiments, the monitoring center by received street lamp number and the latitude and longitude information into The step of row corresponding storage includes:
Since the tail portion that the street lamp is numbered, every presetting digit capacity that the street lamp is numbered is divided into a section, obtains To first section to multiple sections of tail section;
Application and the one-to-one multilayered memory space of the multiple section, the respective section in each layer of memory space Serial No. corresponding position store the initial address of next layer of memory space, and the tail section in tail layer memory space Serial No. corresponding position stores latitude and longitude information.
The application and the one-to-one multilayered memory space of the multiple section in one of the embodiments, every The Serial No. corresponding position of respective section in one layer of memory space stores the initial address of next layer of memory space, and The step of Serial No. corresponding position storage latitude and longitude information of tail section, includes: in tail layer memory space
Judge that the corresponding first floor memory space of first section whether there is, if it is not, then applying for the corresponding first floor of one piece of head section Memory space;
The corresponding address offset amount of Serial No. for obtaining first section, reads the address offset amount in first floor memory space The initial address of the second layer memory space of corresponding position storage, if the corresponding position does not have a storing data, application one piece the The corresponding position is written in the initial address for the second layer memory space newly applied by two layers of memory space;
The successively initial address of the corresponding next layer of memory space of each section after the first section of acquisition before tail section, Wherein, the step of obtaining the initial address of the corresponding next layer of memory space of the i-th section includes that 2≤i≤street lamp number is divided Sector number subtract one: obtain the i-th section the corresponding address offset amount of Serial No., deposited in the corresponding next layer of the (i-1)-th section The initial address that the i+1 layer memory space of address offset amount corresponding position storage is read in storage space, if the corresponding position There is no storing data, then applies for one piece of i+1 layer memory space, the initial address for the i+1 layer memory space newly applied is write Enter the corresponding position;
The corresponding address offset amount of Serial No. for obtaining tail section, it is empty in the corresponding next layer of storage of section second from the bottom Between in the address offset amount corresponding position store the latitude and longitude information.
A kind of street lamp location information inquiry method based on above-mentioned street lamp location information acquisition and storage method, including it is following Step:
Monitoring center receives the street lamp number of input, and receives the instruction for inquiring corresponding latitude and longitude information;
According to the inquiry of street lamp number according to the corresponding latitude and longitude information of street lamp number storage;
The corresponding position of the latitude and longitude information found is marked on the electronic map of display.
It further comprises the steps of: in one of the embodiments,
Corresponding address information is searched according to the latitude and longitude information;
Show the address information.
A kind of street lamp location information acquisition and memory system, comprising:
Smart machine, street lamp number for receiving input, obtains street lamp number and instruction is submitted in position, further passes through GPS positioning device obtains the latitude and longitude information of the machine geographic location;And street lamp number is believed with the longitude and latitude Breath correspondence is sent to monitoring center;
Monitoring center will be received for receiving the street lamp number and the latitude and longitude information of smart machine transmission The street lamp number and the latitude and longitude information carry out corresponding storage.
In one of the embodiments, the monitoring center by received street lamp number and the latitude and longitude information into During the corresponding storage of row:
Since the tail portion that the street lamp is numbered, every presetting digit capacity that the street lamp is numbered is divided into a section, obtains To first section to multiple sections of tail section;
Application and the one-to-one multilayered memory space of the multiple section, the respective section in each layer of memory space Serial No. corresponding position store the initial address of next layer of memory space, and the tail section in tail layer memory space Serial No. corresponding position stores latitude and longitude information.
The monitoring center application and the one-to-one multilayered memory of the multiple section are empty in one of the embodiments, Between, the Serial No. corresponding position of the respective section in each layer of memory space stores the starting point of next layer of memory space Location, and in tail layer memory space during the Serial No. corresponding position storage latitude and longitude information of tail section:
Judge that the corresponding first floor memory space of first section whether there is, if it is not, then applying for the corresponding first floor of one piece of head section Memory space;
The corresponding address offset amount of Serial No. for obtaining first section, reads the address offset amount in first floor memory space The initial address of the second layer memory space of corresponding position storage, if the corresponding position does not have a storing data, application one piece the The corresponding position is written in the initial address for the second layer memory space newly applied by two layers of memory space;
The successively initial address of the corresponding next layer of memory space of each section after the first section of acquisition before tail section, Wherein, the process for obtaining the initial address of the corresponding next layer of memory space of the i-th section includes that 2≤i≤street lamp number is divided Sector number subtract one: obtain the i-th section the corresponding address offset amount of Serial No., deposited in the corresponding next layer of the (i-1)-th section The initial address that the i+1 layer memory space of address offset amount corresponding position storage is read in storage space, if the corresponding position There is no storing data, then applies for one piece of i+1 layer memory space, the initial address for the i+1 layer memory space newly applied is write Enter the corresponding position;
The corresponding address offset amount of Serial No. for obtaining tail section, it is empty in the corresponding next layer of storage of section second from the bottom Between in the address offset amount corresponding position store the latitude and longitude information.
A kind of street lamp place information inquiry system of above-mentioned street lamp location information acquisition and memory system, the monitoring center It is also used to receive the street lamp number of input, and receives the instruction for inquiring corresponding latitude and longitude information, numbered according to the street lamp The corresponding latitude and longitude information that inquiry is stored according to street lamp number, and the longitude and latitude found is marked on the electronic map of display Spend the corresponding position of information.
The monitoring center is also used to search corresponding address according to the latitude and longitude information in one of the embodiments, Information, and the display address information.
Above-mentioned street lamp location information acquisition and storage method and system, smart machine gets street lamp number and position is submitted After instruction, the automatic latitude and longitude information for obtaining current location, as long as smart machine is in street lamp belonging to the street lamp number of input At position, so that it may get street lamp number belonging to street lamp accurate latitude and longitude information, and further by street lamp number and The latitude and longitude information correspondence of corresponding street lamp is sent to monitoring center;Street lamp can be numbered and be carried out pair with latitude and longitude information by monitoring center It should store, provide the foundation to inquire accurate latitude and longitude information according to street lamp number, thus the alarm people in alarm procedure Only need to provide street lamp number that is, reporting accurate location information.
Above-mentioned street lamp location information inquiry method and system, monitoring center receive the street lamp number of input and receive To after inquiring the instruction of corresponding latitude and longitude information, inquiry can be numbered according to the street lamp according to the corresponding of street lamp number storage Latitude and longitude information, and the corresponding position of the latitude and longitude information found is marked on the electronic map of display, so that alarm Alarm people need to only provide street lamp number in the process, so that it may inquire accurate latitude and longitude information according to street lamp number.
[Detailed description of the invention]
Fig. 1 is the flow diagram of the street lamp location information acquisition and storage method in one embodiment;
Fig. 2 is the flow diagram of the step S112 in one embodiment in Fig. 1;
Fig. 3 is the flow diagram of the step S204 in one embodiment in Fig. 2;
Fig. 4 is the flow diagram of the street lamp location information inquiry method in one embodiment;
Fig. 5 is the structural schematic diagram of the street lamp location information acquisition and memory system in one embodiment.
[specific embodiment]
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
As shown in Figure 1, in one embodiment, a kind of street lamp location information acquisition and storage method, comprising the following steps:
Step S102, smart machine receive the street lamp number of input.
In one embodiment, smart machine receives the street lamp number of user's input by touch screen or keyboard etc..Another In one embodiment, smart machine scans the two dimensional code that street lamp is numbered by scanning means, and street lamp is parsed from two dimensional code Number.
Step S104, smart machine obtains street lamp number and instruction is submitted in position.
In one embodiment, the submitting button on smart machine with entity or the submission that is shown on touch screen by Button icon, the entity submitting button or submitting button icon can trigger street lamp number when pressed and instruction is submitted in position.
Step S106, smart machine obtain the latitude and longitude information of the machine geographic location by GPS positioning device.
When needing to acquire the latitude and longitude information of a certain street lamp, smart machine can be previously placed at the street lamp position, After receiving the street lamp number of the street lamp of input and getting street lamp number and position submission instruction, smart machine can pass through Built-in GPS positioning device obtains the latitude and longitude information of the machine geographic location, and the accurate longitude and latitude of the street lamp can be obtained Spend information.
Step S108, smart machine corresponding with latitude and longitude information send monitoring center for street lamp number.
Specifically, smart machine produces a data packet comprising street lamp number and latitude and longitude information, send the packet within To monitoring center.
Wherein, monitoring center is for storing street lamp number and corresponding latitude and longitude information, and provides and numbered according to street lamp Inquire the service of street lamp position.Monitoring center can be server, server cluster etc., and the present invention is without limitation.
Step S110, monitoring center receive the street lamp number and latitude and longitude information that smart machine is sent.
In one embodiment, monitoring center receives numbering and latitude and longitude information comprising street lamp for smart machine transmission Data packet parses street lamp number and latitude and longitude information from data packet.
Received street lamp number and latitude and longitude information are carried out corresponding storage by step S112, monitoring center.
As shown in Fig. 2, in one embodiment, step S112 the following steps are included:
Step S202, monitoring center are divided into one since the tail portion that street lamp is numbered, by every presetting digit capacity that street lamp is numbered A section obtains multiple sections of first section to tail section.
For example, street lamp number includes 10 digits, specifically: 12283369872825, presetting digit capacity is arranged to 4 digits, 4 digits are divided into a section after can then street lamp being numbered, and 4 digit of second-to-last is divided into a section, and remaining first 2 Number is divided into a section, to obtain: the Serial No. that first section (the first section) includes is 12, the number that the second section includes Word sequence is 2833, and the Serial No. that third section includes is 6987, and the Serial No. that tail section (the 4th section) includes is 2825。
Step S204, application and the one-to-one multilayered memory space of multiple sections, the phase in each layer of memory space The Serial No. corresponding position of section is answered to store the initial address of next layer of memory space, and the tail in tail layer memory space The Serial No. corresponding position of section stores latitude and longitude information.
Wherein, the first section corresponds to first layer memory space, and the second section corresponds to second layer memory space, and so on.
Also, first floor memory space is used to store next layer of memory space of respective numbers to layer memory space second from the bottom Initial address, the respective numbers be respective section the denotable greatest measure amount of Serial No..For example, first floor memory space For storing the initial address of the second layer memory space of respective numbers, the Serial No. of section can be indicated headed by the respective numbers Greatest measure amount;Second layer memory space is used to store the initial address of the third layer memory space of respective numbers, this is corresponding Quantity is the denotable greatest measure amount of Serial No. of the second section, and so on.
Tail layer memory space is used to store the latitude and longitude information of respective numbers, which is the Serial No. of tail section Denotable greatest measure amount.
As shown in figure 3, in one embodiment, step S204 the following steps are included:
Step S302 judges that the corresponding first floor memory space of first section whether there is, if it is not, then applying for one piece of first section pair The first floor memory space answered.
Specifically, the initial address of first floor memory space can be read from preset memory locations, for example, under preset path Specified file in read first floor memory space initial address etc..If reading the initial address of first floor memory space, say Bright first floor memory space exists, and otherwise, applies for the corresponding first floor memory space of one piece of first section, and by the first floor memory space The preset memory locations are written in initial address.
In the present invention, the space size of first floor memory space to layer memory space second from the bottom is the digital sequence of respective section Arrange the product of denotable greatest measure amount and storage address length.For example, section headed by the space size of first floor memory space The product of Serial No. denotable greatest measure amount and storage address length;The space size of second layer memory space is the secondth area The product of Serial No. denotable the greatest measure amount and storage address length of section, and so on.
The space size of tail layer memory space is the denotable greatest measure of Serial No. and latitude and longitude information of tail section The product of length.
By taking above-mentioned street lamp number as an example, the Serial No. of first section includes 2 digits, and 2 digits can indicate 00~99 totally 100 Numerical value, therefore the denotable greatest measure amount of Serial No. of first section is 100.If storage address length is 2 bytes, can Apply for that size is the first floor space of 200 bytes.
Step S304 obtains the corresponding address offset amount of Serial No. of first section, and reading in first floor memory space should The initial address of the second layer memory space of address offset amount corresponding position storage, if the corresponding position does not have storing data, Apply for one piece of second layer memory space, the corresponding position is written into the initial address for the second layer memory space newly applied.
In the present invention, the corresponding address offset amount of the Serial No. of first section to section second from the bottom is the number of respective section The product of word sequence and storage address length.For example, headed by the corresponding address offset amount of Serial No. of first section section number The product of sequence and storage address length;The corresponding address offset amount of the Serial No. of second section is the Serial No. of the second section With the product of storage address length, and so on.
The corresponding address offset amount of the Serial No. of tail section be tail section Serial No. and latitude and longitude information length it Product.
A certain address offset amount corresponding position in a certain memory space are as follows: the initial address of the memory space and the address are inclined The corresponding position of this physical address of the sum of shifting amount also is understood as address backward from the initial address of the memory space Position at offset length.
Based on above-mentioned example, the Serial No. of first section is 12, then the corresponding address offset amount of Serial No. of first section For 12 × 2=24.In the initial address of first floor memory space, 24 byte positions read rising for second layer memory space backward Beginning address.
If there is no storing data at the position, apply for one piece of second layer memory space.Due to the digital sequence of the second section Column include 4 digits, and 4 digits can indicate 0000~9999 totally 10000 numerical value, and therefore, the Serial No. of the second section can indicate Greatest measure amount be 10000.Then, the space size of second layer memory space is 10000 × 2=20000 byte.
Further, the initial address for the second layer memory space newly applied can be written to the starting point of first floor memory space Location 24 byte positions backward.
Step S306 successively obtains the corresponding next layer of memory space of each section after first section before tail section Initial address, wherein the step of obtaining the initial address of the corresponding next layer of memory space of the i-th section includes 2≤i≤street lamp It numbers divided sector number and subtracts one:
The corresponding address offset amount of Serial No. for obtaining the i-th section, it is empty in the corresponding next layer of storage of the (i-1)-th section Between it is middle read the address offset amount corresponding position storage i+1 layer memory space initial address, if the corresponding position does not have Storing data then applies for one piece of i+1 layer memory space, should by the initial address write-in for the i+1 layer memory space newly applied Corresponding position.
Specifically, the 2nd section can be obtained in accordance with the following steps to the corresponding next layer of memory space of section second from the bottom Initial address: the Serial No. corresponding address offset amount corresponding position of first section reads to obtain head in first floor memory space The initial address of the corresponding second layer memory space of section;Further, in the corresponding second layer memory space of first section It reads to obtain the corresponding third layer storage sky of the second section in the Serial No. of two sections corresponding address offset amount corresponding position Between initial address, and so on, can from the corresponding i-th layer of memory space of the (i-1)-th section the i-th section Serial No. It reads to obtain the initial address of the corresponding i+1 layer memory space of the i-th section in corresponding address offset amount corresponding position;Most Afterwards, the corresponding address of Serial No. of section second from the bottom is inclined from the corresponding layer memory space second from the bottom of section third from the bottom It reads to obtain the initial address of the corresponding tail layer memory space of section second from the bottom in shifting amount corresponding position.
Moreover, in above process, if the initial address of equivalent layer memory space, Shen are not read in corresponding position Please one piece of equivalent layer memory space, the corresponding position is written into the initial address of the memory space of application.
Step S308 obtains the corresponding address offset amount of Serial No. of tail section, in the case where section second from the bottom is corresponding The address offset amount corresponding position stores latitude and longitude information in one layer of memory space.
Based on above-mentioned example, street lamp number is 12283369872825, and storage address length is 2 bytes.It is deposited in the first floor First section corresponding the is read to obtain in Serial No. (12) corresponding address offset amount corresponding position of first section in storage space The initial address of two layers of memory space;Further, in the corresponding second layer memory space of first section the second section number It reads to obtain rising for the corresponding third layer memory space of the second section in sequence (2833) corresponding address offset amount corresponding position Beginning address;Further, the Serial No. (6987) of third section is corresponding in the corresponding third layer memory space of the second section Address offset amount corresponding position read to obtain the initial address of the corresponding 4th layer of memory space of third section;Further , the corresponding address offset amount pair of Serial No. (2825) of the 4th section in the corresponding 4th layer of memory space of third section Answer storage latitude and longitude information at position.
Each street lamp is numbered into corresponding latitude and longitude information and is stored in a continuous memory space, and each longitude and latitude is believed The storage location of breath is corresponding with street lamp number, then rapidly can number read-write latitude and longitude information according to street lamp.For example, street lamp Number includes 2 digits, can apply for the array comprising 100 elements, and the subscript using street lamp number as array element is read and write Array element, speed can be very fast.
But since to be possible to comparison more for the digit of the Serial No. of street lamp number, it is impossible to by all street lamps number pair The latitude and longitude information answered is stored in same continuous memory space.For example, the Serial No. of street lamp number includes 14 digits Word, it is impossible to apply for that the array of an element comprising 2 14 powers numbers corresponding latitude and longitude information to store each street lamp.
In above-described embodiment, multilayered memory space storing data is applied for, upper one layer of memory space stores next layer of storage The initial address in space, tail layer memory space store longitude and latitude, when inquiring longitude and latitude, can be divided into street lamp number corresponding more A section, can according to the Serial No. of each section in each layer memory space the corresponding data of direct read/write, thus according to one A street lamp number inquires corresponding longitude and latitude, it is only necessary to which, by the lookup of fixed number of times, which is memory space The number of plies, also as street lamp numbers divided number of segment, so that inquiry velocity can be very fast.
The present invention also provides a kind of street lamps based on the street lamp location information acquisition and storage method in any of the above-described embodiment Location information inquiry method, this method include the steps that in above-mentioned street lamp location information acquisition and storage method, and including root The process of corresponding latitude and longitude information is searched according to street lamp number, as shown in figure 4, the process the following steps are included:
Step S402, monitoring center receive the street lamp number of input, and receive the finger for inquiring corresponding latitude and longitude information It enables.
After the street lamp number that alarm people's offer is provided at alarm, street lamp number can be inputted in monitoring center, and submit Inquire the instruction of corresponding latitude and longitude information.
Step S404, according to the inquiry of street lamp number according to the corresponding latitude and longitude information of street lamp number storage.
In one embodiment, street lamp is numbered corresponding latitude and longitude information and is carried out according to step S202 and S302~S308 Storage.In the present embodiment, step S404, which can number corresponding longitude and latitude according to the corresponding process query street lamp of the storing process, to be believed Breath.
Required inquiry times are equal to street lamp and number divided sector number, and inquiry velocity is very fast.
Step S406 marks the corresponding position of the latitude and longitude information found on the electronic map of display.
Specifically, the electronic map of the pre-set dimension centered on the latitude and longitude information corresponding position found can be obtained Data, and the electronic map is shown according to the data of the electronic map, and corresponds to position in the latitude and longitude information of electronic map Set place's display label symbol.
In the present embodiment, the corresponding position of the corresponding latitude and longitude information of street lamp number is directly marked on the electronic map, from The location of and intuitively show very much street lamp number.
In one embodiment, above-mentioned street lamp location information inquiry method is further comprising the steps of: being numbered according to street lamp Corresponding latitude and longitude information searches corresponding address information;Show the address information.
Specifically, can search street lamp in gis database numbers corresponding latitude and longitude information correspondingly Location information.The corresponding relationship of longitude and latitude and address information is stored in gis database.
As shown in figure 5, in one embodiment, a kind of street lamp location information acquisition and memory system, including smart machine 502 With monitoring center 504, smart machine 502 and monitoring center 504 are communicated to connect, in which:
The street lamp for receiving input of smart machine 502 number.
In one embodiment, smart machine 502 receives the street lamp number of user's input by touch screen or keyboard etc..? In another embodiment, smart machine 502 scans the two dimensional code that street lamp is numbered by scanning means, and parses from two dimensional code Street lamp number.
Smart machine 502 is also used to obtain street lamp number and instruction is submitted in position.
In one embodiment, there is the submitting button of entity on smart machine 502 or be shown in mentioning on touch screen Button icon is handed over, the entity submitting button or submitting button icon can trigger street lamp number when pressed and position is submitted and referred to It enables.
Smart machine 502 is also used to obtain the latitude and longitude information of the machine geographic location by GPS positioning device.
When needing to acquire the latitude and longitude information of a certain street lamp, smart machine 502 can be previously placed at the street lamp position, Street lamp number is numbered and got in the street lamp for the street lamp for receiving input and position is submitted after instructing, smart machine 502 The latitude and longitude information that the machine geographic location can be obtained by built-in GPS positioning device, can be obtained the accurate of the street lamp Latitude and longitude information.
Smart machine 502, which is also used to number in street lamp, corresponding with latitude and longitude information is sent to monitoring center 504.
Specifically, smart machine 502 produces a data packet comprising street lamp number and latitude and longitude information, data packet is sent out It is sent to monitoring center 504.
Monitoring center 504 can be server, server cluster etc., and the present invention is without limitation.
Monitoring center 504 is used to receive the street lamp number and latitude and longitude information of the transmission of smart machine 502.
In one embodiment, what monitoring center 504 received the transmission of smart machine 502 includes street lamp number and longitude and latitude The data packet of information parses street lamp number and latitude and longitude information from data packet.
Monitoring center 504 is also used to number in received street lamp and latitude and longitude information carries out corresponding storage.
In one embodiment, received street lamp number and latitude and longitude information are carried out corresponding storage by monitoring center 504 In the process:
(1) every presetting digit capacity that street lamp is numbered is divided into an area since the tail portion that street lamp is numbered by monitoring center 504 Section, obtains multiple sections of first section to tail section.
For example, street lamp number includes 10 digits, specifically: 12283369872825, presetting digit capacity is arranged to 4 digits, 4 digits are divided into a section after can then street lamp being numbered, and 4 digit of second-to-last is divided into a section, and remaining first 2 Number is divided into a section, to obtain: the Serial No. that first section (the first section) includes is 12, the number that the second section includes Word sequence is 2833, and the Serial No. that third section includes is 6987, and the Serial No. that tail section (the 4th section) includes is 2825。
(2) application and the one-to-one multilayered memory space of multiple sections, the respective section in each layer of memory space Serial No. corresponding position store the initial address of next layer of memory space, and the tail section in tail layer memory space Serial No. corresponding position stores latitude and longitude information.
Wherein, the first section corresponds to first layer memory space, and the second section corresponds to second layer memory space, and so on.
Also, first floor memory space is used to store next layer of memory space of respective numbers to layer memory space second from the bottom Initial address, the respective numbers be respective section the denotable greatest measure amount of Serial No..For example, first floor memory space For storing the initial address of the second layer memory space of respective numbers, the Serial No. of section can be indicated headed by the respective numbers Greatest measure amount;Second layer memory space is used to store the initial address of the third layer memory space of respective numbers, this is corresponding Quantity is the denotable greatest measure amount of Serial No. of the second section, and so on.
Tail layer memory space is used to store the latitude and longitude information of respective numbers, which is the Serial No. of tail section Denotable greatest measure amount.
In one embodiment, the application of monitoring center 504 and the one-to-one multilayered memory space of multiple sections, each The Serial No. corresponding position of respective section in layer memory space stores the initial address of next layer of memory space, Yi Ji The process of the Serial No. corresponding position storage latitude and longitude information of tail section includes: in tail layer memory space
(2.1) monitoring center 504 judges that the corresponding first floor memory space of first section whether there is, if it is not, then applying for one piece The corresponding first floor memory space of first section.
Specifically, monitoring center 504 can read the initial address of first floor memory space from preset memory locations, for example, The initial address etc. of first floor memory space is read in specified file under from preset path.If reading rising for first floor memory space Beginning address then illustrates that first floor memory space exists, and otherwise, applies for the corresponding first floor memory space of one piece of first section, and by the head The preset memory locations are written in the initial address of layer memory space.
In the present invention, the space size of first floor memory space to layer memory space second from the bottom is the digital sequence of respective section Arrange the product of denotable greatest measure amount and storage address length.For example, section headed by the space size of first floor memory space The product of Serial No. denotable greatest measure amount and storage address length;The space size of second layer memory space is the secondth area The product of Serial No. denotable the greatest measure amount and storage address length of section, and so on.
The space size of tail layer memory space is the denotable greatest measure of Serial No. and latitude and longitude information of tail section The product of length.
By taking above-mentioned street lamp number as an example, the Serial No. of first section includes 2 digits, and 2 digits can indicate 00~99 totally 100 Numerical value, therefore the denotable greatest measure amount of Serial No. of first section is 100.If storage address length is 2 bytes, can Apply for that size is the first floor space of 200 bytes.
(2.2) monitoring center 504 obtains the corresponding address offset amount of Serial No. of first section, in first floor memory space The initial address for reading the second layer memory space of address offset amount corresponding position storage, if the corresponding position does not store number According to then one piece of second layer memory space of application, is written the corresponding position for the initial address for the second layer memory space newly applied.
In the present invention, the corresponding address offset amount of the Serial No. of first section to section second from the bottom is the number of respective section The product of word sequence and storage address length.For example, headed by the corresponding address offset amount of Serial No. of first section section number The product of sequence and storage address length;The corresponding address offset amount of the Serial No. of second section is the Serial No. of the second section With the product of storage address length, and so on.
The corresponding address offset amount of the Serial No. of tail section be tail section Serial No. and latitude and longitude information length it Product.
A certain address offset amount corresponding position in a certain memory space are as follows: the initial address of the memory space and the address are inclined The corresponding position of this physical address of the sum of shifting amount also is understood as address backward from the initial address of the memory space Position at offset length.
Based on above-mentioned example, the Serial No. of first section is 12, then the corresponding address offset amount of Serial No. of first section For 12 × 2=24.In the initial address of first floor memory space, 24 byte positions read rising for second layer memory space backward Beginning address.
If there is no storing data at the position, apply for one piece of second layer memory space.Due to the digital sequence of the second section Column include 4 digits, and 4 digits can indicate 0000~9999 totally 10000 numerical value, and therefore, the Serial No. of the second section can indicate Greatest measure amount be 10000.Then, the space size of second layer memory space is 10000 × 2=20000 byte.
Further, first floor storage can be written in the initial address for the second layer memory space newly applied by monitoring center 504 The initial address in space 24 byte positions backward.
(2.3) the corresponding next layer of each section that monitoring center 504 successively obtains after first section before tail section is deposited Store up the initial address in space, wherein the process for obtaining the initial address of the corresponding next layer of memory space of the i-th section includes, 2≤ I≤street lamp numbers divided sector number and subtracts one:
The corresponding address offset amount of Serial No. for obtaining the i-th section, it is empty in the corresponding next layer of storage of the (i-1)-th section Between it is middle read the address offset amount corresponding position storage i+1 layer memory space initial address, if the corresponding position does not have Storing data then applies for one piece of i+1 layer memory space, should by the initial address write-in for the i+1 layer memory space newly applied Corresponding position;
Specifically, monitoring center 504 can obtain the 2nd section to the corresponding next layer of section second from the bottom in accordance with the following steps The initial address of memory space: the Serial No. corresponding address offset amount corresponding position of first section in first floor memory space Reading obtains the initial address of the corresponding second layer memory space of first section;Further, it is deposited in the corresponding second layer of first section The second section corresponding the is read to obtain in the Serial No. corresponding address offset amount corresponding position of the second section in storage space The initial address of three layers of memory space, and so on, can from the corresponding i-th layer of memory space of the (i-1)-th section the i-th section Serial No. corresponding address offset amount corresponding position read to obtain rising for the corresponding i+1 layer memory space of the i-th section Beginning address;Finally, from the corresponding layer memory space second from the bottom of section third from the bottom section second from the bottom Serial No. pair It reads to obtain the initial address of the corresponding tail layer memory space of section second from the bottom in the address offset amount corresponding position answered.
Moreover, in above process, if the initial address of equivalent layer memory space, Shen are not read in corresponding position Please one piece of equivalent layer memory space, the corresponding position is written into the initial address of the memory space of application.
(2.4) monitoring center 504 obtains the corresponding address offset amount of Serial No. of tail section, in section pair second from the bottom The address offset amount corresponding position stores latitude and longitude information in the next layer of memory space answered.
Based on above-mentioned example, street lamp number is 12283369872825, and storage address length is 2 bytes.It is deposited in the first floor First section corresponding the is read to obtain in Serial No. (12) corresponding address offset amount corresponding position of first section in storage space The initial address of two layers of memory space;Further, in the corresponding second layer memory space of first section the second section number It reads to obtain rising for the corresponding third layer memory space of the second section in sequence (2833) corresponding address offset amount corresponding position Beginning address;Further, the Serial No. (6987) of third section is corresponding in the corresponding third layer memory space of the second section Address offset amount corresponding position read to obtain the initial address of the corresponding 4th layer of memory space of third section;Further , the corresponding address offset amount of the Serial No. (2825) of the 4th section is corresponding in the corresponding 4th layer of memory space of third section Latitude and longitude information is stored at position.
Each street lamp is numbered into corresponding latitude and longitude information and is stored in a continuous memory space, and each longitude and latitude is believed The storage location of breath is corresponding with street lamp number, then rapidly can number read-write latitude and longitude information according to street lamp.For example, street lamp Number includes 2 digits, can apply for the array comprising 100 elements, and the subscript using street lamp number as array element is read and write Array element, speed can be very fast.
But since to be possible to comparison more for the digit of the Serial No. of street lamp number, it is impossible to by all street lamps number pair The latitude and longitude information answered is stored in same continuous memory space.For example, the Serial No. of street lamp number includes 14 digits Word, it is impossible to apply for that the array of an element comprising 2 14 powers numbers corresponding latitude and longitude information to store each street lamp.
In above-described embodiment, multilayered memory space storing data is applied for, upper one layer of memory space stores next layer of storage The initial address in space, tail layer memory space store longitude and latitude, when inquiring longitude and latitude, can be divided into street lamp number corresponding more A section, can according to the Serial No. of each section in each layer memory space the corresponding data of direct read/write, thus according to one A street lamp number inquires corresponding longitude and latitude, it is only necessary to which, by the lookup of fixed number of times, which is memory space The number of plies, also as street lamp numbers divided number of segment, so that inquiry velocity can be very fast.
The present invention also provides a kind of street lamps based on the street lamp location information acquisition and memory system in any of the above-described embodiment Place information inquiry system, the system include smart machine 502 and prison in above-mentioned street lamp location information acquisition and memory system Control center 504;And monitoring center 504 is also used to receive the street lamp number of input, and receives and inquire corresponding longitude and latitude letter The instruction of breath, and for the corresponding latitude and longitude information according to the inquiry of street lamp number according to street lamp number storage.
After the street lamp number that alarm people's offer is provided at alarm, street lamp number, Yi Jiti can be inputted in monitoring center 504 Hand over the instruction for inquiring corresponding latitude and longitude information.
In one embodiment, monitoring center 504 can be corresponding according to the process for storing street lamp number in above-described embodiment Process query street lamp numbers corresponding latitude and longitude information.
Required inquiry times are equal to street lamp and number divided sector number, and inquiry velocity is very fast.
Monitoring center 504 is also used to mark the corresponding position of the latitude and longitude information found on the electronic map of display.
Specifically, monitoring center 504 can obtain the pre-set dimension centered on the latitude and longitude information corresponding position found Electronic map data, and show the electronic map, and the longitude and latitude in electronic map according to the data of the electronic map It spends information corresponding position and shows label symbol.
In the present embodiment, the corresponding position of the corresponding latitude and longitude information of street lamp number is directly marked on the electronic map, from The location of and intuitively show very much street lamp number.
In one embodiment, monitoring center 504 is also used to number corresponding latitude and longitude information according to street lamp to search and correspond to Address information;Show the address information.
Specifically, monitoring center 504 can search street lamp in gis database numbers corresponding longitude and latitude The corresponding address information of information.The corresponding relationship of longitude and latitude and address information is stored in gis database.
Above-mentioned street lamp location information acquisition and storage method and system, smart machine gets street lamp number and position is submitted After instruction, the automatic latitude and longitude information for obtaining current location, as long as smart machine is in street lamp belonging to the street lamp number of input At position, so that it may get street lamp number belonging to street lamp accurate latitude and longitude information, and further by street lamp number and The latitude and longitude information correspondence of corresponding street lamp is sent to monitoring center;Street lamp can be numbered and be carried out pair with latitude and longitude information by monitoring center It should store, provide the foundation to inquire accurate latitude and longitude information according to street lamp number, thus the alarm people in alarm procedure Only need to provide street lamp number that is, reporting accurate location information.
Above-mentioned street lamp location information inquiry method and system, monitoring center receive the street lamp number of input and receive To after inquiring the instruction of corresponding latitude and longitude information, inquiry can be numbered according to the street lamp according to the corresponding of street lamp number storage Latitude and longitude information, and the corresponding position of the latitude and longitude information found is marked on the electronic map of display, so that alarm Alarm people need to only provide street lamp number in the process, so that it may inquire accurate latitude and longitude information according to street lamp number.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (6)

1. a kind of street lamp location information acquisition and storage method, comprising the following steps:
Smart machine receives the street lamp number of input;
Smart machine obtains street lamp number and instruction, the submitting button or aobvious with entity on the smart machine are submitted in position The submitting button icon being shown on touch screen, the entity submitting button or submitting button icon trigger street lamp volume when pressed Number and position submit instruction;
Smart machine obtains the latitude and longitude information of the machine geographic location by GPS positioning device;
Smart machine corresponding with the latitude and longitude information sends monitoring center for street lamp number;
Monitoring center receives the street lamp number and the latitude and longitude information that smart machine is sent;
The received street lamp number and the latitude and longitude information are carried out corresponding storage by monitoring center;
The monitoring center carries out the received street lamp number and the latitude and longitude information to correspond to the step of storing
Since the tail portion that the street lamp is numbered, every presetting digit capacity that the street lamp is numbered is divided into a section, obtains head Section to tail section multiple sections;
Application and the one-to-one multilayered memory space of the multiple section, the number of the respective section in each layer of memory space Word sequence corresponding position stores the initial address of next layer of memory space, and in tail layer memory space tail section number Sequence corresponding position stores latitude and longitude information;
The application is with the one-to-one multilayered memory space of the multiple section, the respective section in each layer of memory space Serial No. corresponding position store the initial address of next layer of memory space, and the tail section in tail layer memory space Serial No. corresponding position store latitude and longitude information the step of include:
Judge that the corresponding first floor memory space of first section whether there is, if it is not, then applying for the corresponding first floor storage of one piece of head section Space;
The corresponding address offset amount of Serial No. for obtaining first section, it is corresponding to read the address offset amount in first floor memory space The initial address of the second layer memory space of position storage applies for one piece of second layer if the corresponding position does not have storing data The corresponding position is written in the initial address for the second layer memory space newly applied by memory space;
The successively initial address of the corresponding next layer of memory space of each section after the first section of acquisition before tail section, In, the step of obtaining the initial address of the corresponding next layer of memory space of the i-th section includes that 2≤i≤street lamp number is divided Sector number subtracts one: the corresponding address offset amount of Serial No. of the i-th section is obtained, in the corresponding next layer of storage of the (i-1)-th section The initial address that the i+1 layer memory space of address offset amount corresponding position storage is read in space, if the corresponding position does not have There is storing data, then apply for one piece of i+1 layer memory space, the initial address for the i+1 layer memory space newly applied is written The corresponding position;
The corresponding address offset amount of Serial No. for obtaining tail section, in the corresponding next layer of memory space of section second from the bottom The address offset amount corresponding position stores the latitude and longitude information.
2. a kind of street lamp location information inquiry method based on street lamp location information acquisition and storage method described in claim 1, The following steps are included:
Monitoring center receives the street lamp number of input, and receives the instruction for inquiring corresponding latitude and longitude information;
According to the inquiry of street lamp number according to the corresponding latitude and longitude information of street lamp number storage;
The corresponding position of the latitude and longitude information found is marked on the electronic map of display.
3. street lamp location information inquiry method according to claim 2, which is characterized in that further comprise the steps of:
Corresponding address information is searched according to the latitude and longitude information;
Show the address information.
4. a kind of street lamp location information acquisition and memory system characterized by comprising
Smart machine, street lamp number for receiving input, obtains street lamp number and instruction is submitted in position, further passes through GPS Positioning device obtains the latitude and longitude information of the machine geographic location;And the street lamp is numbered and the latitude and longitude information pair Monitoring center should be sent to;The submitting button that there is the submitting button of entity on the smart machine or be shown on touch screen Icon, the entity submitting button or submitting button icon trigger street lamp number when pressed and instruction is submitted in position;
Monitoring center will be received described for receiving the street lamp number and the latitude and longitude information of smart machine transmission Street lamp number and the latitude and longitude information carry out corresponding storage;
During the received street lamp number and the latitude and longitude information are carried out corresponding storage by the monitoring center:
Since the tail portion that the street lamp is numbered, every presetting digit capacity that the street lamp is numbered is divided into a section, obtains head Section to tail section multiple sections;
Application and the one-to-one multilayered memory space of the multiple section, the number of the respective section in each layer of memory space Word sequence corresponding position stores the initial address of next layer of memory space, and in tail layer memory space tail section number Sequence corresponding position stores latitude and longitude information;
The monitoring center application and the one-to-one multilayered memory space of the multiple section, in each layer of memory space The Serial No. corresponding position of respective section stores the initial address of next layer of memory space, and in tail layer memory space During the Serial No. corresponding position storage latitude and longitude information of tail section:
Judge that the corresponding first floor memory space of first section whether there is, if it is not, then applying for the corresponding first floor storage of one piece of head section Space;
The corresponding address offset amount of Serial No. for obtaining first section, it is corresponding to read the address offset amount in first floor memory space The initial address of the second layer memory space of position storage applies for one piece of second layer if the corresponding position does not have storing data The corresponding position is written in the initial address for the second layer memory space newly applied by memory space;
The successively initial address of the corresponding next layer of memory space of each section after the first section of acquisition before tail section, In, the process for obtaining the initial address of the corresponding next layer of memory space of the i-th section includes that 2≤i≤street lamp number is divided Sector number subtracts one: the corresponding address offset amount of Serial No. of the i-th section is obtained, in the corresponding next layer of storage of the (i-1)-th section The initial address that the i+1 layer memory space of address offset amount corresponding position storage is read in space, if the corresponding position does not have There is storing data, then apply for one piece of i+1 layer memory space, the initial address for the i+1 layer memory space newly applied is written The corresponding position;
The corresponding address offset amount of Serial No. for obtaining tail section, in the corresponding next layer of memory space of section second from the bottom The address offset amount corresponding position stores the latitude and longitude information.
5. a kind of street lamp place information inquiry system based on street lamp location information acquisition and memory system as claimed in claim 4, It is characterized in that, the monitoring center is also used to receive the street lamp number of input, and receives and inquire corresponding latitude and longitude information Instruction, according to the inquiry of street lamp number according to the corresponding latitude and longitude information of street lamp number storage, and the electricity in display The corresponding position of the latitude and longitude information found is marked on sub- map.
6. street lamp place information inquiry system according to claim 5, which is characterized in that the monitoring center is also used to root Corresponding address information, and the display address information are searched according to the latitude and longitude information.
CN201410736840.4A 2014-12-05 2014-12-05 Street lamp location information acquisition storage and querying method and system Active CN105589903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410736840.4A CN105589903B (en) 2014-12-05 2014-12-05 Street lamp location information acquisition storage and querying method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410736840.4A CN105589903B (en) 2014-12-05 2014-12-05 Street lamp location information acquisition storage and querying method and system

Publications (2)

Publication Number Publication Date
CN105589903A CN105589903A (en) 2016-05-18
CN105589903B true CN105589903B (en) 2019-05-21

Family

ID=55929485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410736840.4A Active CN105589903B (en) 2014-12-05 2014-12-05 Street lamp location information acquisition storage and querying method and system

Country Status (1)

Country Link
CN (1) CN105589903B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943836A (en) * 2017-10-27 2018-04-20 武汉烽火众智智慧之星科技有限公司 A kind of method and system of Quick Acquisition video surveillance point position information
CN112968831B (en) * 2021-02-23 2022-06-21 中电海康集团有限公司 Method and device for remotely configuring edge gateway through heterogeneous network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170859A (en) * 2007-11-16 2008-04-30 费绍栋 A control method for cross-linked radio relay delivery road lamp
CN101861028A (en) * 2010-04-30 2010-10-13 北京中科富思信息技术有限公司 Device and method for streetlight fault detection and streetlight signal transmitting device
CN104093239A (en) * 2014-06-26 2014-10-08 中国科学技术大学苏州研究院 System and method for controlling and managing LED street lamp based on Internet of Things

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4845602B2 (en) * 2005-06-20 2011-12-28 三洋電機株式会社 Optical pickup device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170859A (en) * 2007-11-16 2008-04-30 费绍栋 A control method for cross-linked radio relay delivery road lamp
CN101861028A (en) * 2010-04-30 2010-10-13 北京中科富思信息技术有限公司 Device and method for streetlight fault detection and streetlight signal transmitting device
CN104093239A (en) * 2014-06-26 2014-10-08 中国科学技术大学苏州研究院 System and method for controlling and managing LED street lamp based on Internet of Things

Also Published As

Publication number Publication date
CN105589903A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
CN102227611B (en) For providing the method and apparatus of the cursor of context data in instruction drawing application
CN103268730B (en) Electronic map interface shows the method and apparatus of association mark point
US8134465B2 (en) Registration method and placement assisting apparatus for location information tag
CN100559728C (en) Be used for providing Map Services and route guidance service method at mobile communication terminal
TWI386020B (en) Method, apparatus and computer program product for selecting location
EP2388553A1 (en) Method, mobile device and computer program product for processing location information
EP2957864A1 (en) Method and system for pushing point of interest information
US8175618B2 (en) Mobile device product locator
CN101231175B (en) Method for labeling interest points on global positioning system electronic map
EP1857944B1 (en) Information search dependent on the position and direction of a portable electronic device
CN101588409B (en) Mobile terminal and method of managing meeting information using the same
US10267639B2 (en) Method and apparatus for validating potential points of interest using user and device characteristics
US11526525B2 (en) Method for sorting and displaying data on a portable electronic device
CN100461181C (en) Operation method of handwriting input for navigation device
CN103984470B (en) icon display method and device
CN110191154A (en) User tag determines method and apparatus
CN105589903B (en) Street lamp location information acquisition storage and querying method and system
KR20110027251A (en) Apparatus and method for serching and storing contents in portable terminal
US20090070028A1 (en) Computer-implemented method, system and computer program product for transmission of feedback information
CN105868316A (en) Method and device for acquiring regional information and electronic equipment
CN103024124A (en) Contact list searching method and contact list searching device
CN109089216B (en) File transmission method and equipment based on Bluetooth transmission
CN103634341A (en) Mobile terminal, cloud server and identification method of hot spots
CN112052302B (en) Method, system, device and storage medium for dynamically generating position word stock
CN107682809A (en) A kind of computer-readable recording medium, mobile terminal and computer 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
CB03 Change of inventor or designer information

Inventor after: Mao Zhouming

Inventor after: Mao Xiuguo

Inventor after: Zhou Jie

Inventor after: Yi Daling

Inventor after: Wang Lijiao

Inventor before: Mao Zhouming

Inventor before: Yi Daling

Inventor before: Mao Xiuguo

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant