CN117520471A - Space element information query method, system, storage medium and electronic equipment - Google Patents

Space element information query method, system, storage medium and electronic equipment Download PDF

Info

Publication number
CN117520471A
CN117520471A CN202410019839.3A CN202410019839A CN117520471A CN 117520471 A CN117520471 A CN 117520471A CN 202410019839 A CN202410019839 A CN 202410019839A CN 117520471 A CN117520471 A CN 117520471A
Authority
CN
China
Prior art keywords
space
information
space element
position information
spatial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410019839.3A
Other languages
Chinese (zh)
Other versions
CN117520471B (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 Urban Planning And Design Institute Co ltd
Original Assignee
Shenzhen Urban Planning And Design Institute 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 Urban Planning And Design Institute Co ltd filed Critical Shenzhen Urban Planning And Design Institute Co ltd
Priority to CN202410019839.3A priority Critical patent/CN117520471B/en
Publication of CN117520471A publication Critical patent/CN117520471A/en
Application granted granted Critical
Publication of CN117520471B publication Critical patent/CN117520471B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to the technical field of data processing, in particular to a space element information query method, a system, a storage medium and electronic equipment, comprising the following steps: receiving a query instruction, and analyzing to obtain space element information; inquiring a pre-established space element attribute table according to the space element information to obtain space position information codes and attribute information corresponding to the space element information; inquiring a pre-established space element coding table according to the space position information codes to obtain space element codes corresponding to the space position information codes; and displaying the space elements and the attribute information in a preset space element map. According to the method and the device, the space elements are encoded, the association relation between the space element position information and the space elements is established, the space elements are directly obtained by inquiring, the position information and the attribute information of the space elements are expressed rapidly and efficiently, convenience and support are provided for space element management, and the method and the device have strong applicability and a large application range.

Description

Space element information query method, system, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and system for querying spatial element information, a storage medium, and an electronic device.
Background
Along with the rapid development of smart city and digital twin technology, the realization of fine management based on a city digital platform becomes one of important contents in the new development period of cities. Urban management is oriented to a complex system of multidimensional staggered association of space, population, industry, events and the like, wherein the space is a carrier corresponding to and associated with various space element information. Therefore, the management of the space elements influences the integrated expression of various space element information queries and the urban fine management efficiency.
The prior space element information query method is to pre-establish a corresponding relation between address information and geographic coordinates in a map, obtain a corresponding coordinate point according to the corresponding relation of the received query address information and display the position of the coordinate point when in query, and can see that the prior art only comprises the address information and the corresponding coordinate, does not contain any space element, and the displayed position information of the query result is not clear and can be displayed opposite to a certain building in many cases.
Disclosure of Invention
Aiming at the problems, the application provides a space element information query method, a system, a storage medium and electronic equipment, which solve the technical problems that in the related prior art, the query operation is complicated, the efficiency is low and the query result information is not detailed and accurate enough because the query address information is only related to geographic coordinates.
In a first aspect, the present application provides a spatial element information query method, where the method includes:
receiving a query instruction, wherein the query instruction comprises space element information;
analyzing the query instruction to obtain space element information;
inquiring a pre-established space element attribute table according to the space element information to obtain space position information codes and attribute information corresponding to the space element information; wherein the attribute information comprises spatial position information and related information corresponding to the spatial element information;
inquiring a pre-established space element coding table according to the space position information code to obtain a space element code corresponding to the space position information code;
and displaying the space element corresponding to the space element code in a preset space element map according to a preset display mode, and displaying the attribute information according to a preset display mode.
In some embodiments, after said parsing the query instruction, further comprising:
and if the space element information is not obtained, prompting the user.
In some embodiments, the displaying the attribute information according to a preset display manner includes:
and displaying the attribute information in a popup window mode.
In some embodiments, before said presenting said attribute information, further comprising:
inquiring the pre-established space element coding table according to the space element codes to obtain all hierarchical space position information codes corresponding to the space element codes; wherein, the spatial position information corresponding to each level of spatial position information coding comprises the spatial position information corresponding to the spatial position information coding of the previous level; the space element codes are subjected to field segmentation according to space position information field differences corresponding to the space element codes and the zero-level space position information codes;
each field in the divided spatial position information is encoded according to the corresponding spatial position information to generate a hyperlink;
and when the hyperlink is activated, acquiring a spatial position information code corresponding to the hyperlink, taking the spatial position information code as new spatial element information, and returning to the step of executing the spatial element information, and inquiring a pre-established spatial element attribute table to obtain the spatial position information code and attribute information corresponding to the spatial element information.
In some embodiments, displaying the spatial element corresponding to the spatial element code according to a preset display mode includes:
and displaying the space element corresponding to the space element code in a highlighting and/or enlarging mode.
In some embodiments, the process of creating the spatial element encoding table includes:
collecting space elements in a target area according to requirements;
confirming all spatial position information associated with each spatial element;
carrying out unique coding on each space element to obtain each space element code; carrying out unique coding on all the space position information related to each space element to obtain a hierarchical space position information code corresponding to each space element code;
and establishing the space element coding table according to the space element codes of each space element and the hierarchical space position information codes corresponding to each space element code.
In some embodiments, the process for creating the spatial element attribute table includes:
collecting the related information of each space element according to the requirement;
and establishing the space element attribute table according to all the space position information associated with each space element, the related information of each space element and the hierarchical space position information code corresponding to each space element code.
In a second aspect, a space element information query system, the system comprising:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a query instruction, and the query instruction comprises space element information;
the analysis unit is used for analyzing the query instruction to obtain space element information;
the first query unit is used for querying a pre-established space element attribute table according to the space element information to obtain space position information codes and attribute information corresponding to the space element information; wherein the attribute information comprises spatial position information and related information corresponding to the spatial element information;
the second query unit is used for querying a pre-established space element coding table according to the space position information codes to obtain space element codes corresponding to the space position information codes;
the display unit is used for displaying the space element corresponding to the space element code in a preset space element map according to a preset display mode, and displaying the attribute information according to a preset display mode.
In a third aspect, the storage medium stores a computer program executable by one or more processors to implement the method for querying space element information according to the first aspect.
A fourth aspect includes a memory and a processor, the memory having stored thereon a computer program, the memory and the processor being communicatively coupled to each other, the computer program, when executed by the processor, performing the spatial element information query method according to the first aspect.
The method, the system, the storage medium and the electronic equipment for querying the space element information provided by the application comprise the following steps: receiving a query instruction, wherein the query instruction comprises space element information; analyzing the query instruction to obtain space element information; inquiring a pre-established space element attribute table according to the space element information to obtain space position information codes and attribute information corresponding to the space element information; wherein the attribute information comprises spatial position information and related information corresponding to the spatial element information; inquiring a pre-established space element coding table according to the space position information code to obtain a space element code corresponding to the space position information code; and displaying the space element corresponding to the space element code in a preset space element map according to a preset display mode, and displaying the attribute information according to a preset display mode. According to the method and the device, the space elements are encoded, the association relation between the space element position information and the space elements is established, the target space elements can be directly obtained by inquiring, the position information and the attribute information of the space elements are effectively expressed while inquiring is fast and efficient, convenience and support are provided for space element management, and the method and the device have strong applicability and a large application range.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a spatial element information query method provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a process for creating a space element coding table according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a spatial element information query system according to an embodiment of the present application;
fig. 4 is a connection block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following will describe embodiments of the present application in detail with reference to the drawings and examples, thereby how to apply technical means to the present application to solve technical problems, and realizing processes achieving corresponding technical effects can be fully understood and implemented accordingly. The embodiments and the features in the embodiments can be combined with each other under the condition of no conflict, and the formed technical schemes are all within the protection scope of the application.
As known from the background art, the existing space element information query method is to pre-establish a corresponding relation between address information and geographic coordinates in a map, obtain a corresponding coordinate point according to the corresponding relation of the received query address information and display the position of the coordinate point when querying, so that the prior art only includes the address information and the corresponding coordinates, does not include any space element, and the displayed position information of the query result is not clear, and is displayed opposite to a certain building in many cases.
In view of the above, the present application provides a method, a system, a storage medium and an electronic device for querying space element information, which solve the technical problems in the related art that the querying operation is complicated, the efficiency is low, and the querying result information is not detailed and accurate enough because the querying address information is only related to geographic coordinates.
Example 1
Fig. 1 is a flow chart of a spatial element information query method provided in an embodiment of the present application, where, as shown in fig. 1, the method includes:
S101, receiving a query instruction;
wherein the query instruction includes space element information;
it should be noted that, the user triggers the query instruction through the man-machine interaction interface, and the specific manner includes but is not limited to clicking a space element in the space element map, for example, clicking one building in a building group in the map, then triggering the query instruction including the space element information of the building at this time, and the query system receives the query instruction; or the information of the space element is input in the query box by the user, and the query system can adopt real-time detection of the content input by the user or the content input by the user as the space element information after waiting for the determination operation after the user input is completed to generate a query instruction.
S102, analyzing the query instruction to obtain space element information;
the space element information includes, but is not limited to, name information, position information, and the like of the space element.
Further, when the user inputs the query text, there may be a case of wrong or multiple words, for example, the text "Kai Feng Huayuan D period" or "Lin C cell D period" is input, and the case may be intelligently resolved to obtain the correct name "C cell D period" as the space element information obtained by resolution.
S103, inquiring a pre-established space element attribute table according to the space element information to obtain space position information codes and attribute information corresponding to the space element information;
wherein the attribute information comprises spatial position information and related information corresponding to the spatial element information;
in some embodiments, as shown in fig. 2, a schematic flow chart of a process for creating a space element coding table, where the process for creating the space element coding table includes:
s201, collecting space elements in a target area according to requirements;
it should be noted that, even in the same area, the space elements collected by different demands may be different, for example, if city building function management is to be performed, the building space elements in the area are collected, the space elements of the plant or the green land are not collected, and finally, a total of effective building space elements are counted, whereas if city green land management is performed, the space elements of the plant or the green in the area are collected, and the number of the effective space elements is counted.
It can be known that the technical scheme of the application is not limited by the hierarchical structure and the division mode of the standard address library, the invention supports to write the place name address data by taking the management content as a guide, and space units covered in non-standard addresses such as industrial parks, grid units, school units and the like can be included in the place name address data hierarchy according to requirements.
S202, confirming all spatial position information associated with each spatial element;
it should be noted that the spatial location information may be changed according to the size of the target area, for example, the spatial location information "a city B street C cell D period E span" is that the target area is limited by taking the area as the maximum spatial range, and the application is to manage the buildings in the a city area during city management.
It should be further noted that, the distinction between the spatial location information and the spatial element information is that the spatial location information is the complete location information of the spatial element, for example, "a city area B street C cell D period", and the spatial element information may be the complete location information or may be incomplete spatial location information, for example, "a city area B street C cell D period" or "C cell D period", because the user typically does not input the complete address information when inputting the content query, only some address information, for example, "C cell D period", is input most of the time, and therefore, the spatial element information and the spatial location information are not necessarily the same.
It should be further noted that, there is a one-to-many association relationship between the space element and the space position information, when the range of the space element is the largest range in the management range, the space element and the space position information are in a one-to-one association relationship, for example, the space element is "a city region", the space position information is "a city region", and when the one-to-many association relationship is, for example, the space position information "a city region B street C cell D period E span" corresponding to a building, and meanwhile, the building is also affiliated to a plurality of space position information of "a city region B street C cell D period", "a city region B street C cell", "a city region B street" and "a city region". Therefore, in order to record the spatial position information of the spatial elements in one-to-many manner, when the spatial position information related to the spatial elements is stored, the complete spatial position information is disassembled and divided into fields with different occupied space ranges, and then a plurality of spatial position information is obtained in a plurality of combination modes and stored and recorded.
S203, carrying out unique coding on each space element to obtain each space element code; carrying out unique coding on all the space position information related to each space element to obtain a hierarchical space position information code corresponding to each space element code;
when the spatial position information is uniquely encoded, the complete spatial position information is firstly disassembled and divided into fields with different occupied space ranges, the fields are combined in a grading mode again to obtain graded spatial position information, and then each piece of graded spatial position information is encoded to obtain graded spatial position information codes.
Specifically, the complete space position information is divided into fields with different occupied space ranges, the space element field of the largest space range is listed separately as a hierarchy, then the field of the space element of the largest space range and the field of the space element of the largest space range are combined to form a hierarchy, then the field combination of the space elements of the first three space ranges are combined to form a hierarchy, until the last hierarchy comprises the field combination of the space elements from the largest space range to the smallest space range as the last hierarchy, and then the field combination of each hierarchy is encoded to form the space position information codes of different hierarchies.
S204, establishing the space element coding table according to the space element codes of each space element and the hierarchical space position information codes corresponding to each space element code.
It should be noted that, the space element code may be obtained by unique code using a geohash code, the hierarchical space position information code corresponding to the space position information may be obtained by code using name pinyin conversion, and the encoding process needs to have an overlapping mechanism to ensure the uniqueness of the code.
It should be further noted that the spatial element encoding table is shown in table 1 below:
for easy understanding, the contents in table 1 are described below by way of example, in which, taking the building space elements of the space element information "a city B street C cell D period E" as an example, the building space elements are sequentially divided into "E span", "D period", "C cell", "B street", "a city region" in order from small to large in space scope, and then sequentially written into building space element number fields j0-j9 in order from small to large in space scope, so as to obtain corresponding j0 field filling E span, j1 field filling D period, j2 field filling C cell, j3 field filling B street, j4 field filling a city region.
It should be noted that, the specific field segmentation level may be set according to the management requirement, for example, "a city B street C cell D period E" is suitable for only needing to know the building location or function in the most detailed level, and does not need to know the location and function of each room in the building, but when the requirement of seeing the room type structure is changed, the information may be added to "a city B street C cell D period E F unit G room" so that "F unit" and "G room" are added, when the space element number field is, the corresponding j0 field filling G room is obtained, j1 field filling F unit, j2 field filling E span, j3 field filling D period, j4 field filling C cell, j5 field filling B street, j6 field filling a city region, and similarly, the space element of a larger space range may be further added according to the requirement, for example, j7 field filling S city, j8 field filling X province, j9 field filling Z country and so on.
Then, fields with large space ranges from large to small are combined to obtain a plurality of levels of fields, for example, j9, j9j8, j9j8j7 … … j9j8j7j 5j 3j2j1j0, the fields of each level are subjected to unique coding to finally obtain hierarchical space position information codes, then space element coding tables are filled in according to the sequence from small space occupation ranges corresponding to the codes to large space element occupation ranges, specifically, zero-level space position information codes corresponding to spl0 in the tables are codes carried out by the fields of j9j8j7j6j5j4j3j2j1j0, corresponding space position information is codes carried out by the fields of 'A city area B street C cell D period E span', primary space position information codes corresponding to spl1 are codes carried out by the fields of 'A city area B street C cell D period', and corresponding space position information is codes carried out by the fields of 'A city area B street C cell D period', so that all space element associated space element codes are processed in the same way, and the final space element coding table is obtained.
Further, taking "a city B street C cell D period E span" as an example, filling in the content is performed according to the manner of table 1, and table 2 is obtained as follows:
it should be noted that, each space element records a row of hierarchical spatial position information codes, such as another building, and its complete spatial position information is "a city B street M number hotel building", then the corresponding hierarchical spatial position code spl0 in the table stores "a city B street M number hotel building" position information codes, spl1 stores "a city B street" position information codes, and the codes are the same as those stored in spl3 of the first row, and all point to "a city B street".
Further, in the process of user query, if the space element of the building "a city B street C cell D period E" is clicked, the space element code of the clicked building can be correspondingly searched for the space element code of the first column in the space element code table, and all the hierarchical space position codes corresponding to the codes are further searched for, for example, in table 2, the space element code of the clicked building is positioned first to the space element code of the a city B street C cell D period E in the table, and then all the hierarchical space position information codes stored in the corresponding row of the space element code are acquired.
S104, inquiring a pre-established space element coding table according to the space position information codes to obtain space element codes corresponding to the space position information codes;
in some embodiments, the process for creating the spatial element attribute table includes:
collecting the related information of each space element according to the requirement; and establishing the space element attribute table according to all the space position information associated with each space element, the related information of each space element and the hierarchical space position information code corresponding to each space element code.
It should be noted that, because the space element encoding table and the space element attribute table have data association and serve the space element management work in the same target area, the space element attribute table can be built while the space element encoding table is built, specifically, when the space elements of the target area are acquired according to the requirement, related information of each space element can be acquired according to the management requirement, and the related information of different management requirements and different space elements are also different, for example, for a comprehensive hotel building, the acquired related information can be the building area, the number of building layers, the building height, the included functions such as catering, accommodation, bathing and parking space number of the hotel building, and when the management requirement is the public lighting management in the target area, how many different types of lighting lamps are required to be acquired in the target area, and the effective lighting range of each type of lighting lamp can be beneficial to urban lighting management, for example, the lighting radiation can be increased as much as possible in the lighting consumption and electricity consumption acceptable range, and better night experience is provided for urban people.
It should be further noted that the spatial element attribute table is shown in the following table 3:
for ease of understanding, the contents of table 3 are described below by way of example, taking the spatial location information "a city B street C cell D period E" as an example of a building space element, which belongs to a residential building, it can be seen that its dominant function is living, and also the current living population, and various information of the building.
The related information refers to information such as a dominant function, the number of building layers, the height of building, and the population of living in addition to the spatial position information column in the attribute information in table 3.
In addition, taking the space position information "the period D of the city area B street C cell" as an example, the whole cell in the period D of the C cell is a residential area, and includes four residential buildings, and the building specifications of the four buildings are the same, then the second row in table 3 can be used for counting the related information of the four buildings, and summarizing the information of the four residential buildings, for example, the total number of people is the total number of the four buildings, and related information columns, such as including the number of buildings, including the number of parking places, and the like, can be added. By means of the method, upward summarizing and transmitting of the space element attribute information is achieved, and more visual and efficient query information results can be obtained when users query.
Further, assuming that the "a city B street M number hotel building" exists, as shown in the third row of table 3 in the space element attribute table, the space element attribute table includes a space position information code corresponding to the space position information "a city B street M number hotel building", and different from the dominant function of the residential building, the catering is additionally added, the building related information also has differences, and related information columns such as employment posts, underground parking spaces and the like can also be added.
It should be further noted that, the query pre-established spatial element attribute table uses the spatial element information obtained by analysis, and performs query matching with the spatial position information column in table 3 to obtain spatial position information codes and related information corresponding to the same row, for example, the spatial element information is C-cell D period E span, and the spatial position information column in table 3 is matched with the spatial position information column in the first row of "a city B street C-cell D period E span" to obtain spatial position information codes and related information of the same row, then the obtained spatial position information codes are queried in table 2 to obtain spatial element codes corresponding to the spatial position information codes, namely "spatial element codes of the spatial element code of the C-cell D period E span of the city B street in table 2", then all hierarchical spatial position information codes corresponding to the spatial element codes are obtained according to the spatial element codes in table 2, namely, the hierarchical spatial position information codes corresponding to the first row spl0 to spl4 in table 2 are used for making the super-link on the spatial position information subsequently, and the spatial position information (i.e. the spatial position information in the attribute information) of the display space element can be quickly jumped to the multiple levels by super-links to implement the multi-level retrospective application to provide the query element, and the query system is more than the query element, and the query system is more efficient.
S105, displaying the space element corresponding to the space element code in a preset space element map according to a preset display mode, and displaying the attribute information according to a preset display mode.
The attribute information has a correspondence relationship with the space element to be displayed, and the displayed attribute information is the attribute information of the space element.
In some embodiments, the displaying the attribute information according to a preset display manner includes:
and displaying the attribute information in a popup window mode.
In some embodiments, before said presenting said attribute information, further comprising:
inquiring the pre-established space element coding table according to the space element codes to obtain all hierarchical space position information codes corresponding to the space element codes; wherein, the spatial position information corresponding to each level of spatial position information coding comprises the spatial position information corresponding to the spatial position information coding of the previous level; the space element codes are subjected to field segmentation according to space position information field differences corresponding to the space element codes and the zero-level space position information codes;
It should be noted that, specifically, field segmentation is performed according to a field difference between the spatial location information corresponding to each level of spatial location information coding, for example, "a city B street C cell D period E span" and "a city B street C cell D period E span" are segmented into a field "E span", where the field corresponds to the spatial location information of "a city B street C cell D period E span" and the corresponding spatial location information coding, and so on, a D period, C cell, B street, and a city region are segmented.
Each field in the divided spatial position information is encoded according to the corresponding spatial position information to generate a hyperlink;
and when the hyperlink is activated, acquiring a spatial position information code corresponding to the hyperlink, taking the spatial position information code as new spatial element information, and returning to the step of executing the spatial element information, and inquiring a pre-established spatial element attribute table to obtain the spatial position information code and attribute information corresponding to the spatial element information.
In some embodiments, after said parsing the query instruction, further comprising:
and if the space element information is not obtained, prompting the user.
It should be noted that, sometimes, the user inputs an error when inputting a text search, so the user needs to be prompted to modify or re-input the query text content.
In some embodiments, displaying the spatial element corresponding to the spatial element code according to a preset display mode includes:
and displaying the space element corresponding to the space element code in a highlighting and/or enlarging mode.
It should be noted that, the present application includes, but is not limited to, displaying the space element corresponding to the space element code by highlighting and/or amplifying, and specifically may be set according to the needs.
In some embodiments, the building process of the space element map includes:
collecting space elements in a target area according to requirements;
and establishing the space element map according to the space elements.
It should be noted that, the space element map is a basis for implementing the space element information query method, and the map can be built to select the space elements according to element management requirements, for example, personnel management requirements can collect building space elements in a target area, greening management requirements can collect vegetation space elements in the target area, and in addition, all the space elements in the target area can be collected as a complete basis, so that unused space elements in the map can be used according to different management requirements and functions.
In addition, the space element coding mode is suitable for various space elements needing to be finely managed, such as green lands, paving, parking spaces, street lamps, trees, water areas and the like, and the coding modes of various space elements are consistent with the examples, but the attribute records of the space elements can be set according to the space element management requirements.
In summary, the embodiment of the application provides a method for querying space element information, which includes: receiving a query instruction, wherein the query instruction comprises space element information; analyzing the query instruction to obtain space element information; inquiring a pre-established space element attribute table according to the space element information to obtain space position information codes and attribute information corresponding to the space element information; wherein the attribute information comprises spatial position information and related information corresponding to the spatial element information; inquiring a pre-established space element coding table according to the space position information code to obtain a space element code corresponding to the space position information code; and displaying the space element corresponding to the space element code in a preset space element map according to a preset display mode, and displaying the attribute information according to a preset display mode. According to the method and the device, the space elements are encoded, the association relation between the space element position information and the space elements is established, the target space elements can be directly obtained by inquiring, the position information and the attribute information of the space elements are effectively expressed while inquiring is fast and efficient, convenience and support are provided for space element management, and the method and the device have strong applicability and a large application range.
Example two
Based on the above-described spatial element information query method disclosed in the embodiment of the present invention, fig. 3 specifically discloses a spatial element information query system to which the spatial element information query method is applied.
Fig. 3 is a schematic structural diagram of a spatial element information query system according to an embodiment of the present application.
The embodiment of the invention discloses a space element information query system, which comprises the following components:
a receiving unit 301, configured to receive a query instruction, where the query instruction includes space element information;
the parsing unit 302 is configured to parse the query instruction to obtain space element information;
a first query unit 303, configured to query a pre-established spatial element attribute table according to the spatial element information, to obtain spatial location information codes and attribute information corresponding to the spatial element information; wherein the attribute information comprises spatial position information and related information corresponding to the spatial element information;
a second query unit 304, configured to query a pre-established spatial element encoding table according to the spatial location information encoding, to obtain a spatial element encoding corresponding to the spatial location information encoding;
and the display unit 305 is configured to display, in a preset space element map, a space element corresponding to the space element code according to a preset display mode, and display the attribute information according to a preset display mode.
In some embodiments, after said parsing the query instruction, further comprising:
and if the space element information is not obtained, prompting the user.
In some embodiments, the displaying the attribute information according to a preset display manner includes:
and displaying the attribute information in a popup window mode.
In some embodiments, before said presenting said attribute information, further comprising:
inquiring the pre-established space element coding table according to the space element codes to obtain all hierarchical space position information codes corresponding to the space element codes; wherein, the spatial position information corresponding to each level of spatial position information coding comprises the spatial position information corresponding to the spatial position information coding of the previous level; the space element codes are subjected to field segmentation according to space position information field differences corresponding to the space element codes and the zero-level space position information codes;
each field in the divided spatial position information is encoded according to the corresponding spatial position information to generate a hyperlink;
and when the hyperlink is activated, acquiring a spatial position information code corresponding to the hyperlink, taking the spatial position information code as new spatial element information, and returning to the step of executing the spatial element information, and inquiring a pre-established spatial element attribute table to obtain the spatial position information code and attribute information corresponding to the spatial element information.
In some embodiments, displaying the spatial element corresponding to the spatial element code according to a preset display mode includes:
and displaying the space element corresponding to the space element code in a highlighting and/or enlarging mode.
In some embodiments, the process of creating the spatial element encoding table includes:
collecting space elements in a target area according to requirements;
confirming all spatial position information associated with each spatial element;
carrying out unique coding on each space element to obtain each space element code; carrying out unique coding on all the space position information related to each space element to obtain a hierarchical space position information code corresponding to each space element code;
and establishing the space element coding table according to the space element codes of each space element and the hierarchical space position information codes corresponding to each space element code.
In some embodiments, the process for creating the spatial element attribute table includes:
collecting the related information of each space element according to the requirement;
and establishing the space element attribute table according to all the space position information associated with each space element, the related information of each space element and the hierarchical space position information code corresponding to each space element code.
In some embodiments, the building process of the space element map includes:
collecting space elements in a target area according to requirements;
and establishing the space element map according to the space elements.
The specific working processes of the receiving unit 301, the analyzing unit 302, the first querying unit 303, the second querying unit 304 and the display unit 305 in the spatial element information querying system disclosed in the above embodiment of the present invention can be referred to the corresponding content in the spatial element information querying method disclosed in the above embodiment of the present invention, and will not be described herein again.
In summary, the embodiment of the present application provides a space element information query system, including: the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a query instruction, and the query instruction comprises space element information; the analysis unit is used for analyzing the query instruction to obtain space element information; the first query unit is used for querying a pre-established space element attribute table according to the space element information to obtain space position information codes and attribute information corresponding to the space element information; wherein the attribute information comprises spatial position information and related information corresponding to the spatial element information; the second query unit is used for querying a pre-established space element coding table according to the space position information codes to obtain space element codes corresponding to the space position information codes; the display unit is used for displaying the space element corresponding to the space element code in a preset space element map according to a preset display mode, and displaying the attribute information according to a preset display mode. According to the method and the device, the space elements are encoded, the association relation between the space element position information and the space elements is established, the target space elements can be directly obtained by inquiring, the position information and the attribute information of the space elements are effectively expressed while inquiring is fast and efficient, convenience and support are provided for space element management, and the method and the device have strong applicability and a large application range.
Example III
The present embodiment also provides a computer readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, which when executed by a processor, can implement the method steps as in the first embodiment, and the present embodiment will not be repeated here.
Example IV
Fig. 4 is a connection block diagram of an electronic device 400 according to an embodiment of the present application, as shown in fig. 4, the electronic device 400 may include: a processor 401, a memory 402, a multimedia component 403, an input/output (I/O) interface 404, and a communication component 405.
Wherein the processor 401 is configured to execute all or part of the steps in the spatial element information query method as in the first embodiment. The memory 402 is used to store various types of data, which may include, for example, instructions for any application or method in the electronic device, as well as application-related data.
The processor 401 may be an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), a digital signal processor (Digital Signal Processor, abbreviated as DSP), a digital signal processing device (Digital Signal Processing Device, abbreviated as DSPD), a programmable logic device (Programmable Logic Device, abbreviated as PLD), a field programmable gate array (Field Programmable Gate Array, abbreviated as FPGA), a controller, a microcontroller, a microprocessor, or other electronic component implementation for executing the spatial element information query method in the above embodiment.
The Memory 402 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM for short), programmable Read-Only Memory (Programmable Read-Only Memory, PROM for short), read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk, or optical disk.
The multimedia component 403 may include a screen, which may be a touch screen, and an audio component for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in a memory or transmitted through a communication component. The audio assembly further comprises at least one speaker for outputting audio signals.
The I/O interface 404 provides an interface between the processor 401 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons.
The communication component 405 is used for wired or wireless communication between the electronic device 400 and other devices. Wireless communication, such as Wi-Fi, bluetooth, near field communication (Near Field Communication, NFC for short), 2G, 3G or 4G, or a combination of one or more thereof, the corresponding communication component 405 may thus comprise: wi-Fi module, bluetooth module, NFC module.
In summary, the method, the system, the storage medium and the electronic device for querying the space element information provided by the application include: receiving a query instruction, wherein the query instruction comprises space element information; analyzing the query instruction to obtain space element information; inquiring a pre-established space element attribute table according to the space element information to obtain space position information codes and attribute information corresponding to the space element information; wherein the attribute information comprises spatial position information and related information corresponding to the spatial element information; inquiring a pre-established space element coding table according to the space position information code to obtain a space element code corresponding to the space position information code; and displaying the space element corresponding to the space element code in a preset space element map according to a preset display mode, and displaying the attribute information according to a preset display mode. According to the method and the device, the space elements are encoded, the association relation between the space element position information and the space elements is established, the target space elements can be directly obtained by inquiring, the position information and the attribute information of the space elements are effectively expressed while inquiring is fast and efficient, convenience and support are provided for space element management, and the method and the device have strong applicability and a large application range.
In the embodiments provided in the present application, it should be understood that the disclosed method may be implemented in other manners. The method embodiments described above are merely illustrative.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
Although the embodiments disclosed in the present application are described above, the above description is only for the convenience of understanding the present application, and is not intended to limit the present application. Any person skilled in the art to which this application pertains will be able to make any modifications and variations in form and detail of implementation without departing from the spirit and scope of the disclosure, but the scope of the patent claims of this application shall be subject to the scope of the claims that follow.

