Electronic map identifier drawing system and method for urban street lamps
Technical Field
The invention relates to an electronic map identifier drawing system and method for urban street lamps.
Background
With the development of science and technology, the application of the GIS system in the operation monitoring and control of the street lamp facility is more and more frequent, and the GIS system can perform the functional operations of geographic display, information monitoring, management and control of the street lamp facility, timely telemetering of running data of the street lamp facility, analysis and processing of running real-time information, timely storage of measured data, real-time running data GIS display, historical data GIS display and the like. By combining the street lamp facility operation monitoring and management system with the GIS, the display modes of the street lamp facilities by the public service street lamp management department and the street lamp industry operation and maintenance department are improved, the street lamp facility maintenance efficiency is improved, and the management cost is reduced. However, the existing street lamp facility operation monitoring and management system still has the following problems in the aspect of showing city street lamps in the GIS:
1. the general GIS is not used for the identification of urban street lamps or can not meet the actual requirement.
The general GIS mainly refers to an integrated GIS and a modular GIS, and the limitation of general GIS software is increasingly prominent along with the expansion of the application field of the GIS. The limitation of the general GIS in the aspect of intelligent lighting of the urban street lamps is mainly reflected in the lack of models and symbolic identifications applied to intelligent lighting of the urban street lamps, and the existing symbolic identifications can not meet the actual requirements. Therefore, the general GIS has a great defect in the aspect of displaying the urban street lamp illumination.
2. The manual drawing of the symbolic identification of the urban street lamp is slow, the workload is large, and the identification standardization degree is not high.
When the urban street lamp application management utilizes the GIS to display, the basic state, the running state and the alarm state of street lamp facilities need to be displayed, so that the total number of the state symbolic identifications displayed in the GIS by the urban street lamps is numerous, for example: when 4 lampholders are arranged on a lamp post of an urban street lamp, if 4 states such as lamp turning-off, lamp turning-on, uncontrolled state and failure need to be displayed, the number of required icons is the multiplication of the total number (4) of the lampholders and the display state (4), and 4 x 256. For a middle-pole lamp, a high-pole lamp and other types of lamp poles with more lamp holders, the number of icons needing to be identified is more, and if all the state icons are drawn manually, the problems of large workload, much time consumption and inaccuracy in icon making exist, and when the state icons need to be updated, the updating is tedious and slow.
3. The street lamp facility resource information display cannot be detailed and proper and the loading is slow.
When the GIS is adopted for displaying street lamp facility information, the display of street lamp equipment with a large number and variety by the traditional GIS is not good in the aspect of appropriate details due to the influence of the density of lamp posts and the scale of a map.
When the map scale is large, street lamp equipment information in the map visual range is as simple as that displayed when the map scale is small, and at the moment, more detailed street lamp facility information is required to be displayed; when the map scale is small, the map visual range is large, the number of street lamp facilities in the visual range is large, the data loading is slow due to the fact that the street lamp facilities are completely read and loaded from the database, and the user experience is reduced; after the loading display, the display density in the map visual range is too high, so that the icons are mutually covered or shielded, street lamp facilities cannot be distinguished, and the viewing effect is influenced.
4. The display of the street lamp facility resource information is not intuitive and is slow.
At present, the total quantity of street lamp equipment in a slightly-scaled city is more than hundreds of thousands, and the street lamp facility resource types are various. With the enlargement of the urban scale, the number of street lamp facilities increases in a geometric progression, and in the face of such huge facility data and complicated equipment types, when the existing street lamp facility management system is used for displaying the street lamp facilities, application lists, diagrams and the like are displayed, so that the problems of non-visual display effect, slow data loading and displaying speed and the like exist.
Disclosure of Invention
The system and the method can rapidly draw and store the symbolic identifications of the states of the urban street lamps with large quantity, and can comprehensively, intuitively, timely, detailedly and appropriately display the symbolic identifications by utilizing the GIS in a street lamp facility monitoring and management system.
In order to achieve the purpose, the invention adopts the following technical scheme:
an electronic map identification drawing system for urban street lamps, comprising: the system comprises a data generation module, a data city street lamp database and a symbolization module which are connected in sequence;
the data generation module collects all types of basic base maps, basic data and state data of urban street lamp facilities in an urban street lamp control box or an urban street lamp resource monitoring system and stores the basic base maps, the basic data and the state data in a data urban street lamp database;
the data city street lamp database comprises:
city street lamp foundation map library: the system is used for storing a basic base map which is pre-made according to basic attributes of the urban street lamps;
city street lamp basic database: the system is used for storing basic data information of the urban street lamp facility;
city street lamp state database: the system is used for storing the state information of the urban street lamp facility;
the symbolization module comprises: the system comprises a data reading module, an urban street lamp symbolized identification generating module and an urban street lamp symbolized identification file system which are sequentially connected;
the data presentation module comprises: the system comprises a display control and management module, a GIS module, a range loading calculation module, a client buffer module and a server buffer module which are connected in sequence; the range loading calculation module is also connected with the data maintenance module;
the symbolization module loads the city street lamp facility base map through the city street lamp base map library, generates symbolized identifications of the city street lamps in the electronic map according to information obtained from the city street lamp base database and the city street lamp state database, stores the generated symbolized identifications in the city street lamp symbolized identification file system in a classified mode, and displays the symbolized identifications through the data display module.
The data display module specifically comprises:
and a GIS module: transmitting a map range, a geographic scale and a set map scale threshold parameter to a range loading calculation module in real time, receiving city street lamp equipment data, symbolic identification data and a display instruction of a city street lamp of a display control and management module, and displaying street lamp facility resource information;
the display control and management module: inquiring data in the loaded data, receiving urban street lamp equipment data transmitted by a client buffer module and symbolized identification data of an urban street lamp, transmitting the inquired and received data and a display instruction to a GIS module, and simultaneously storing the data displayed in the GIS module into the loaded data;
the loaded data: storing street lamp facility data and street lamp facility type vector symbol data which are displayed in a GIS module;
the range loading calculation module: receiving a map range, a geographic scale and a set map scale threshold parameter transmitted by a GIS module in real time, respectively inquiring urban street lamp equipment data and symbolic identification data of urban street lamps which meet conditions in a loaded data and client buffer module according to the parameter, receiving a data maintenance success instruction of a data maintenance module, and then inquiring data according to the last parameter obtained from the GIS module;
a data maintenance module: the unified management of the urban street lamp equipment data and the symbolic identification data of the urban street lamps is realized, the updated street lamp resource facility information and the symbolic identification data of the urban street lamps are respectively stored under corresponding storage paths, and a data updating success instruction is sent to the range loading calculation module;
a client buffer module: storing the urban street lamp equipment data and the symbolic identification data of the urban street lamps obtained from the server side buffer module, and realizing client side cache of the urban street lamp equipment data and the symbolic identification data of the urban street lamps;
a server side buffer module: the city street lamp equipment data and the symbolic identification data of the city street lamps, which are obtained from the city street lamp data base, are stored, and the city street lamp equipment data and the symbolic identification data of the city street lamps are cached at the server side.
The symbolization module automatically generates a simplified basic symbolized identification and a detailed basic symbolized identification according to the read basic street lamp post base map and the read basic data of the city street lamp;
and naming according to the lamp post basic attribute, establishing a corresponding lamp post related data storage path in the urban street lamp symbolization identification file system, and respectively establishing storage paths of a short basic symbolization identification and a detailed basic symbolization identification under the corresponding lamp post related data storage path.
A drawing method of an electronic map identification drawing system for urban street lamps comprises the following steps:
step 1: reading city street lamp basic data from a city street lamp basic database;
step 2: acquiring a corresponding basic street lamp post base map from a basic city street lamp base map library according to the read basic city street lamp data;
and step 3: acquiring corresponding urban street lamp post state data from an urban street lamp state database according to the read urban street lamp basic data;
and 4, step 4: establishing storage paths of related data of different lamp poles in a file system of symbolic identifications of urban street lamps according to basic attributes of the lamp poles, state data of the lamp poles and application parameters of whether to hover by a mouse or not, and respectively establishing storage paths of basic symbolic identifications and real-time state symbolic identifications under the storage paths of the related data of the different lamp poles;
and 5: drawing an urban street lamp basic data symbol on the basic street lamp pole base map according to the read basic street lamp pole base map and the read urban street lamp basic data, naming the drawn basic data symbol according to a set rule, and storing the named basic data symbol under a corresponding path;
step 6: and searching a corresponding icon in a file system of the symbolic identification of the urban street lamp according to the basic data, the real-time operation data and the historical operation data of the urban street lamp, and displaying the icon at a corresponding position of a map.
The basic symbolization identification comprises: a short basic symbolized identification and a detailed basic symbolized identification;
the simplified basic symbolization mark indicates the type of the facility through the outline shape of the facility, and comprises equipment names and serial number information;
the detailed basic symbolization mark indicates the type of the facility through the outline shape of the icon, and the attached information of the facility is interpreted through the detailed texture of the icon, and comprises the name, the number, the size, the material, the geographical position description and the information of the affiliated unit.
The real-time status symbolized identification comprises: a glance state symbolized identification, a detailed state symbolized identification, a glance mouse hovering state symbolized identification and a detailed mouse hovering state symbolized identification;
the schematic state symbolization mark indicates the type of the facility through the outline shape of the facility, demonstrates schematic state information through the outline, and comprises equipment names and number information;
the detailed state symbolization mark indicates the type of the facility through the outline shape of the icon, and the attached information and the state information of the facility are interpreted through the detailed texture of the icon, and the detailed state symbolization mark comprises the name, the number, the size, the material, the geographical position description and the information of the affiliated unit;
the symbolic identification of the abbreviated mouse hovering state indicates the type of the facility through the outline shape of the facility, demonstrates indicating state information through the outline, and comprises equipment name and serial number information;
the detailed mouse hovering state symbolization mark indicates the type of the facility through the outline shape of the icon, and the attached information and the state information of the facility are interpreted through the detailed texture of the icon, and the attached information and the state information of the facility comprise equipment name, serial number, equipment size, equipment material, geographical position description and affiliated unit information.
When the mouse is hovered over the symbolic identification of the abbreviated state, the GIS system reads the symbolic identification of the abbreviated mouse hovering state in the symbolic identification file system of the urban street lamp according to the symbolic identification information of the abbreviated state, and then displays the symbolic identification of the abbreviated mouse hovering state at a corresponding geographic position; when the mouse is moved away from the symbolic identification of the abbreviated mouse hovering state, the GIS system reads the symbolic identification of the abbreviated state in the symbolic identification file system of the urban street lamp according to the symbolic identification information of the abbreviated mouse hovering state, and then displays the symbolic identification at a corresponding geographic position, so that the conversion of the symbolic identification during the mouse hovering is realized.
The city street lamp basic data and the city street lamp basic base map are in one-to-one correspondence, and the city street lamp basic data and the street lamp state data are in one-to-many relationship;
the names of the basic symbolic identifications of the urban street lamps correspond to the attribute information of the urban street lamps one by one when the basic symbolic identifications of the urban street lamps are stored, and the real-time state symbolic identifications of the urban street lamps correspond to the combination information of the attribute information and the state information of the urban street lamps one by one when the real-time state symbolic identifications of the urban street lamps are stored.
The method for displaying the icon in the step (6) specifically comprises the following steps:
step (1): the data maintenance module carries out maintenance operation on the urban street lamp equipment data and the symbolic identification data of the urban street lamps; after the operation is finished, the range loading calculation module is timely notified;
step (2): the range loading calculation module inquires urban street lamp equipment data meeting the conditions and symbolic identification data of urban street lamps in the loaded data according to the map range, the geographic scale and the set map scale threshold value parameter received from the GIS module, and then inquires the rest urban street lamp equipment data meeting the conditions and the symbolic identification data of the urban street lamps in the client buffer module; receiving a successful data maintenance instruction of the data maintenance module, and then performing data query according to the last obtained parameters from the GIS module;
and (3): the GIS module obtains city street lamp equipment data, symbolic identification data of city street lamps and display instructions pushed by the display control and management module in real time according to the map visual range, the geographic scale and the set map scale threshold parameter, and displays street lamp symbolic identification icons with corresponding detailed degrees in the map visual range according to the map scale of the visual range, the set map scale threshold parameter and the received display instructions.
The icons displayed on the map jointly determine whether the icons are schematic icons or detailed icons according to the running state of the street lamp facilities, the zoom level of the map and whether the icons are in the visible range of the map;
when the map scale of the visible range is larger than the set map scale threshold parameter, the number of street lamp facilities in the visible range of the map is small, the detailed icons are read from the urban street lamp symbolic identification file system, and the detailed basic symbolic identification and the detailed state symbolic identification of the street lamp facilities are displayed;
when the map scale of the visible range is smaller than the set map scale threshold parameter, the quantity of street lamp facilities is large in the visible range of the map, the simplified icons are read from the urban street lamp symbolic identification file system, and the simplified basic symbolic identification and the simplified state symbolic identification of the street lamp facilities are displayed;
and when the icons are not mutually shielded and covered and the map scale is further smaller than the set scale threshold value, the street lamp facility information is not displayed.
The invention has the beneficial effects that:
the invention adopts an electronic map city street lamp sign drawing system to quickly draw and store the symbolic sign of the city street lamp which is lacked in the traditional GIS according to various states of the city street lamp in the physical world. In the combined application of the urban street lamp application management system and the GIS, symbolic information display can be carried out on the corresponding position of the urban street lamp application management system on an electronic map; and various information of the urban street lamps in the visible range of the map is reasonably displayed in real time according to the scale of the map, so that comprehensive, visual, clear and symbolic display of the information is realized.
The basic symbolization identification of the urban street lamp is drawn by the drawing system according to basic attributes of the urban street lamp, such as the height of a lamp post and the number of lamp holders, and is divided into a brief basic symbolization identification and a detailed basic symbolization identification. When the basic data of the urban street lamps are displayed on the whole map, when the scale is small, the schematic basic symbolic identification of the urban street lamps is displayed on the map, the overall distribution condition can be checked, the symbolic identification has no mutual shielding and covering condition, and the urban street lamp icons can be comprehensively and clearly checked and conveniently selected. When the map scale is large, the number of urban street lamp facilities in the visible range is small, the basic data quantity of the urban street lamp facilities needs to be displayed at the moment, the detailed basic symbolic identification of the street lamp facility basic information is displayed at the moment, and accordingly the detailed urban street lamp information can be viewed.
The real-time state symbolization identification of the urban street lamp is characterized in that according to basic data and state data (including running states and alarm states) of the urban street lamp, such as comprehensive combination of different states of different lamp posts and lamp caps, such as lamp turning-off, lamp turning-on, uncontrolled state, failure and the like, the symbol drawing system draws all state symbolization identifications of the urban street lamp, wherein the state symbolization identifications are divided into 4 types, namely a brief state symbolization identification, a detailed state symbolization identification, a brief mouse hovering state symbolization identification and a detailed mouse hovering state symbolization identification. When the whole electronic map shows real-time data of the urban street lamps, when the scale is small, the schematic state symbolized identification of the urban street lamps is shown on the map, the overall distribution condition can be checked, the symbolized identification has no mutual shielding and covering condition, the urban street lamp icon can be comprehensively and clearly checked, and the selection of the urban street lamp icon is convenient; when the mouse hovers over the glance-state symbolic representation, the glance-state symbolic representation becomes the glance-mouse-hover-state symbolic representation. When the electronic map scale is large, the number of urban street lamp facilities in a visual range is small, the real-time data volume of the urban street lamp facilities needing to be displayed is small, the detailed state symbolization identification of the real-time information of the street lamp facilities is displayed, and accordingly the detailed real-time information of the urban street lamps can be viewed; when the mouse is hovered over the detailed city street lamp real-time information, the detailed city street lamp real-time information becomes a detailed mouse hovering state symbolic identification.
Finally, the invention adopts a pre-rule naming and storing mode in the aspect of storing symbolized identification data, names are in one-to-one correspondence with the attribute information of the urban street lamps when the basic symbolized identification of the urban street lamps is stored, and real-time state symbolized identification of the urban street lamps is stored, and is in one-to-one correspondence with the combination information of the attribute information and the state information of the urban street lamps, so that when a map is zoomed and roamed, the basic information and the real-time information of the urban street lamps can obtain the corresponding symbolized identification according to the attribute and the real-time state of the urban street lamps, and the loading time of the symbolized identification can be completed.
Drawings
Fig. 1 is a schematic drawing of an electronic map identifier of a city street lamp.
Detailed Description
The invention is further described with reference to the following detailed description of embodiments and drawings.
An electronic map identification drawing system for urban street lamps, as shown in fig. 1, comprises: the system comprises a data generation module, a data city street lamp database and a symbolization module which are connected in sequence;
the data generation module collects all types of basic base maps, basic data and state data of urban street lamp facilities in an urban street lamp control box or an urban street lamp resource monitoring system and stores the basic base maps, the basic data and the state data in a data urban street lamp database;
the data city street lamp database comprises:
city street lamp foundation map library: the system is used for storing a basic base map which is pre-made according to basic attributes of the urban street lamps;
city street lamp basic database: the system is used for storing basic data information of the urban street lamp facility;
city street lamp state database: the system is used for storing the state information of the urban street lamp facility;
the data presentation module comprises: the system comprises a display control and management module, a GIS module, a range loading calculation module, a client buffer module and a server buffer module which are connected in sequence; the range loading calculation module is also connected with the data maintenance module;
wherein,
and a GIS module: transmitting parameters such as a map range, a geographical scale, a set map scale threshold value and the like to a range loading calculation module in real time, receiving urban street lamp equipment data, symbolic identification data and a display instruction of an urban street lamp of a display control and management module, and displaying street lamp facility resource information;
the display control and management module: inquiring data in the loaded data, receiving urban street lamp equipment data transmitted by a client buffer module and symbolized identification data of an urban street lamp, transmitting the inquired and received data and a display instruction to a GIS module, and simultaneously storing the data displayed in the GIS module into the loaded data;
the loaded data: storing street lamp facility data and street lamp facility type vector symbol data which are displayed in a GIS module;
the range loading calculation module: receiving a map range, a geographic scale and a set map scale threshold parameter transmitted by a GIS module in real time, inquiring urban street lamp equipment data meeting conditions and symbolic identification data of urban street lamps in loaded data according to the parameter, and inquiring the remaining urban street lamp equipment data meeting the conditions and the symbolic identification data of the urban street lamps in a client buffer module; and receiving a successful data maintenance instruction of the data maintenance module, and then performing data query according to the last obtained parameters from the GIS module.
A data maintenance module: the method has the advantages that unified management of urban street lamp equipment data and symbolic identification data of urban street lamps is achieved, unified external interfaces are provided, functions of adding, deleting, modifying and inquiring street lamp facility resource information and street lamp resource type vector symbol information are achieved, the updated street lamp resource facility information is stored in a street lamp facility database, and the updated street lamp resource type vector symbol information is stored in a street lamp setting type vector symbol database; sending a data updating success instruction to the range loading calculation module;
a client buffer module: storing the urban street lamp equipment data and the symbolic identification data of the urban street lamps obtained from the server side buffer module, and realizing client side cache of the urban street lamp equipment data and the symbolic identification data of the urban street lamps;
a server side buffer module: the city street lamp equipment data and the symbolic identification data of the city street lamps, which are obtained from the city street lamp data base, are stored, and the city street lamp equipment data and the symbolic identification data of the city street lamps are cached at the server side.
The symbolization module comprises: the system comprises a data reading module, an urban street lamp symbolized identification generating module and an urban street lamp symbolized identification file system which are sequentially connected;
the symbolization module loads the city street lamp facility base map through the city street lamp base map library, generates symbolized identifications of the city street lamps in the electronic map according to information obtained from the city street lamp base database and the city street lamp state database, stores the generated symbolized identifications in the city street lamp symbolized identification file system in a classified mode, and displays the symbolized identifications through the data display module.
The symbolization module automatically generates a simplified basic symbolized identification and a detailed basic symbolized identification according to the read basic street lamp post base map, the basic city street lamp data and the set parameters (such as symbolized identification storage path and symbolized identification type);
and naming according to the set parameters and the lamp post basic attributes, establishing corresponding lamp post related data storage paths in the urban street lamp symbolization identification file system, and respectively establishing storage paths of the short basic symbolization identification and the detailed basic symbolization identification under the corresponding lamp post related data storage paths.
In the above-mentioned structure formed from every portion,
city street lamp foundation map library: the database is a file type database, and is a database for storing a basic base map which is pre-made according to the basic attributes of the urban street lamps.
City street lamp basic database: the system is a relational database management system and stores basic data information of urban street lamp facilities.
City street lamp state database: the system is a relational database management system and is used for storing all types of state information of street lamp facilities in a city.
A symbolization module: loading a city street lamp facility base map in advance through a city street lamp base map library, and generating various electronic map city street lamp symbolic identifications according to information obtained from a city street lamp base database and a city street lamp state database; and after the generation is finished, storing the information into a corresponding folder of the urban street lamp symbolization identification file system.
The symbolic city street lamp identification file system is used for storing corresponding folders and files.
Lamp pole file of n lamp holders: the system is a folder in a symbolic identification file system of the urban street lamps and is used for storing folders and files of lamp posts of n lamp holders.
Identifying folders by symbolic notation on a short basis: the lamp post folder in the urban street lamp symbolization identification file system is used for storing the short-base symbolization identification files of urban lamp posts.
The abbreviated basic notation symbol is a vector icon symbol (the icon symbol is simplified in content and indicates the type of facility only by the outline shape of the facility) having a small area (generally, 16 × 16 pixels in size), simple information (including a small amount of necessary information such as the name and number of the device), and the like.
Detailed basic symbolized identification folder: the file folder is used for storing detailed basic symbolic identification files of the urban lamp posts.
The detailed basic symbolized mark is a vector icon symbol with a large area (generally 32 × 32 pixels in size) (the icon symbol is rich in content, the type of a facility can be indicated through the outline shape of the icon, and the accessory information of the facility can be interpreted through the detailed texture of the icon, such as the detailed type of the facility (single-arm lamp, double-arm lamp, high-pole lamp, etc.), the number of lamps, the arrangement mode of the lamps (the number of lamps close to a main road, the number of lamps close to an auxiliary road, etc.), and detailed information (nearly including the name, number, size, material, geographical location description, affiliated unit, etc.) of the facility, etc.
The abbreviated state symbolizes the identification folder: the lamp post folder in the urban street lamp symbolization identification file system is used for storing the short state symbolization identification files of urban lamp posts.
The abbreviated state symbolization symbol is a vector iconic symbol (the iconic symbol is simplified in content, the type of facility is indicated only by the shape of the facility outline, and the state information is indicated by the outline) with a small area (generally, 16 × 16 pixels in size), simple information (including a small amount of necessary information such as the name and number of the device, and the like).
Detailed state tokenization identifies folders: the urban street lamp symbolized identification file system is a file folder below a lamp post file folder and is used for storing detailed state symbolized identification files of urban lamp posts.
The detailed status symbolized mark is a vector icon symbol with a large area (generally 32 × 32 pixels in size) (the icon symbol is rich in content, the type of a facility can be indicated by the outline shape of the icon, and the accessory information of the facility can be interpreted by the detailed texture of the icon, such as the detailed type of the facility (single-arm lamp, double-arm lamp, high-pole lamp, etc.), the number of lamps, the arrangement mode of the lamps (the number of lamps close to a main road, the number of lamps close to an auxiliary road), the status of the lamps (light-out and light-on), and detailed information (including the name, number, size, material, geographical location description, belonging unit, etc.) and the like.
Symbolizing and identifying a folder in a short mouse hovering state: the symbolic identification file system is a folder under a lamp post folder in the symbolic identification file system of the urban street lamp and is used for storing the symbolic identification file of the short mouse hovering state of the urban lamp post.
The abbreviated mouse hovering state symbolization flag is a vector icon symbol (the icon symbol is simplified in content and the facility type is indicated only by the facility outline shape) with a small area (generally, the size is 16 × 16 pixels), and is simple information (including a small amount of necessary information such as the name and number of the device).
Detailed mouse hover state tokenization markup folders: the symbolic identification file system is a folder under a lamp post folder in the symbolic identification file system of the urban street lamp and is used for storing detailed mouse hovering state symbolic identification files of the urban lamp post.
The detailed mouse hovering state symbolic mark is a vector icon symbol with a large area (generally 32 × 32 pixels in size) (the icon symbol is rich in content, the type of a facility can be indicated through the outline shape of the icon, and the facility auxiliary information can be interpreted through the detailed texture of the icon, such as the detailed type of the facility (single-arm lamp, double-arm lamp, high-pole lamp, etc.), the number of lamps, the arrangement mode of the lamps (the number of the lamps close to a main road, the number of the lamps close to a sub-road, etc.), and detailed information (nearly including the name, the number, the size, the material, the geographical location description, the belonging unit, etc.) of the facility, and the symbolic mark has a shadow outline, etc.
The state symbolization identification and the mouse hovering state symbolization identification have basically the same actual content, when the mouse is placed at a certain position, the corresponding position of the electronic map changes the color corresponding to the hovering of the mouse, and meanwhile, the state information of the street lamp equipment at the mouse hovering position is highlighted.
When the mouse is hovered over the symbolic identification of the abbreviated state, the GIS system reads the symbolic identification of the abbreviated mouse hovering state in the symbolic identification file system of the urban street lamp according to the symbolic identification information (name, size and geographic position) of the abbreviated state, and then displays the symbolic identification of the abbreviated mouse hovering state at the corresponding geographic position; when the mouse is moved away from the symbolic identification of the abbreviated mouse hovering state, the GIS system reads the symbolic identification of the abbreviated state in the symbolic identification file system of the urban street lamp according to the symbolic identification information (name, size and geographic position) of the abbreviated mouse hovering state, and then displays the symbolic identification at the corresponding geographic position, so that the change of the symbolic identification during the mouse hovering is realized.
The data processing flow of the electronic map identifier drawing method for the urban street lamps is as follows:
step 1: and when the symbolization module operates, the basic data of the urban street lamps can be read from the basic database of the urban street lamps.
Step 2: and the symbolization module acquires a corresponding basic street lamp post base map from the city street lamp base map library according to the read city street lamp base data. The city street lamp basic data and the city street lamp basic base map are in one-to-one correspondence, for example, the single-arm lamp basic data corresponds to the single-arm lamp basic base map.
And step 3: and the symbolization module acquires corresponding urban street lamp post state data from the urban street lamp state database according to the read urban street lamp basic data. The street lamp basic data and the street lamp state data are in a one-to-many relationship, for example, the single-arm lamp basic data corresponds to 4 kinds of state data of single-arm lamp turning-off, single-arm lamp turning-on, single-arm lamp uncontrolled, single-arm lamp failure and the like in the street lamp state data.
And 4, step 4: the symbolization module automatically generates a short-cut basic symbolized identification and a detailed basic symbolized identification according to the read basic street lamp post base map, the urban street lamp basic data and the set parameters, names the short-cut basic symbolized identification and the detailed basic symbolized identification according to the set parameters and the lamp post basic attributes, and finally saves the short-cut basic symbolized identification file and the detailed basic symbolized identification file under a lamp post folder in a file system of the urban street lamp symbolized identification.
And 5: the symbolization module automatically generates a symbolic sign of a abbreviated state, a symbolic sign of a detailed state, a symbolic sign of a abbreviated mouse hovering state and a symbolic sign of a detailed mouse hovering state according to the read base map of the lamp post of the basic street lamp, the basic data of the urban street lamp, the state data of the lamp post of the urban street lamp and the set parameters, names the symbolic sign of the abbreviated state, the symbolic sign of the abbreviated mouse hovering state and the symbolic sign of the detailed mouse hovering state according to the set parameters, the basic properties of the lamp post, the state data of the lamp post, whether the mouse is hovered or not and other parameters, and finally stores the symbolic sign of the abbreviated state, the symbolic sign of the detailed state, the symbolic sign of the abbreviated mouse hovering state.
Drawing city street lamp basic data symbols and city street lamp pole state data symbols on the basic lamp pole base map in sequence by utilizing GDI + technology according to the read basic street lamp pole base map, the read city street lamp basic data and the read city street lamp pole state data, naming the real-time state symbolized identification generated after drawing according to set rules, and storing the real-time state symbolized identification under a corresponding path.
Step 6: when the city street lamps are displayed on the electronic map, the corresponding icons are searched in the file system of the symbolic identification of the city street lamps according to the basic data, the real-time operation data and the historical operation data of the city street lamps, and the icons are displayed at the corresponding positions of the map.
The icon display method specifically comprises the following steps:
step (1): the data maintenance module carries out maintenance operation on the urban street lamp equipment data and the symbolic identification data of the urban street lamps; after the operation is finished, the range loading calculation module is timely notified;
step (2): the range loading calculation module inquires urban street lamp equipment data meeting the conditions and symbolic identification data of urban street lamps in the loaded data according to the map range, the geographic scale and the set map scale threshold value parameter received from the GIS module, and then inquires the rest urban street lamp equipment data meeting the conditions and the symbolic identification data of the urban street lamps in the client buffer module; receiving a successful data maintenance instruction of the data maintenance module, and then performing data query according to the last obtained parameters from the GIS module;
and (3): the GIS module obtains city street lamp equipment data, symbolic identification data of city street lamps and display instructions pushed by the display control and management module in real time according to the map visual range, the geographic scale and the set map scale threshold parameter, and displays street lamp symbolic identification icons with corresponding detailed degrees in the map visual range according to the map scale of the visual range, the set map scale threshold parameter and the received display instructions.
The icons displayed on the map jointly determine whether the icons are schematic icons or detailed icons according to the running state of the street lamp facilities, the zoom level of the map and whether the icons are in the visible range of the map;
when the map scale of the visible range is larger than the set map scale threshold parameter, the number of street lamp facilities in the visible range of the map is small, the detailed icons are read from the urban street lamp symbolic identification file system, and the detailed basic symbolic identification and the detailed state symbolic identification of the street lamp facilities are displayed;
when the map scale of the visible range is smaller than the set map scale threshold parameter, the quantity of street lamp facilities is large in the visible range of the map, the simplified icons are read from the urban street lamp symbolic identification file system, and the simplified basic symbolic identification and the simplified state symbolic identification of the street lamp facilities are displayed;
and when the icons are not mutually shielded and covered and the map scale is further smaller than the set scale threshold value, the street lamp facility information is not displayed.
And 7, repeating the steps 1-6 when the icons needed by the urban street lamps need to be updated or increased.
In summary, the system and the method for drawing the electronic map identifier of the urban street lamp automatically draw and generate the symbolic identifier for the urban street lamp according to the basic attribute, the state data, the basic base map and the setting parameters of the urban street lamp, and name and store the symbolic identifier according to corresponding information. When the street lamp is displayed in the GIS, the basic street lamp information and the real-time state information in the map visual range are obtained according to the conditions of the map visual range, the map scale and the like, and whether the street lamp icon is displayed or not and the detailed degree of the displayed operation data icon are determined according to the map visual range, the map scale and the operation state data.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.