Disclosure of Invention
The embodiment of the application provides a method and a device for processing primitive data of a geographic entity house, which solve the problem of how to meet diversified requirements in the collection and application of house entity data based on geographic entity data, and particularly solve the problem of security of geographic house entity data related to application.
The method for processing the graphic primitive data of the geographic entity house provided by the embodiment of the application comprises the following steps:
determining primitive elements for generating the house entity data in the geographic mapping data;
establishing a first association table of the house entity and the primitive elements, wherein the first association table comprises the identification of the house entity and the corresponding identification of the primitive elements;
establishing a second association table of the house entity and the application attribute, wherein the second association table comprises the identification of the house entity and the corresponding application attribute;
and searching the second association table according to the target application attribute to obtain a target house entity identifier associated with the target application attribute, searching the first association table to obtain a target primitive element identifier associated with the target house entity identifier, and encrypting and/or differentially displaying the target primitive element.
Further, a third association table of the application attribute and the information security policy is established, and the third association table comprises the application attribute value and the corresponding information security policy; the information security policy comprises an alternative encryption processing mode and/or a distinguishing display mode.
The further optimized embodiment of the method further comprises the following steps:
and retrieving a third association table according to the target application attribute to obtain an encryption processing mode and/or a distinguishing display mode associated with the target application attribute.
The further optimized embodiment of the method further comprises the following steps:
generating a house entity outline according to the whole range of all primitive element data associated with the target house entity;
and generating display characteristics according to the range of the house entity outline and/or the primitive element data.
Preferably, the target primitive element is encrypted, and the encryption includes at least one of the following:
forbidding reading, authenticating reading, forbidding editing, authenticating editing, changing the target primitive element data by using an encryption algorithm, and restoring the target primitive element data by using a decryption algorithm.
Preferably, the target primitive elements are displayed in a differentiated manner, and the method includes at least one of the following steps:
display prohibition, display authentication, display feature change.
Preferably, the application attribute includes at least one of the following information: identity mark, use mark, time mark and type mark.
Preferably, the primitive data includes a primitive control code corresponding to the primitive element identifier, and when the primitive control code is activated, the primitive element is encrypted and/or displayed in a differentiated manner.
The present application also proposes a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any of the embodiments of the present application.
The present application further proposes an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method according to any of the embodiments of the present application when executing the computer program.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
the house entity surface is generated by the combination of the primitive data in a certain space range, the house entity surface is associated with the novel basic mapping data, the house entity is associated with the application of the house entity, the relationship of mutual inquiry and retrieval is formed, and the data base of the diversified application of the house entity data is realized. Particularly, the house entity is automatically generated according to the combined primitive space range according to the novel mapping basic primitive data combination, and is automatically associated with the primitive data through the primitive association table. Based on the correlation information among different data sources, the house entity data, the novel basic mapping data and the application information (such as enterprise and public institution information) can be inquired and retrieved mutually. The house entity data is simultaneously used as basic data and directly applied to the construction of the city geographic entity model; in the process, the safety control strategy related to the application attribute is realized through the encryption processing or the distinguishing display processing of the graphic element data. Therefore, the application attributes can be distinguished to meet diversified data application requirements of the house entity. The customizability, the dynamism and the intelligence of the geographic entity data application are improved, particularly, the data processing method and the data processing device can be used as a support data source built by a smart city platform system, and have significance for improving the quality of city public information service and customization service.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The method and the device mainly comprise the steps of determining a data source constructed by the house entity, specifying the type of the house entity, realizing the association between the house entity and the primitive data and the application, realizing the mutual inquiry and retrieval of information between the entity data and the primitive data and realizing the information safety control based on an application mode. For example, the house entity query, retrieval, positioning and intelligent application related to the enterprise and public institution information are realized through the incidence relation between the house entity data and the enterprise and public institution information.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
FIG. 1 is a flowchart of an embodiment of a method for processing primitive data of a geographic entity house.
A geographic entity house primitive data processing method comprises the following steps:
step 101, determining primitive elements for generating the house entity data in the geographical mapping data.
Building entities are built through house primitives and house accessory primitive elements, for example, building primitive bodies of houses such as houses, simple houses, shed houses, houses in buildings, protruding houses and high-rise houses are built, and house accessory primitives such as outdoor stairs, column galleries, floating buildings, eaves galleries, door tops and gallery houses at positions close to the houses of the bodies participate in building entities together.
Further, other building entity primitives and building accessory primitive elements can be supplemented to construct the building entity, for example, other building planar primitives such as temple, radar station, receiving station, environmental protection monitoring station, satellite ground receiving station, radio telescope receiving station, scientific experiment station, earthquake table, meteorological station, hydrological station, astronomical table, church, mosque, bells, drum building, city building, toilet, sentry building, sentry box, pumping station, water tower, elevator room, grain bin group, sluice house, tower type building, heap type kiln, desk type kiln, house type kiln, terrazzo, waterwheel and the like can be jointly participated in the building entity construction.
And according to the house primitive, the house accessories and the primitive data of other buildings in the novel mapping basic data, combining according to the building entity construction rule, and generating different types of building entities according to the combined primitive space position range.
102, establishing a first association table of the house entity and the primitive elements, wherein the first association table comprises the identification of the house entity and the corresponding identification of the primitive elements.
The house Entity establishes association with the primitive element through a first association table, for example, the Elem _ GUID attribute of the primitive is associated with the Elem _ GUID field of the primitive association table, and the Entity _ GUID attribute is associated with the Entity _ GUID field of the primitive association table.
When the house entity generates according to the primitive data, the information of the global unique identification field for determining the existence of the house entity can be automatically generated. When the house entity is created, the association relation is established for the graphic elements of the entity through the first association table. The house entity to which the primitive element belongs can be inquired through the first association table, and all primitive elements contained by the house entity can also be inquired.
Step 103, establishing a second association table of the house entity and the application attribute, including the identity of the house entity and the corresponding application attribute.
Preferably, the application attribute includes at least one of the following information: identity mark, use mark, time mark and type mark.
The identity of the housing entity includes the name, name or other identification of the individual or organization associated with the social function of the housing. For example, by establishing an association table under the house entity to record enterprise information, querying, retrieving and locating can be performed.
Depending on the use of the house entity, for example, one can distinguish: medical, educational, commercial, factory, institutional, residential, and the like.
The time identification of the house entity includes, for example, the time of construction, historical events, etc.
The types of the house entities can be divided according to needs, for example, the house entities can be divided into: building a house entity, a simple house entity, a shed house entity and an overhead house entity; for another example, the following can be classified: concrete, hard, brick, building, concrete, broken, etc.
In the system of the present application, each information record in the second association table is preferably automatically associated with a premise entity since being newly created.
In the system of the present application, application attribute information may also be maintained through an application interface. For example, a single house entity is selected, the second association table of the house entity is opened, and the related application attribute information is sequentially input. The method comprises the following steps: attribute fields such as usage category, geographical name, description, etc. How many application attributes exist under the house entity, namely how many records are newly recorded.
And step 104, retrieving the second association table according to the target application attribute to obtain a target house entity identifier associated with the target application attribute, retrieving the first association table to obtain a target primitive element identifier associated with the target house entity identifier, and encrypting the target primitive element.
The target application attribute refers to an application attribute that is of interest when the method and the device of the present application are implemented, and includes one application attribute or a combination of multiple application attributes. And searching the second and first association tables by applying the attributes, and determining the related primitive element as a target primitive element.
Preferably, the target primitive element is encrypted, and the encryption includes at least one of the following:
forbidding reading, authenticating reading, forbidding editing, authenticating editing, changing the target primitive element data by using an encryption algorithm, and restoring the target primitive element data by using a decryption algorithm.
For example, in a specific application, information protection for a set organization or industry is realized by prohibiting reading of primitive element information of a set organization or industry-related house entity.
For another example, in a specific application, by setting an authentication function for an editing function of a primitive element, the generation, management, operation and maintenance of geographic entity data of the application can realize industry division or application differentiation.
For another example, in a specific application, the customized processing of the application of the entity data of the house is realized by encrypting and decrypting the primitive data.
And 105, retrieving the second association table according to the target application attribute to obtain a target house entity identifier associated with the target application attribute, retrieving the first association table to obtain a target primitive element identifier associated with the target house entity identifier, and displaying the target primitive elements in a distinguishing manner.
Preferably, the target primitive elements are displayed in a differentiated manner, and the method includes at least one of the following steps:
display prohibition, display authentication, display feature change.
For example, in a specific application, for example, the display characteristics of the primitive elements associated with the target house entity are modified to distinguish the display manner (point, line, plane, size, thickness, brightness, color, texture, and dynamic) of the target house entity from those of other house entities.
As another example, in a particular application, primitive information masking, disguising or emphasis of the relevant house entity is implemented.
It should be noted thatsteps 104 to 105 of the above embodiments are optional. For example, in the authentication reading condition, the authentication display or the prohibition display may be further implemented.
FIG. 2 is a flow chart of another embodiment of a method for processing primitive data of a geographic entity house.
Step 201, in the geographical mapping data, determining primitive elements for generating the house entity data (same as step 101).
Step 202, establishing a first association table of the house entities and the primitive elements, including the identifications of the house entities and the identifications of the corresponding primitive elements (same as step 102).
Step 203, establishing a second association table of the house entity and the application attribute, including the identity of the house entity and the corresponding application attribute (same as step 103).
Step 204, establishing a third association table of the application attribute and the information security policy, wherein the third association table comprises the application attribute value and the corresponding information security policy; the information security policy comprises an alternative encryption processing mode and/or a distinguishing display mode.
And step 205, retrieving the third association table according to the target application attribute to obtain an encryption processing mode and/or a distinguishing display mode associated with the target application attribute.
And step 206, retrieving the second association table according to the target application attribute to obtain a target house entity identifier associated with the target application attribute, retrieving the first association table to obtain a target primitive element identifier associated with the target house entity identifier, and performing encryption processing and/or differentiated display on the target primitive element.
Fig. 3 is a schematic diagram of an embodiment of the house entity data composition according to the present application.
In order to realize building of the house entity by the geographic entity data, the house entity generation mode realizes the relevance between the entity data and the novel mapping basic data and the application attribute and protects the entity data through a data security strategy. The data set architecture of the present application includes a basegraph metadata repository 34 relating to the house entities; determining ahouse entity database 35; the two are related through a building entity construction principle, and the relationship is described through a first association table 31; anapplication database 36, for example, containing computer programs, network or user information for applying the geographic entity data, and an association relationship between the house entity database and the application database is described by the second association table 32, and further, the third association table 33 contains an association relationship between the application attribute and the security policy; and when the house entity data is applied, determining a security policy according to the third association table, and processing the primitive data associated with the house entity.
Preferably, the primitive data includes a primitive control code corresponding to the primitive element identifier, and when the primitive control code is activated, the primitive element is encrypted. The encryption processing can be realized by distinguishing different primitive elements through the primitive control codes, and comprises the step of encrypting all primitive data associated with a target house entity or encrypting part of primitive data. For example, a house distribution map distinguished by purposes is created in an application database, and related primitive data is encrypted or unencrypted according to enterprise categories or organization categories.
The application databases include, for example, offices, businesses and residences, garages, elevators, overhead houses, hospitals, schools (kindergartens, nursery houses, etc.), factories, companies, governments, dance halls (entertainment venues), malls (and supermarkets, farm trade markets), hotels, management centers, gas stations, libraries, archives, and culture houses.
Fig. 4 is a schematic diagram of an embodiment of a house entity primitive display.
In a further preferred embodiment of the method of the present application, instep 105 or 206, the method further comprises the following steps: generating a house entity outline according to the whole range of all primitive element data associated with the target house entity; and generating display characteristics according to the range of the house entity outline and/or the primitive element data. For example, the concrete body 1, the concrete body 2 and the concrete body 3 together constitute a house entity.
The main house and the subsidiary houses connected with the main house jointly construct the same house entity, and for example, house subsidiary facilities such as outdoor stairs, column galleries, drifting buildings, eaves galleries, door tops, gallery houses and the like participate in constructing the house entity. And the house entity inherits the attribute of the maximum area fixed field of the house primitive. The same house entity generally has the same characteristics of structure, material or appearance texture and the like.
Preferably, the primitive data includes a primitive control code corresponding to the primitive element identifier, and when the primitive control code is activated, the primitive elements are enabled to be displayed in a differentiated manner. The different primitive elements can be distinguished through the primitive control codes, so that the distinguishing display can be realized, including the distinguishing display of different primitive data in the target house entity and other house entities or the target house entity. For example, a house distribution map distinguished by purposes is created in the application database, for example, related primitive data is displayed or not displayed according to enterprise categories or organization categories, or multiple primitive elements belonging to the same house entity are displayed in different modes according to primitive control codes.
FIG. 5 is an embodiment of a geographic entity house primitive data processing apparatus.
The embodiment of the present application further provides a geographic entity house primitive data processing apparatus, which includes a first associated data module 51, a second associateddata module 52, a third associateddata module 53, a geographic entity diagram metadata database 54, a houseentity data server 55, a first application module 56, and asecond application module 57.
The first association data module 51 is configured to store a first association table, which includes the identifier of the house entity and the identifier of the corresponding primitive element.
The secondassociation data module 52 is configured to store a second association table, which includes the identifier of the house entity and the corresponding application attribute.
The thirdassociation data module 53 is configured to store a third association table, which includes an application attribute value and a corresponding information security policy; the information security policy comprises an alternative encryption processing mode and/or a distinguishing display mode.
The geographic entity graph metadata base 54 is used for executing the encryption processing strategy associated with the target application attribute; preferably, it is also used to activate/deactivate primitive control codes.
The houseentity data server 55 is configured to select house primitive data according to primitive surface element data of the novel mapping foundation house and other buildings and according to requirements of production rules of individual house entities, and generate a first associated data table. Retrieving a second association table according to the target application attribute to obtain a target house entity identifier associated with the target application attribute, retrieving a first association table to obtain a target primitive element identifier associated with the target house entity identifier, and encrypting and/or differentially displaying the target primitive element; and the third association table is searched according to the target application attribute to obtain an encryption processing mode and/or a distinguishing display mode associated with the target application attribute. The house entity data server is also used for authenticating the first application module, the second application module or operators thereof.
The first application module 56, as a first user program running module, generates a customized command according to the user attribute. For example, a house entity generation function is started, a house entity type is selected, and a house entity surface can be automatically generated according to the whole range surface of the primitive element data (one house entity can be formed by combining one or a plurality of primitives); the house entity is independently constructed by the house with independent main structure, and the house with connected main structure is constructed as one house entity. And further generating a second association data table.
Thesecond application module 57 is used as a second user program running module, and distinguishes service operations according to user attributes. For enforcing a differentiated display policy associated with the target application attribute.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application therefore also proposes a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of the embodiments of the present application.
Further, the present application also proposes an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the method according to any of the embodiments of the present application.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.