Claims (10)

1. A method for querying space element information, the method comprising:
receiving a query instruction, wherein the query instruction comprises space element information;
analyzing the query instruction to obtain space element information;
inquiring a pre-established space element attribute table according to the space element information to obtain space position information codes and attribute information corresponding to the space element information; wherein the attribute information comprises spatial position information and related information corresponding to the spatial element information;
inquiring a pre-established space element coding table according to the space position information code to obtain a space element code corresponding to the space position information code;
and displaying the space element corresponding to the space element code in a preset space element map according to a preset display mode, and displaying the attribute information according to a preset display mode.
2. The method of claim 1, further comprising, after said parsing said query instruction:
and if the space element information is not obtained, prompting the user.
3. The method according to claim 1, wherein the displaying the attribute information according to a preset display mode includes:
And displaying the attribute information in a popup window mode.
4. A method according to claim 3, further comprising, prior to said presenting said attribute information:
inquiring the pre-established space element coding table according to the space element codes to obtain all hierarchical space position information codes corresponding to the space element codes; wherein, the spatial position information corresponding to each level of spatial position information coding comprises the spatial position information corresponding to the spatial position information coding of the previous level; the space element codes are subjected to field segmentation according to space position information field differences corresponding to the space element codes and the zero-level space position information codes;
each field in the divided spatial position information is encoded according to the corresponding spatial position information to generate a hyperlink;
and when the hyperlink is activated, acquiring a spatial position information code corresponding to the hyperlink, taking the spatial position information code as new spatial element information, and returning to the step of executing the spatial element information, and inquiring a pre-established spatial element attribute table to obtain the spatial position information code and attribute information corresponding to the spatial element information.
5. The method according to claim 1, wherein displaying the spatial element corresponding to the spatial element code according to a preset display mode includes:
and displaying the space element corresponding to the space element code in a highlighting and/or enlarging mode.
6. The method according to claim 1, wherein the process of creating the spatial element encoding table comprises:
collecting space elements in a target area according to requirements;
confirming all spatial position information associated with each spatial element;
carrying out unique coding on each space element to obtain each space element code; carrying out unique coding on all the space position information related to each space element to obtain a hierarchical space position information code corresponding to each space element code;
and establishing the space element coding table according to the space element codes of each space element and the hierarchical space position information codes corresponding to each space element code.
7. The method of claim 6, wherein the process of creating the spatial element attribute table comprises:
collecting the related information of each space element according to the requirement;
And establishing the space element attribute table according to all the space position information associated with each space element, the related information of each space element and the hierarchical space position information code corresponding to each space element code.
8. A space element information query system, the system comprising:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a query instruction, and the query instruction comprises space element information;
the analysis unit is used for analyzing the query instruction to obtain space element information;
the first query unit is used for querying a pre-established space element attribute table according to the space element information to obtain space position information codes and attribute information corresponding to the space element information; wherein the attribute information comprises spatial position information and related information corresponding to the spatial element information;
the second query unit is used for querying a pre-established space element coding table according to the space position information codes to obtain space element codes corresponding to the space position information codes;
the display unit is used for displaying the space element corresponding to the space element code in a preset space element map according to a preset display mode, and displaying the attribute information according to a preset display mode.
9. A storage medium storing a computer program executable by one or more processors for implementing the spatial element information query method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, the memory and the processor are communicatively connected to each other, and the computer program, when executed by the processor, performs the space element information query method according to any one of claims 1 to 7.
CN202410019839.3A 2024-01-06 2024-01-06 Space element information query method, system, storage medium and electronic equipment Active CN117520471B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410019839.3A CN117520471B (en) 2024-01-06 2024-01-06 Space element information query method, system, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410019839.3A CN117520471B (en) 2024-01-06 2024-01-06 Space element information query method, system, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN117520471A true CN117520471A (en) 2024-02-06
CN117520471B CN117520471B (en) 2024-05-03

