Disclosure of Invention
The invention aims to provide a block evaluation approval method based on a geological disaster easily-issued partition, which has the characteristic of automatically distributing a proper approval mode based on information of an approval process.
The above object of the present invention is achieved by the following technical solutions:
a block evaluation examination and approval method based on a geological disaster easily-issued partition,
receiving a block approval process;
reading a corresponding shapefile format file of a block with geological condition attributes under a scene folder based on the information of the block approval process;
reading a corresponding block image file in a DWG format under a block folder based on the information of the block approval process, wherein the block image is a closed polygon;
reversely analyzing the block image into a block coordinate array by utilizing an API (application programming interface) provided by the OGR element library;
a block range is formed by the block coordinate arrays, space operation in the block range is carried out in a vector layer of the shapefile format file, and the proportion of the occupied area of each geological condition attribute in the block range is obtained;
carrying out weight calculation on the proportion of the occupation area of each geological condition attribute in the block range;
and judging whether to trigger an auditing process or not based on the weight calculation result.
By adopting the technical scheme, the shape file is used as a file storage mode, graphic elements and attribute data are contained in the shape file, and the block is endowed with attribute information related to geological disasters; the block image file in DWG format has wide application in industry as a drawing format for CAD software output. And the coordinate information can be accurately obtained through the block image file in the DWG format. Therefore, the proportion of the occupied area of each geological condition attribute in the block range can be obtained by performing space operation in the block range in the vector layer of the shape file; and the weight calculation is carried out according to the proportion of the occupation area of the qualitative condition attributes in the block range, so that the probability range of the disaster occurrence probability in the block range can be accurately obtained. And the triggering and reviewing process is further examined in detail for the range interval with high probability of being liable to occur, and is simpler to examine for the range interval with low probability of being liable to occur, so that the technical scheme can automatically allocate a proper examination and approval mode based on the information of the examination and approval process.
The present invention in a preferred example may be further configured to: the information of the block approval process at least comprises unique ID information, and the block file is correspondingly read based on the unique ID information.
By adopting the technical scheme, the scene file and the block file are distinguished according to the unique ID information, and the corresponding file can be quickly obtained from the database.
The present invention in a preferred example may be further configured to: the block coordinate array comprises end point coordinates which are sequentially connected on the block image, and the first group of coordinates and the last group of coordinates in the block coordinate array are equal.
By adopting the technical scheme, the block coordinate array comprises the endpoint coordinates which are sequentially connected on the block image, and a closed polygon can be obtained by enabling the first group of coordinates and the last group of coordinates in the block coordinate array to be equal.
The present invention in a preferred example may be further configured to: the method comprises the following steps of reversely analyzing a block image into a block coordinate array by utilizing an API (application programming interface) provided by an OGR (one object relational mapping) element library, and then:
based on the API interface of Skyline, drawing a block image corresponding to the block coordinate array on the read shape format file, and converting the drawn shape format file into a preview image.
By adopting the technical scheme, the structure observation can be more intuitive through the preview image and the data structure.
The present invention in a preferred example may be further configured to: the geological condition attributes comprise a high incidence area, a medium incidence area, a low incidence area and a low incidence area; and sequentially reducing the weight values of the high and medium hair-prone areas, the low hair-prone areas and the low hair-prone areas in the weight calculation.
By adopting the technical scheme, because the risks of the high-susceptibility area, the medium-susceptibility area, the low-susceptibility area and the difficult-to-send area are sequentially reduced, the calculated weight result and the risk value are closer by sequentially reducing the weight values of the high-susceptibility area, the medium-susceptibility area, the low-susceptibility area and the difficult-to-send area.
The present invention in a preferred example may be further configured to: the judging whether to trigger the review process based on the weight calculation result comprises the following steps:
and comparing the obtained weight calculation result with a preset trigger threshold, triggering the review process when the weight calculation result is higher than the trigger threshold, and otherwise, not triggering.
By adopting the technical scheme, the accurate triggering information can be obtained by comparing the triggering information with the preset threshold value.
The invention also aims to provide a block application approval system based on the geological disaster easily-issued subarea, which has the characteristic of accelerating the approval process.
The second aim of the invention is realized by the following technical scheme:
a block application approval system based on a geological disaster easily-issued partition comprises,
the approval receiving module is used for receiving the block approval process;
the scene acquisition module is used for reading a corresponding shapefile format file of the block with the geological condition attribute in the scene folder based on the information of the block approval process;
the block acquisition module reads a corresponding block image file in a DWG format in a block folder based on the information of the block approval process, wherein the block image is a closed polygon;
the block analysis module reversely analyzes the block image into a block coordinate array by utilizing an API (application programming interface) provided by the OGR element library;
the space budget module is used for forming a block range by the block coordinate arrays, performing space operation in the block range in a vector layer of the shapefile format file, and acquiring the proportion of the occupation area of each geological condition attribute in the block range;
the weight calculation module is used for calculating the weight of the proportion of the occupation area of each geological condition attribute in the block range;
and the judging and triggering module is used for judging whether to trigger the reviewing process or not based on the weight calculation result. The third purpose of the invention is to provide an intelligent terminal which has the characteristic of accelerating the approval process of an approval system.
The third object of the invention is realized by the following technical scheme:
the intelligent terminal comprises a memory and a processor, wherein the memory is stored with a computer program which can be loaded by the processor and can execute the block evaluation approval method based on the geological disaster prone subarea.
The fourth purpose of the invention is to provide a computer storage medium which can store corresponding programs and has the characteristic of facilitating the realization of accelerating the approval process of an approval system.
The fourth object of the invention is realized by the following technical scheme:
a computer readable storage medium storing a computer program capable of being loaded by a processor and executing any one of the above-mentioned methods for block assessment approval based on a geological disaster prone sub-area.
In summary, the invention includes at least one of the following beneficial technical effects:
1. according to the technical scheme, a proper examination and approval mode can be automatically allocated based on the information of the examination and approval process, and the examination and approval allocation process is accelerated;
2. and judging whether to trigger the review process or not in a weight calculation mode, wherein the judgment result is accurate.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
The present embodiment is only for explaining the present invention, and it is not limited to the present invention, and those skilled in the art can make modifications of the present embodiment without inventive contribution as needed after reading the present specification, but all of them are protected by patent law within the scope of the claims of the present invention.
Software applied in this embodiment is disclosed:
the Apache POI is an open source function library of the Apache software foundation and provides API for Java programs to read and write functions of Microsoft Office format archives, such as reading and writing of word documents.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
A block evaluation approval method based on a geological disaster easily-issued partition is mainly applied to a work flow of checking and approving construction engineering land attribute information, engineering land is located in a low-risk area such as a geological disaster easily-issued area, and a simpler rapid approval flow is selected in an approval process; and if the engineering land is located in high-risk areas such as high-incidence areas of geological disasters, selecting a more complex approval process for detailed examination.
Specifically, as shown in fig. 1, a block evaluation approval method based on a geological disaster vulnerable zone includes:
s10, receiving a block approval process;
the block approval process is submitted by an applicant to be approved, and the submitted information of the block approval process at least comprises the area information of the shapefile format file, the block image file in the DWG format under the read corresponding block file and the unique ID information of the corresponding applicant. Wherein the block file is correspondingly read based on the unique ID information. The unique ID information is recorded in a database file, and the shapefile format file is stored in a specified scene folder of the server.
The DWG data format is a proprietary file format used by computer aided design software AutoCAD and software based on AutoCAD to store design data.
The shape format file is stored in a designated scene folder at the server side, and if the region information is recorded as Shenzhen city, the storage position of the corresponding shape format file is C: \ gisdata \ shenzhen.shp; similarly, the block files are uploaded to a designated folder of the server side, such as C \ upload \ user A.dwg >, wherein the file names in the sharp brackets can be generated according to the unique id of the user in the system, and the files uploaded by different users in the whole application system can not be covered by others.
S20, reading a corresponding shapefile format file of the block with the geological condition attribute in the scene folder based on the information of the block approval process;
the shape file has blocks with geological condition attributes, wherein the geological condition attributes comprise a high incidence area, a medium incidence area, a low incidence area and a low incidence area. The high-susceptibility region, the medium-susceptibility region, the low-susceptibility region and the low-susceptibility region are mainly manufactured by GIS desktop software, and the specific manufacturing mode belongs to the prior art, so that the detailed description is omitted in the scheme.
Preferably, the GIS desktop software adopts three-dimensional digital earth platform software Skyline. Specifically, Skyline is three-dimensional digital earth platform software, can build a three-dimensional scene simulating a real world by utilizing massive remote sensing aerial image data, digital elevation data and other two-dimensional data, and supports embedding of the three-dimensional scene into a webpage. In other embodiments, the GIS desktop software may also use super Map (hypergraph), ESRI ArcGIS.
S30, reading the corresponding block image file in the DWG format in the block folder based on the information of the block approval process;
the block image is a closed polygon, such as a triangle, a quadrangle and a pentagon for waiting, a corresponding block image file in a DWG format is input by a user according to actual requirements, and the input image file has corresponding position information besides a graph shape.
S40, reversely analyzing the block image into a block coordinate array by using an API (application programming interface) provided by the OGR (object oriented graph) element library;
wherein, gdal (geospatial Data Abstraction library) is an open source grid space Data conversion library under the X/MIT permission protocol. It utilizes an abstract data model to express the various file formats supported. The OGR is a branch of the GDAL project and functions similarly to the GDAL except that it provides support for vector data. There are many well-known GIS-like products that use the GDAL/OGR library, including the ArcGIS, Google Earth, and cross-platform GRASS GIS systems of the ESRI.
The reverse analysis of the block image comprises the steps of analyzing a C: \ upload \ user A.dwg > file uploaded by a user, reversely analyzing geometric figures in the file into a group of block coordinate arrays, wherein the block coordinate arrays comprise end point coordinates which are sequentially connected on the block image, and the first group of coordinates and the last group of coordinates in the block coordinate arrays are equal.
Specifically, taking a block coordinate array of a quadrilateral as an example, the format is as follows: [ 8000030000, 8000031000, 8100031000, 8100030000, 8000030000 ]; the format is described as follows: [ x1 y1, x2 y2, x3 y3, x4 y4, x5 y5], wherein the coordinates of the start point of the first group x1, y1 and the coordinates of the end point of the last group x5, y5 are completely equal, which means that the polygon is a closed polygon.
S60, forming a block range by block coordinate arrays, and performing space operation in the block range in a vector layer of the shapefile format file to obtain the proportion of the occupation area of each geological condition attribute in the block range;
by utilizing an API (application programming interface) provided by the OGR (object oriented programming) and taking a block coordinate array as a block range of a space query condition, performing a Skyline self-contained space operation function in a geological disaster vector layer of a shape format file in \ gisdata \ shenzhen.
I.e., the ratio of the specific surface area of the high hair region, the medium hair region, the low hair region and the low hair region, respectively, e.g., 4% of the high hair region, 12% of the medium hair region, 31% of the low hair region and 53% of the low hair region.
S70, carrying out weight calculation on the proportion of the occupation area of each geological condition attribute in the block range;
and sequentially reducing the weight values of the high and medium hair-prone areas, the low hair-prone areas and the low hair-prone areas in the weight calculation. The specific numerical value is adjusted and set according to the actual situation.
Taking 4% of high-susceptibility region, 12% of medium-susceptibility region, 31% of low-susceptibility region and 53% of non-susceptibility region as examples, the weighting values of high-susceptibility region, medium-susceptibility region, low-susceptibility region and non-susceptibility region are preferably 20, 6, 1 and 0. Then weight =4% × 20+12% × 6+31% × 1= 1.53.
And S80, judging whether to trigger the review process based on the weight calculation result.
Specifically, the obtained weight calculation result is compared with a preset trigger threshold, and when the weight calculation result is higher than the trigger threshold, the auditing process is triggered, otherwise, the auditing process is not triggered.
The trigger threshold is adjusted according to actual conditions, and the preferred trigger threshold ranges from 1.2 to 1.8, and in this embodiment, 1.3 is adopted. The result of the weight calculation is therefore 1.53> 1.3. Thus triggering the audit process. The review process is a complex scrutiny.
As shown in fig. 2, in one embodiment, steps S40 and S60 further include step S50,
s50, drawing the block image corresponding to the block coordinate array on the read shape format file based on the API interface of Skyline, and converting the drawn shape format file into a preview image;
specifically, the server side temporarily stores the analyzed block coordinate array as a response result in a session of a server side user and simultaneously returns the response result to the web side, and the web side performs imaging drawing according to the polygon coordinate array returned from the server side by using a Skyline imaging API (application programming interface). And after the drawing is finished, converting the whole Skyline map into a picture, and sending the picture to the server side again, so that a preview image is generated at the webpage side.
A block application approval system based on a geological disaster easily-issued partition comprises,
the approval receiving module is used for receiving the block approval process;
the scene acquisition module is used for reading a corresponding shapefile format file of the block with the geological condition attribute in the scene folder based on the information of the block approval process;
the block acquisition module reads a corresponding block image file in a DWG format in a block folder based on the information of the block approval process, wherein the block image is a closed polygon;
the block analysis module reversely analyzes the block image into a block coordinate array by utilizing an API (application programming interface) provided by the OGR element library;
the space budget module is used for forming a block range by the block coordinate arrays, performing space operation in the block range in a vector layer of the shapefile format file, and acquiring the proportion of the occupation area of each geological condition attribute in the block range;
the weight calculation module is used for calculating the weight of the proportion of the occupation area of each geological condition attribute in the block range;
and the judging and triggering module is used for judging whether to trigger the reviewing process or not based on the weight calculation result.
The intelligent terminal comprises a memory and a processor, wherein the memory is stored with a computer program which can be loaded by the processor and can execute the block evaluation approval method based on the geological disaster prone subarea.
A computer readable storage medium storing a computer program capable of being loaded by a processor and executing any one of the above-mentioned methods for block assessment approval based on a geological disaster prone sub-area.
The computer-readable storage medium includes, for example: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.