Overlay statistical method, device and equipment and storage medium

By constructing and analyzing layers, overlapping areas between buildings and roads and wetlands and cultivated land are identified, solving the problem of low efficiency in existing encroachment statistics and achieving automated and efficient encroachment statistics.

CN121120751APending Publication Date: 2025-12-12DIGITAL GUANGDONG NETWORK CONSTR CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202511256301.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-04
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

In existing technologies, the statistics on the encroachment of buildings and roads on wetlands and farmland lack automated processes, resulting in low efficiency.

Method used

By constructing the layer to be analyzed and the business layer, intersection analysis is performed to determine the overlapping area, and based on the area of ​​the overlapping area and the occupancy statistics method, automated occupancy statistics are achieved.

Benefits of technology

It has automated the entire process of statistics on the encroachment of buildings and roads on wetlands and farmland, improving statistical efficiency, lowering the technical threshold, and making it easier for users to observe the encroachment situation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121120751A_ABST
    Figure CN121120751A_ABST
Patent Text Reader

Abstract

The invention discloses an occupancy statistical method, device and equipment and a storage medium, and relates to the technical field of urban planning. The method comprises the following steps: constructing a to-be-analyzed layer according to a to-be-analyzed file package; the layer to be analyzed and each business layer are subjected to intersection analysis, an overlapping area of the layer to be analyzed and each business layer is determined, and the space reference of the layer to be analyzed is consistent with the space reference of each business layer; and according to the area of each overlapping region and an occupation statistical mode, determining an occupation statistical result. According to the technical scheme, after the to-be-analyzed layer and the business layers are subjected to superposition projection, the to-be-analyzed layer and the business layers are subjected to asymmetric intersection analysis, the overlapping areas of the to-be-analyzed layer and the business layers are determined, and the areas of the overlapping areas are counted according to the occupation statistical mode; according to the method and the device, the full-process automation of the pressure-occupying statistics is realized, and the pressure-occupying statistics efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of urban planning, and particularly relate to a method and device for calculating the area of a building or road that occupies or overlaps with wetlands or farmland, and a storage medium. BACKGROUND

[0002] With the acceleration of urbanization, land use types are increasingly complex, covering wetlands, farmland, industrial land, etc. In order to reduce the damage to humidity and farmland caused by newly built buildings or newly repaired roads, the area of wetlands and farmland occupied by buildings and roads needs to be considered when planning buildings and roads.

[0003] In the prior art, the building layer or road layer is usually mapped to the wetland layer and the farmland layer to determine the overlapping area of the building and the wetland and the overlapping area of the building and the farmland, or to determine the overlapping area of the road and the wetland and the overlapping area of the road and the farmland, and to calculate the area of the road and the wetland and the farmland according to the overlapping area.

[0004] However, the area of the road and the wetland and the farmland is calculated according to the overlapping area, which requires manual operation by the staff, lacks an automated process, and results in low efficiency of the area calculation. SUMMARY

[0005] The present application provides a method and device for calculating the area of a building or road that occupies or overlaps with wetlands or farmland, and a storage medium, to realize automatic area calculation and improve the efficiency of the area calculation.

[0006] In a first aspect, the present application provides a method for calculating the area of a building or road that occupies or overlaps with wetlands or farmland, comprising:

[0007] constructing a to-be-analyzed layer according to a to-be-analyzed file package;

[0008] performing intersection analysis on the to-be-analyzed layer and each business layer to determine the overlapping area of the to-be-analyzed layer and each business layer, wherein the spatial reference of the to-be-analyzed layer and each business layer is consistent;

[0009] determining the area of each overlapping area and the area of the building or road that occupies or overlaps with wetlands or farmland according to the area of each overlapping area and the area of the building or road that occupies or overlaps with wetlands or farmland.

[0010] The technical solution of this invention provides an occupancy statistics method, comprising: constructing an analysis layer based on a file package to be analyzed; performing intersection analysis on the analysis layer and each business layer to determine the overlapping area between the analysis layer and each business layer, wherein the spatial reference of the analysis layer and each business layer is consistent; and determining the occupancy statistics result based on the area of ​​each overlapping area and the occupancy statistics method. The above technical solution firstly constructs an analysis layer based on the file package to be analyzed; secondly, the analysis layer and business layers can be superimposed and projected onto a base map; furthermore, by performing asymmetric intersection analysis on the analysis layer and each business layer, the overlapping area between the analysis layer and each business layer can be determined, achieving rapid determination of the overlapping area; and thirdly, the area of ​​each overlapping area can be statistically analyzed according to the occupancy statistics method to determine the occupancy statistics result corresponding to the occupancy statistics method, achieving fully automated occupancy statistics and improving occupancy statistics efficiency.