Family

ID=89744291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410019839.3A Active CN117520471B (en) 2024-01-06 2024-01-06 Space element information query method, system, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117520471B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005215951A (en) * 2004-01-29 2005-08-11 Kddi Corp Encoding or decoding method for document data, and program therefor
WO2014106651A1 (en) * 2013-01-04 2014-07-10 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Efficient scalable coding concept
CN104268299A (en) * 2014-10-27 2015-01-07 武汉大学 Method for classifying and encoding indoor map elements
CN113792068A (en) * 2021-05-17 2021-12-14 中国科学院空天信息创新研究院 Method and device for organizing and retrieving multi-level multi-topic spatial data
CN114595302A (en) * 2022-03-03 2022-06-07 中国科学院空天信息创新研究院 Method, device, medium, and apparatus for constructing multi-level spatial relationship of spatial elements
CN116720480A (en) * 2023-06-20 2023-09-08 上海市测绘院 Method and device for establishing unified identifier of city management element

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005215951A (en) * 2004-01-29 2005-08-11 Kddi Corp Encoding or decoding method for document data, and program therefor
WO2014106651A1 (en) * 2013-01-04 2014-07-10 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Efficient scalable coding concept
CN104268299A (en) * 2014-10-27 2015-01-07 武汉大学 Method for classifying and encoding indoor map elements
CN113792068A (en) * 2021-05-17 2021-12-14 中国科学院空天信息创新研究院 Method and device for organizing and retrieving multi-level multi-topic spatial data
CN114595302A (en) * 2022-03-03 2022-06-07 中国科学院空天信息创新研究院 Method, device, medium, and apparatus for constructing multi-level spatial relationship of spatial elements
CN116720480A (en) * 2023-06-20 2023-09-08 上海市测绘院 Method and device for establishing unified identifier of city management element