[0011] Furthermore, before performing intersection analysis on the layer to be analyzed and each of the business layers, the method further includes:

[0012] Obtain each of the aforementioned business layers;

[0013] Based on the spatial relationships between the various business layers, the business layers are overlaid and displayed on the underlying map.

[0014] Further, a layer to be analyzed is constructed based on the file package to be analyzed, including:

[0015] An initial layer is generated based on the shape files contained in the file package to be analyzed;

[0016] Based on the shape index file contained in the file package to be analyzed, the attribute information corresponding to each feature in the initial layer is determined in the attribute table file contained in the file package to be analyzed;

[0017] The initial layer is obtained by adjusting the attribute information corresponding to each element in the initial layer.

[0018] Furthermore, after obtaining the layer to be analyzed, the process also includes:

[0019] Based on the spatial relationship between the projection coordinate system in the projection information file contained in the file package to be analyzed and the business coordinate system corresponding to each business layer, the layer to be analyzed is transformed to the business coordinate system;

[0020] The layer to be analyzed, transformed to the business coordinate system, is projected onto the business layer.

[0021] Further, an intersection analysis is performed on the layer to be analyzed and each of the service layers to determine the overlapping area between the layer to be analyzed and each of the service layers, including:

[0022] By performing asymmetric intersection analysis on the layer to be analyzed and each of the business layers, the overlapping portion of the layer to be analyzed and each of the business layers is extracted to obtain the overlapping region.

[0023] Furthermore, the occupancy statistics method is based on business type. Accordingly, the occupancy statistics results are determined according to the area of ​​each overlapping area and the occupancy statistics method, including:

[0024] Determine the area of ​​each overlapping region and the corresponding service type of the service layer;

[0025] The occupied area of ​​each business type is obtained by superimposing the areas of the overlapping areas corresponding to each business type;

[0026] The occupied area of ​​each of the aforementioned business types is determined as the occupation statistics result.

[0027] Furthermore, it also includes:

[0028] After receiving the trigger information for the service type, the corresponding overlapping area is displayed based on a preset marker display method.

[0029] Secondly, embodiments of the present invention also provide a occupancy counting device, comprising:

[0030] The parsing module is used to construct the analysis layer based on the file package to be analyzed;

[0031] The analysis module is used to perform intersection analysis on the layer to be analyzed and each business layer to determine the overlapping area between the layer to be analyzed and each of the business layers, wherein the spatial reference of the layer to be analyzed and each of the business layers is consistent;

[0032] The determination module is used to determine the occupancy statistics result based on the area of ​​each overlapping region and the occupancy statistics method.

[0033] Thirdly, embodiments of the present invention also provide a computer device, the computer device comprising:

[0034] At least one processor; and a memory communicatively connected to said at least one processor;

[0035] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the occupancy statistics method as described in any of the first aspects.

[0036] Fourthly, embodiments of the present invention also provide a storage medium containing computer-executable instructions, characterized in that the computer-executable instructions, when executed by a computer processor, are used to perform the duty cycle statistics method as described in any of the first aspects.

[0037] Fifthly, this application provides a computer program product including computer instructions that, when executed on a computer, cause the computer to perform the occupancy statistics method as provided in the first aspect.

[0038] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on a computer-readable storage medium. This computer-readable storage medium may be packaged together with the processor of the duty cycle counting device, or it may be packaged separately from the processor of the duty cycle counting device; this application does not impose any limitations on this.

[0039] The descriptions of the second, third, fourth, and fifth aspects in this application can be referenced to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second, third, fourth, and fifth aspects can be referenced to the analysis of the beneficial effects of the first aspect, which will not be repeated here.

[0040] In this application, the name of the aforementioned occupancy counting device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear under other names. As long as the function of each device or functional module is similar to that of this application, it falls within the scope of the claims of this application and its equivalents.

[0041] These or other aspects of this application will become more readily apparent in the following description. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 A flowchart of a occupancy statistics method provided in an embodiment of the present invention;

[0044] Figure 2 This is a schematic diagram of the structure of a occupancy counting device provided in an embodiment of the present invention;

[0045] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0046] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.

[0047] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0048] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.

[0049] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.

[0050] Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the figures. The process can correspond to a method, function, procedure, subroutine, subroutine, etc. Moreover, embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0051] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0052] In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0053] Figure 1This is a flowchart illustrating a occupancy statistics method provided in an embodiment of the present invention. This embodiment is applicable to situations requiring automatic occupancy statistics. The method can be executed by an occupancy statistics device, such as... Figure 1 As shown, the specific steps include the following:

[0054] Step 110: Construct the layer to be analyzed based on the file package to be analyzed.

[0055] To minimize the impact of planned construction of new buildings or roads on existing land uses such as wetlands and farmland, the encroachment of planned land use on existing land must be considered during land use planning. In geographic information applications, buildings, roads, wetlands, farmland, and industrial land can all be represented by layers. The encroachment of planned land use on existing land can be determined by the overlap area between layers.

[0056] The file package to be analyzed can be understood as a building design file package or road design file package drawn using geographic information applications. For example, the file package to be analyzed can be a Shapefile package, which is usually compressed into ZIP or RAR format. The layer to be analyzed can be understood as the layer corresponding to the planned land use.

[0057] Specifically, the first step is to decompress the file package to be analyzed, obtaining the shape file, shape index file, and attribute table file contained within it. For example, by decompressing the Shapefile package, you can obtain .shp files (shape files), .shx files (shape index files), and .dbf files (attribute table files). The .shp file stores the geometric data of the features (spatial coordinate information of points, lines, polygons, etc.) and is the core data carrier of the Shapefile package. The .shx file records the offset and length of each feature in the .shp file, used for quickly locating and reading the geometric data in the .shp file, improving data access efficiency. The .dbf file stores the attribute information of each feature in the .shp file (such as name, number, value, etc.), using the dBASE database format, with rows corresponding to a feature in the .shp file and columns corresponding to attribute fields.

[0058] Furthermore, the layer to be analyzed can be constructed based on the shape file, shape index file, and attribute table file.

[0059] In one embodiment, step 110 may specifically include:

[0060] An initial layer is generated based on the shape files contained in the file package to be analyzed; the attribute information corresponding to each element in the initial layer is determined based on the shape index file contained in the file package to be analyzed in the attribute table file contained in the file package to be analyzed; the elements in the initial layer are adjusted according to the attribute information corresponding to each element in the initial layer to obtain the layer to be analyzed.

[0061] Specifically, an initial layer can be generated from a shape file. The initial layer consists of multiple features, each with different positional, identification, and attribute information. To improve the accuracy of the layers, after generating the initial layer, each feature can be adjusted based on its offset and length in the shape index file and the attribute information of each feature in the attribute table file to obtain the layer to be analyzed.

[0062] In this embodiment of the invention, the file package to be analyzed is parsed to determine the shape file, shape index file, and attribute table file contained in the file package. An initial layer is constructed based on the shape file, and the initial layer is optimized based on the shape index file and attribute table file to obtain the layer to be analyzed, thereby achieving the construction of a more accurate layer to be analyzed.

[0063] Step 120: Obtain each of the business layers; based on the spatial relationship between the business layers, overlay and display each of the business layers on the underlying map.

[0064] Among them, the business layer can be understood as the layer corresponding to the existing land use, such as wetland map layer, cultivated land map layer, and industrial land map layer.

[0065] Specifically, the first step is to obtain the various business layers, which means obtaining the layers corresponding to existing land use within the current area. For fixed areas, the layers of existing land use within them have already been pre-generated and stored on servers or in databases. Therefore, based on the location information of the current area, the corresponding business layer for the current area can be obtained from the Spatial Database Engine (SDE) used to manage geospatial data in the region to which the current area belongs. The SDE databases corresponding to each region can publish mapserver service interfaces for data access. Specifically, the mapserver service interface can be accessed based on the coordinate range of the current area to obtain the business layer for the current area.

[0066] For a fixed area, wetlands, farmland, and industrial land are usually scattered within the area. To improve the efficiency of determining the overlapping area between different types of business land and planned land, the business layers corresponding to existing land can be projected onto the underlying map. A business layer consists of all area layers corresponding to the business within the current area; for example, the wetland map layer includes all wetlands within the current area. Therefore, each business layer of the current area can be mapped onto the underlying map of the current area. The underlying map of the current area can be understood as a satellite map of the current area. Specifically, the business layers can be overlaid on the underlying map according to their spatial relationships, i.e., they can be overlaid in ascending order. Of course, for business layers with the same height information, they can be overlaid in a random order, for example, in the order of wetlands-farmland-forest-industrial land, thus constructing a map containing wetland, farmland, forest, and industrial land layers.

[0067] It should be noted that if all business layers are obtained from the same database or service interface, the business coordinate systems corresponding to each business layer are usually consistent. In this case, each business layer can be directly mapped onto the underlying map. However, if the business layers are obtained from different databases or service interfaces, the business coordinate systems of the business layers obtained from different databases or service interfaces may be inconsistent. In this case, coordinate system transformation of the business layers is required. Specifically, the business coordinate system corresponding to the majority of business layers can be determined as the target coordinate system. Business layers corresponding to other coordinate systems are then transformed to the target coordinate system. After the transformation is completed, the business layers transformed to the unified coordinate system are mapped onto the underlying map.

[0068] In this embodiment of the invention, by acquiring each business layer in the current area and overlaying each business layer on the underlying map according to the spatial relationship between them, the business layers can be quickly acquired and the map containing the business layers can be quickly constructed, thus realizing the visualization of the business layers.

[0069] Step 130: Based on the spatial relationship between the projection coordinate system in the projection information file contained in the file package to be analyzed and the business coordinate system corresponding to each business layer, transform the layer to be analyzed to the business coordinate system; project the transformed layer to be analyzed onto the business layer.

[0070] To determine the overlapping area between the layer to be analyzed and the business layer, it is necessary to maintain the consistency of the reference coordinate system between the two layers. The business layer is usually constructed based on the business coordinate system, so the layer to be analyzed needs to be transformed to the business coordinate system.

[0071] Specifically, the analysis file package also includes a projection information file, such as a .prj file, to store the coordinate system and projection parameters, ensuring that the layer can be correctly positioned on the Earth's surface. If the coordinate system in the projection information file is consistent with the business coordinate system, then the coordinate system of the layer to be analyzed is consistent with the coordinate system of the business layer, requiring no conversion, and the layer to be analyzed can be directly projected onto the underlying map that has already projected multiple business layers. If the coordinate system in the projection information file is inconsistent with the business coordinate system, then the coordinate system of the layer to be analyzed is inconsistent with the coordinate system of the business layer. In this case, a coordinate system transformation of the layer to be analyzed is required. Specifically, based on the spatial relationship between the coordinate system of the layer to be analyzed and the business coordinate system, the layer to be analyzed can be transformed to the business coordinate system. Then, the layer to be analyzed, transformed to the business coordinate system, can be projected onto the business layer, i.e., onto the underlying map that has already projected multiple business layers.

[0072] For example, if the coordinate system of the layer to be analyzed is EPSG:4547 and the business coordinate system is Geodetic 2000, then after constructing the layer to be analyzed, the layer to be analyzed can be converted to Geodetic 2000 based on the spatial relationship between EPSG:4547 and Geodetic 2000.

[0073] In practical applications, a base map with the layer to be analyzed and the business layer can be overlaid on a preset interface to achieve simultaneous visualization of the two layers.

[0074] In this embodiment of the invention, after converting the layer to be analyzed to be consistent with the coordinate system of the business layer, the layer to be analyzed is projected onto the business layer, thereby achieving effective superposition of the layer to be analyzed and the business layer and improving the accuracy of determining the overlapping area of ​​the layer to be analyzed and the business layer.

[0075] Step 140: Perform intersection analysis on the layer to be analyzed and each business layer to determine the overlapping area between the layer to be analyzed and each business layer.

[0076] The spatial reference of the layer to be analyzed is consistent with that of each of the business layers.

[0077] In one embodiment, step 140 may specifically include:

[0078] By performing asymmetric intersection analysis on the layer to be analyzed and each of the business layers, the overlapping portion of the layer to be analyzed and each of the business layers is extracted to obtain the overlapping region.

[0079] Specifically, the underlying map, overlaid with the layer to be analyzed and each business layer, can be input into the asymmetric intersection analysis engine. The engine can use the layer to be analyzed as the input layer and each business layer as the intersection layer, performing asymmetric intersection analysis on the input and intersection layers. Specifically, the `overlay_layers_asymmetric_intersect` tool can be called to perform the asymmetric intersection analysis, extracting and retaining the overlapping portions of the layer to be analyzed with each business layer, thus obtaining the overlapping area. The resulting overlapping area represents the portion where the layer to be analyzed overlaps with all the business layers.

[0080] In this embodiment of the invention, by performing asymmetric intersection analysis on the layer to be analyzed and each business layer, the overlapping area between the layer to be analyzed and each business layer is determined, thereby achieving rapid determination of the overlapping area.

[0081] Step 150: Determine the occupancy statistics result based on the area of ​​each overlapping region and the occupancy statistics method.

[0082] In one implementation, the occupancy statistics method is based on business type; accordingly, step 150 may specifically include:

[0083] Determine the area of ​​each overlapping region and the service type of the corresponding service layer; obtain the occupied area of ​​each service type by superimposing the areas of each overlapping region corresponding to each service type; determine the occupied area of ​​each service type as the occupancy statistics result.

[0084] The occupation statistics method based on business type can be understood as calculating the area of ​​overlapping areas according to business type. For example, we can determine the occupation area of ​​wetlands, cultivated land, and industrial land respectively.

[0085] Specifically, first, the business layer corresponding to each overlapping area can be determined, then the business type corresponding to each business layer can be determined, and finally, the business type corresponding to each overlapping area can be determined. Of course, the overlapping area corresponding to each business type can also be determined.

[0086] When determining the area of ​​each overlapping region, the geodeticAreaCal tool can be used to calculate the geometric area of ​​the overlapping region. For each business type, the area of ​​the overlapping region corresponding to each business type can be calculated to obtain the overlapping area corresponding to each business type. That is, the overlapping area corresponding to wetlands, cultivated land, and industrial land can be obtained. Then, the overlapping areas corresponding to wetlands, cultivated land, and industrial land can be determined as the wetland occupied area, cultivated land occupied area, and industrial land occupied area, respectively.

[0087] Furthermore, wetlands can be further subdivided into national-level wetlands, provincial-level wetlands, wetland parks, etc., and cultivated land can be further subdivided into red-line cultivated land, important cultivated land, etc. To conduct more accurate encroachment statistics, the corresponding business layer for each overlapping area can be determined. When the business type corresponding to the business layer is wetland, the wetland type is further determined, and then the overlapping areas corresponding to each wetland type can be determined. Finally, by summing the areas of the overlapping areas corresponding to each wetland type, the encroachment area corresponding to each wetland type can be determined. Similarly, when the business type corresponding to the business layer is cultivated land, the cultivated land type is further determined, and then the overlapping areas corresponding to each cultivated land type can be determined. Finally, by summing the areas of the overlapping areas corresponding to each cultivated land type, the encroachment area corresponding to each cultivated land type can be determined.

[0088] Of course, ecologically sensitive areas can be understood as areas such as wetlands and arable land that require ecological protection, while other areas are considered non-ecologically sensitive areas. The method for calculating land occupation is as follows: when calculating land occupation by ecologically sensitive areas, after determining the areas occupied by wetlands, arable land, and industrial land, the ecologically sensitive land occupation area can be further determined based on the wetland and arable land occupation areas, and the non-ecologically sensitive land occupation area can be determined based on the land occupation areas of other areas.

[0089] In practical applications, after determining the asymmetric intersection results by performing asymmetric intersection analysis on the layer to be analyzed and each business layer—that is, determining the overlapping areas between the layer to be analyzed and each business layer—the write2POSTGISSDEDB tool can be called to write the asymmetric intersection results into the business SDE database. The SDE database supports distributed storage and transaction processing. It can perform multidimensional statistics on the asymmetric intersection results by executing SQL to generate structured occupancy statistics. For example, by executing `SELECT land_type, SUM(area_sqm) FROM overlap_resultGROUP BY land_type`, the occupancy statistics can be obtained.

[0090] Furthermore, occupancy statistics results can be stored in the form of a storage table. For example, when the occupancy statistics are based on business type, the occupancy statistics results can be stored in the storage table in the form of business type - occupancy area, and the storage table can be displayed on the result display interface. Specifically, the occupancy statistics results can be stored and displayed based on Apache Echarts (a data visualization chart library based on JavaScript).

[0091] Of course, users can obtain the offline occupancy statistics file by clicking the download control in the results display interface.

[0092] In this embodiment of the invention, the area of ​​each overlapping region is statistically analyzed according to the occupancy statistics method, and the occupancy statistics result corresponding to the occupancy statistics method is determined, thereby realizing automated occupancy statistics.

[0093] Step 160: After receiving the trigger information for the service type, display the corresponding overlapping area based on the preset mark display method.

[0094] Specifically, the interface displays a storage table that stores occupancy statistics by business type and occupancy area. When a user clicks the control corresponding to a business type, trigger information for that business type is generated. Upon receiving this trigger information, the overlapping area corresponding to the business type can be displayed using a preset marking method. For example, the overlapping area can be displayed using a preset color, making it easier for users to observe the occupancy of the layer under analysis over a specific business layer, i.e., to observe the occupancy of planned land over various types of current land use.

[0095] In practical applications, the OpenLayers framework can be used to highlight overlapping areas on the underlying map, allowing users to easily observe the occupancy of the specific layer being analyzed relative to the business layer. Through the map-data linkage technology between OpenLayers and ECharts, real-time linkage between map highlighting and chart filtering can be achieved, improving visualization efficiency.

[0096] In this embodiment of the invention, the user clicks on the control corresponding to the business type to trigger the trigger information for the business type. Based on the trigger information, the overlapping area corresponding to the business type is displayed in color, which makes it easier for the user to observe the occupancy of the layer to be analyzed on the specific business layer.

[0097] The occupancy statistics method provided in this invention includes: constructing an analysis layer based on a file package to be analyzed; obtaining each of the business layers; overlaying each of the business layers on a base map according to the spatial relationship between them; converting the analysis layer to the business coordinate system according to the spatial relationship between the projection coordinate system in the projection information file contained in the file package to be analyzed and the business coordinate system corresponding to each of the business layers; projecting the analysis layer converted to the business coordinate system onto the business layers; performing intersection analysis on the analysis layer and each business layer to determine the overlapping area between the analysis layer and each of the business layers; and determining the occupancy statistics result based on the area of ​​each overlapping area and the occupancy statistics method. Upon receiving trigger information for the business type, the corresponding overlapping area is displayed based on a preset marker display method. The above technical solution firstly identifies the shape file, shape index file, and attribute table file contained in the file package to be analyzed by parsing it. An initial layer is constructed based on the shape file, and the initial layer is optimized using the shape index file and attribute table file to obtain the layer to be analyzed, thus constructing a more accurate layer. Secondly, the spatial relationships between various business layers within the current area are used to overlay and display these layers on the underlying map, enabling rapid construction of a map containing business layers and further enabling visualization of these layers. Then, the layer to be analyzed, converted to a coordinate system consistent with the business layers, is projected onto the business layers, achieving effective overlay and improving the accuracy of determining the overlapping areas. Furthermore, asymmetric intersection analysis is performed on the layer to be analyzed and each business layer to determine the overlapping areas, enabling rapid identification of these areas. The area of ​​each overlapping area can also be statistically analyzed using a occupancy statistics method to determine the corresponding occupancy statistics results. Finally, the occupancy statistics results can be displayed using visual charts, achieving full automation of the occupancy statistics process and improving efficiency. Furthermore, users do not need to master geographic information applications or underlying technologies; they can complete occupancy statistical analysis through the front-end interface, thus lowering the technical threshold.

[0098] In addition, by having the user click on the control corresponding to the business type, trigger information for that business type is generated. Based on the trigger information, the overlapping areas corresponding to the business types are displayed in color. The underlying map with the layer to be analyzed and the business layer overlaid supports zooming and click query. Combined with visualization charts, "map-data linkage" can be achieved, which is more intuitive than traditional static maps and makes it easier for users to observe the occupancy of the layer to be analyzed on the specific business layer.

[0099] Figure 2This is a schematic diagram of a occupancy counting device provided in an embodiment of the present invention. This device is applicable to situations requiring automatic occupancy counting, improving the efficiency of occupancy counting. The device can be implemented through software and / or hardware and is generally integrated into electronic devices, such as computer equipment.

[0100] like Figure 2 As shown, the device includes:

[0101] Parsing module 210 is used to construct the layer to be analyzed based on the file package to be analyzed;

[0102] Analysis module 220 is used to perform intersection analysis on the layer to be analyzed and each business layer to determine the overlapping area between the layer to be analyzed and each of the business layers, wherein the spatial reference of the layer to be analyzed and each of the business layers is consistent;

[0103] The determination module 230 is used to determine the occupancy statistics result based on the area of ​​each overlapping region and the occupancy statistics method.

[0104] The occupancy statistics device provided in this embodiment constructs an analysis layer based on the file package to be analyzed; performs intersection analysis on the analysis layer and each business layer to determine the overlapping area between the analysis layer and each business layer, wherein the spatial reference of the analysis layer and each business layer is consistent; and determines the occupancy statistics result based on the area of ​​each overlapping area and the occupancy statistics method. The above technical solution firstly constructs an analysis layer based on the file package to be analyzed; secondly, the analysis layer and business layers can be superimposed and projected onto a base map; furthermore, by performing asymmetric intersection analysis on the analysis layer and each business layer, the overlapping area between the analysis layer and each business layer can be determined, achieving rapid determination of the overlapping area; and thirdly, the area of ​​each overlapping area can be statistically analyzed according to the occupancy statistics method to determine the occupancy statistics result corresponding to the occupancy statistics method, realizing the fully automated implementation of occupancy statistics and improving occupancy statistics efficiency.

[0105] Based on the above embodiments, the device further includes:

[0106] The overlay module is used to obtain each of the business layers before performing intersection analysis on the layer to be analyzed and each of the business layers; and to overlay and display each of the business layers on the underlying map according to the spatial relationship between the business layers.

[0107] Based on the above embodiments, the parsing module 210 is specifically used for:

[0108] An initial layer is generated based on the shape files contained in the file package to be analyzed; the attribute information corresponding to each element in the initial layer is determined based on the shape index file contained in the file package to be analyzed in the attribute table file contained in the file package to be analyzed; the elements in the initial layer are adjusted according to the attribute information corresponding to each element in the initial layer to obtain the layer to be analyzed.

[0109] Based on the above embodiments, the device further includes:

[0110] The conversion module is used to, after obtaining the layer to be analyzed, convert the layer to be analyzed to the business coordinate system according to the spatial relationship between the projection coordinate system in the projection information file contained in the file package to be analyzed and the business coordinate system corresponding to each business layer; and project the layer to be analyzed converted to the business coordinate system onto the business layer.

[0111] Based on the above embodiments, the analysis module 220 is specifically used for:

[0112] By performing asymmetric intersection analysis on the layer to be analyzed and each of the business layers, the overlapping portion of the layer to be analyzed and each of the business layers is extracted to obtain the overlapping region.

[0113] Based on the above embodiments, the occupancy statistics method is based on business type. Accordingly, the determination module 230 is specifically used for:

[0114] Determine the area of ​​each overlapping region and the service type of the corresponding service layer; obtain the occupied area of ​​each service type by superimposing the areas of each overlapping region corresponding to each service type; determine the occupied area of ​​each service type as the occupancy statistics result.

[0115] Based on the above embodiments, the device further includes:

[0116] The display module is used to display the corresponding overlapping area based on a preset mark display method after receiving the trigger information for the service type.

[0117] The occupancy statistics device provided in the embodiments of the present invention can execute the occupancy statistics method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the occupancy statistics method.

[0118] It is worth noting that in the above embodiments of the occupancy counting device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.

[0119] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 3 A block diagram is shown of an exemplary electronic device 3 suitable for implementing embodiments of the present invention. Figure 3 The electronic device 3 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0120] like Figure 3 As shown, electronic device 3 is represented in the form of a general-purpose computing electronic device. The components of electronic device 3 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).

[0121] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0122] Electronic device 3 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 3, including volatile and non-volatile media, removable and non-removable media.

[0123] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Electronic device 3 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 3 Not shown; usually referred to as a "hard drive"). Although Figure 3 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.

[0124] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of the present invention.

[0125] Electronic device 3 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with electronic device 3, and / or with any device that enables electronic device 3 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed through input / output (I / O) interface 22. Furthermore, electronic device 3 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. Figure 3 As shown, network adapter 20 communicates with other modules of electronic device 3 via bus 18. It should be understood that, although... Figure 3 As not shown in the diagram, other hardware and / or software modules may be used in conjunction with electronic device 3, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0126] Processing unit 16 executes various functional applications and page displays by running programs stored in system memory 28, such as implementing the occupancy statistics method provided in this embodiment of the invention, which includes:

[0127] Construct the analysis layer based on the file package to be analyzed;

[0128] Intersection analysis is performed on the layer to be analyzed and each business layer to determine the overlapping area between the layer to be analyzed and each of the business layers, wherein the spatial reference of the layer to be analyzed and each of the business layers is consistent;

[0129] The occupancy statistics results are determined based on the area of ​​each overlapping region and the occupancy statistics method.

[0130] Of course, those skilled in the art will understand that the processor can also implement the technical solution of the occupancy statistics method provided in any embodiment of the present invention.

[0131] This invention provides a computer-readable storage medium storing a computer program thereon. When executed by a processor, the program implements, for example, the duty cycle statistics method provided in this invention, which includes:

[0132] Construct the analysis layer based on the file package to be analyzed;

[0133] Intersection analysis is performed on the layer to be analyzed and each business layer to determine the overlapping area between the layer to be analyzed and each of the business layers, wherein the spatial reference of the layer to be analyzed and each of the business layers is consistent;

[0134] The occupancy statistics results are determined based on the area of ​​each overlapping region and the occupancy statistics method.

[0135] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0136] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0137] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0138] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0139] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby allowing them to be stored in a storage device for execution by a computing device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0140] Furthermore, the acquisition, storage, use, and processing of data in the technical solution of this invention all comply with relevant laws and regulations.

[0141] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.

Claims

1. A method for calculating occupancy, characterized in that, include: Construct the analysis layer based on the file package to be analyzed; Intersection analysis is performed on the layer to be analyzed and each business layer to determine the overlapping area between the layer to be analyzed and each of the business layers, wherein the spatial reference of the layer to be analyzed and each of the business layers is consistent; The occupancy statistics results are determined based on the area of ​​each overlapping region and the occupancy statistics method.

2. The occupancy statistics method according to claim 1, characterized in that, Before performing intersection analysis on the layer to be analyzed and each of the business layers, the method further includes: Obtain each of the aforementioned business layers; Based on the spatial relationships between the various business layers, the business layers are overlaid and displayed on the underlying map.

3. The occupancy statistics method according to claim 2, characterized in that, Construct the analysis layer based on the file package to be analyzed, including: An initial layer is generated based on the shape files contained in the file package to be analyzed; Based on the shape index file contained in the file package to be analyzed, the attribute information corresponding to each feature in the initial layer is determined in the attribute table file contained in the file package to be analyzed; The initial layer is obtained by adjusting the attribute information corresponding to each element in the initial layer.

4. The occupancy statistics method according to claim 3, characterized in that, After obtaining the layer to be analyzed, the process also includes: Based on the spatial relationship between the projection coordinate system in the projection information file contained in the file package to be analyzed and the business coordinate system corresponding to each business layer, the layer to be analyzed is transformed to the business coordinate system; The layer to be analyzed, transformed to the business coordinate system, is projected onto the business layer.

5. The occupancy statistics method according to claim 1, characterized in that, Performing intersection analysis on the layer to be analyzed and each of the business layers to determine the overlapping area between the layer to be analyzed and each of the business layers includes: By performing asymmetric intersection analysis on the layer to be analyzed and each of the business layers, the overlapping portion of the layer to be analyzed and each of the business layers is extracted to obtain the overlapping region.

6. The occupancy statistics method according to claim 1, characterized in that, The occupancy statistics method is based on business type. Accordingly, the occupancy statistics results are determined according to the area of ​​each overlapping area and the occupancy statistics method, including: Determine the area of ​​each overlapping region and the corresponding service type of the service layer; The occupied area of ​​each business type is obtained by superimposing the areas of the overlapping areas corresponding to each business type; The occupied area of ​​each of the aforementioned business types is determined as the occupation statistics result.

7. The occupancy statistics method according to claim 6, characterized in that, Also includes: After receiving the trigger information for the service type, the corresponding overlapping area is displayed based on a preset marker display method.

8. A occupancy counting device, characterized in that, include: The parsing module is used to construct the analysis layer based on the file package to be analyzed; The analysis module is used to perform intersection analysis on the layer to be analyzed and each business layer to determine the overlapping area between the layer to be analyzed and each of the business layers, wherein the spatial reference of the layer to be analyzed and each of the business layers is consistent; The determination module is used to determine the occupancy statistics result based on the area of ​​each overlapping region and the occupancy statistics method.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to said at least one processor; The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the occupancy statistics method as described in any one of claims 1-7.

10. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the occupancy statistics method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Development method of ArcGIS data processing tool

    CN106126666A

  • Land pressure occupation analysis system

    CN117409159A

  • Geographic information processing method and device, equipment and storage medium

    CN119379940A