Also Published As

Publication number Publication date
CN117520471B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN101350012B (en) Method and system for matching address
CN107153711A (en) Geographic information data processing method and processing device
CN104252506A (en) Method and system for synchronously constructing and mapping service model and data warehouse model
CN102012817B (en) Development method of large-scale public building energy consumption monitoring platform based on Flex technology
CN116680648B (en) Service fusion data generation method and system for digital twin city
CN101882163A (en) Fuzzy Chinese address geographic evaluation method based on matching rule
CN107609154A (en) Method and device for processing multi-source heterogeneous data
CN111506939A (en) Garage design method, device, terminal and medium
CN103838825A (en) Global geographical name data integrating and encoding method
CN101393544A (en) Chinese address semantic parsing method facing address encode
CN114003621B (en) Dynamic visualization method and system for regional carbon emission
CN103678712A (en) Disaster information spatial-temporal database
CN104573022A (en) Data query method and device for HBase
CN111324679A (en) Method, device and system for processing address information
CN114676368B (en) Geographic entity information display method, device, equipment and medium based on identification code
CN104021198A (en) Relational database information retrieval method and device based on ontology semantic index
CN104006805A (en) Electric power engineering field reconnaissance method based on mobile GIS
CN103235798B (en) Business domains space resources storage means and the system of multi-source geographic grid
CN109254964A (en) Address Standardization method, apparatus, computer equipment and storage medium
CN105975477B (en) A method of constructing geographical name data collection automatically based on network
CN112328910A (en) Method and system covering AOI and POI standard address matching engine
CN117520471B (en) Space element information query method, system, storage medium and electronic equipment
KR20210035469A (en) Urban information analysis method and system
CN101916275B (en) Method and system for accessing log data of multiple data sources
CN100550011C (en) Set up the method and the corresponding association input system and the method for association input system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant