Method and device for auditing cultivated land occupation and compensation space
Technical Field
The invention belongs to the field of farmland resource management, and particularly relates to a farmland occupation supplement space auditing method and device.
Background
The cultivated land is a basic resource on which human beings live and develop, is a basic constituent element of the grain production capacity, and is a foundation stone for guaranteeing national grain safety. In recent years, with the development of economic society, the urbanization construction is accelerated, and the restriction of arable land resources is tightened. In the face of the current severe farmland resource situation, the method strengthens the farmland protection 'quality is heavy', strictly balances and manages the farmland, is an important basis for guaranteeing the national grain safety and promoting the healthy development of agriculture in the new situation, and is also an important task for implementing the 'grain storage in the ground and grain storage in the technology' strategy. Therefore, it is urgent to apply efficient technical means to achieve balance of land occupation and implement the strictest protection system of land.
At present, when checking the compensation balance of cultivated land, the cultivated land is converted into different cultivated land layers according to proportion usually according to the type, shape, area and the like of the cultivated land, the cultivated land layers are overlapped with the layers of construction projects occupying the cultivated land in sequence, and space single-layer overlapping comparison is completed by depending on the existing GIS graphic software so as to judge whether a superposition part exists or not, and then the superposition area and quality are obtained by adopting a manual measurement mode so as to determine the cultivated land area and cultivated land quality needing compensation, and the compensation balance of the cultivated land is realized.
However, with the current method, in actual operation, only the layers of the cultivated land can be sequentially overlapped in a single-layer overlapping manner, and the overlapping area is obtained in a manual measuring manner, so that accuracy errors are prone to exist, and efficiency is not high.
Disclosure of Invention
The invention provides a checking method and a checking device for the compensation space of cultivated land, and aims to solve the problems that in actual operation, due to the fact that a single-layer superposition mode is combined with manual measurement, superposition area is obtained by sequentially superposing cultivated land image layers, precision errors are prone to occur, and efficiency is low.
The invention is realized in this way, a farmland occupation and supplement space auditing method, which comprises the following steps:
acquiring a plurality of layers to be superposed, wherein the layers to be superposed comprise vertex coordinate information;
obtaining a layer to be superposed with the largest area in the layers to be superposed according to the vertex coordinate information;
performing space superposition on the layer to be superposed with the largest area and the occupied layer, and acquiring the area of the superposed part of the layers and the corresponding cultivated land quality grade;
according to a preset superposition rule, carrying out space superposition on the rest non-superposed layer to be superposed and the occupied layer, and acquiring the area of the superposed part of the layers and the corresponding cultivated land quality grade;
and matching the obtained area of the overlapping part of the image layers and the corresponding cultivated land quality grade with a mapping image layer, and outputting auditing information comprising a matching result.
The invention also provides a farmland occupation compensation space auditing device, which comprises:
the device comprises a to-be-superposed layer obtaining unit, a to-be-superposed layer obtaining unit and a superposition unit, wherein the to-be-superposed layer obtaining unit is used for obtaining a plurality of to-be-superposed layers, and the to-be-superposed layers comprise vertex coordinate information;
the obtaining unit is used for obtaining the layer to be superposed with the largest area in the layers to be superposed according to the vertex coordinate information;
the first space superposition unit is used for carrying out space superposition on the layer to be superposed with the largest area and the occupied layer and acquiring the area of the overlapping part of the layers and the corresponding arable land quality grade;
the second space superposition unit is used for carrying out space superposition on the rest non-superposed layer to be superposed and the occupied layer according to a preset superposition rule, and acquiring the area of the superposed part of the layers and the corresponding cultivated land quality grade;
and the matching unit is used for matching the acquired area of the layer overlapping part and the corresponding arable land quality grade with the mapping layer and outputting audit information comprising a matching result.
In the embodiment of the invention, a plurality of layers to be superposed are obtained, the layer to be superposed with the largest area in the layers to be superposed is preferentially superposed with the occupied layer to obtain the corresponding superposed area and the farmland quality, the rest layers to be superposed are superposed with the occupied layer according to the preset superposition rule again to obtain the corresponding superposed part area and the farmland quality, the obtained superposed part area and the farmland quality are matched with the complementary drawing layer, the audit information is output, the superposition analysis of the multi-layer graphic data in the farmland occupation balance is realized through the method, the calculation of the topological relation and the attribute data of the complementary drawing layer is completed, the accurate calculation of the space area of the superposed part of the data of various layers is completed, and the superposition of the plurality of layers can be realized through the layer to be superposed with the largest superposed area, to a certain extent, the auditing efficiency and accuracy can be improved.
Drawings
FIG. 1 is a scene diagram of an implementation of a method for auditing a compensation space occupied by cultivated land according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an implementation of a method for auditing a compensation space occupied by cultivated land according to an embodiment of the present invention;
fig. 3 is a flowchart of an implementation of a method for obtaining a layer to be superimposed with a maximum area according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an implementation of another checking method for supplementary space occupied by cultivated land according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating an implementation of another method for auditing a compensation space occupied by cultivated land according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a checking device for supplementary space occupied by cultivated land according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an obtaining unit according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of another checking device for supplementary space occupied by cultivated land according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another checking device for the cultivated land occupation space according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below 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 are not intended to limit the invention.
In the embodiment of the invention, a plurality of layers to be superposed are obtained, the layer to be superposed with the largest area in the layers to be superposed is preferentially superposed with the occupied layer to obtain the corresponding superposed area and the farmland quality, the rest layers to be superposed are superposed with the occupied layer according to the preset superposition rule again to obtain the corresponding superposed part area and the farmland quality, the obtained superposed part area is matched with the farmland quality and the supplementary drawing layer, the auditing information is output, the superposition analysis of the multi-layer graphic data in the farmland occupation balance is realized by the method, the calculation of the topological relation and the attribute data of the supplementary drawing layer is completed, the accurate calculation of the space area of the superposed part of the data of various layers is completed, and the superposition of the plurality of layers can be realized by superposing the layer to be superposed with the largest area in advance, to a certain extent, the auditing efficiency and accuracy can be improved.
Fig. 1 shows an implementation scenario diagram of a farmland occupation complement space auditing method provided by an embodiment of the present invention, which is detailed as follows:
referring to fig. 1, according to the type of the farmland, generating spatial layers, V1, V2, V3 and V4, where V2, V3 and V1 are spatially overlapped, layer a represents a construction project, such as an expressway, the overlapping portion of layer a and V1, V2, V3 and V4 is the area of the farmland occupied by the construction project, the area occupied by the construction project and the farmland quality corresponding to each layer are matched with layer B for supplementary planning by calculating the overlapping portion, and audit information including the matching result is output, so as to further ensure the supplementary balance of the farmland.
Wherein V1 represents ten million mu standard farmland, V2 represents grain production functional area, V3 represents standard farmland land fertility promotion project, and V4 represents general standard farmland.
The first embodiment,
Fig. 2 shows an implementation flowchart of a farmland occupation supplementary space auditing method provided by the embodiment of the present invention, which is detailed as follows:
in step S110, a plurality of layers to be superimposed are obtained, where the layers to be superimposed include vertex coordinate information.
In the embodiment of the invention, the layer to be superposed is a layer with a polygon shape formed by scaling down the actual cultivated land and according to the types of different cultivated lands.
In the embodiment of the invention, the formed polygonal layer is recorded into occupied layer data and mapping layer data in an SHP file format with a general coordinate system in a terminal, and according to the position of the layer to be superimposed, the coordinate information of each vertex of the layer to be superimposed can be read according to the coordinate system.
In step S120, according to the vertex coordinate information, a layer to be superimposed with the largest area in the layers to be superimposed is obtained.
In the embodiment of the invention, after a plurality of layers to be superposed are introduced, one layer is selected at will, the coordinate information of any two adjacent vertexes in a closed polygon of the layer in a coordinate system of a current plane is read, the distance information between the two vertexes is obtained according to the plane coordinate information and a first preset formula, the area of a triangle formed by the three vertexes is obtained according to a second preset formula according to the distance information, the area of the whole polygon is further obtained, and after the area calculation is carried out on all the layers, the areas of all the layers are compared one by one, and the layer to be superposed with the largest area is obtained.
In the embodiment of the present invention, the first preset formula is:
wherein (x)
1,y
1);(x
2,y
2) Respectively are the plane coordinates of two adjacent vertexes.
For example, when the coordinates of vertex a are (8, 9) and the coordinates of vertex B are (5, 6), the distance between the two vertices is obtained
In the embodiment of the present invention, the second preset formula is:
wherein A, B and C are respectively any three vertexes,
is the distance vector between vertex a and vertex B,
is the distance vector between vertex B and vertex C.
For example, when calculating through the first preset formula, obtaining
Is composed of
Is composed of
Then
In the embodiment of the present invention, after the areas of the triangles divided from the polygonal layer are obtained, the areas of the polygonal layer are obtained by adding the areas of the triangles, other layers to be superimposed are sequentially calculated by the above method to obtain corresponding areas, after the areas of the layers to be superimposed are obtained, the layers to be superimposed with the largest area are obtained by one-to-one comparison, for example, the layers to be superimposed include V1, V2, and V3, and the corresponding areas are 20, 5, and 2, and then the areas are compared one by one, and the layer to be superimposed with the largest area is obtained as V1.
In the embodiment of the present invention, at least one layer to be superimposed, which has an area smaller than or equal to the area of the layer to be superimposed with the largest area, is included, and in the layers to be superimposed with the largest area, a plurality of other layers to be superimposed, which are spatially superimposed on the layer to be superimposed with the largest area, are included.
In step S130, the layer to be superimposed with the largest area is spatially superimposed on the occupied layer, and the area of the layer overlapping portion and the corresponding arable land quality level are obtained.
In the embodiment of the invention, the occupation map layer represents a construction project, such as a highway, which needs to occupy arable land.
In the embodiment of the invention, the occupied layer is recorded in the coordinate system of the SHP file format, the obtained layer to be superposed with the largest area is spatially superposed with the occupied layer to obtain the area of the overlapped part of the occupied layer and the layer to be superposed with the largest area, and the cultivated land quality grade is obtained by searching the target field (such as the cultivated land quality grade) of the layer.
In the embodiment of the invention, after the superposed part of the layer to be superposed with the largest area and the occupied layer is obtained, the coordinate information of the vertexes of the polygon forming the superposed part is read through a coordinate system, the distance between any two adjacent vertexes is further obtained through a first preset algorithm, the polygon is divided into a plurality of triangles through a second preset algorithm, the area of each triangle is respectively calculated, and the area of the superposed part is obtained by adding the areas of the triangles.
In step S140, according to a preset superposition rule, spatially superposing the remaining non-superposed layer to be superposed and the occupied layer, and obtaining an area of a layer overlapping portion and a corresponding arable land quality level.
In the embodiment of the present invention, the preset superposition rule is that the remaining layers to be superposed are sequentially superposed with the occupied layers according to the area size, or the remaining layers are sequentially superposed with the occupied layers according to the cultivated land quality level, or the remaining layers to be superposed are superposed with the occupied layers according to the preset superposition order, or the remaining layers to be superposed are superposed with the occupied layers according to the priority of the number of the layers to be superposed included in the remaining layers, for example, when the remaining layers to be superposed are V1, V2, and V3, where V1 includes V2 and V3, the V1 and the V2 and V3 included therein are preferentially superposed with the occupied layers.
Further, the farmland quality grades of the superposed parts are obtained by searching a target field (such as the farmland quality grade) of a preset map layer.
In step S150, the obtained area of the overlapping portion of the map layer and the corresponding arable land quality level are matched with a mapping map layer, and audit information including a matching result is output.
In the embodiment of the invention, the supplementary drawing layer is used for supplementary drawing of equal quality and equal quantity of the farmland occupied by the occupied layer so as to realize supplementary balance of the farmland.
In the embodiment of the invention, after the areas of the superposition parts of the multiple layers to be superposed and the occupied layers are obtained, the areas of all the superposition parts and the farmland quality grades are matched with the compensation drawing layers in terms of area and quality, and the farmland with the same area (or larger) and quality (or better) is correspondingly matched according to the occupied area and the farmland quality grade, so as to realize farmland compensation (or replacement).
In the embodiment of the invention, the multiple layers to be superposed are obtained, the layer to be superposed with the largest area in the layers to be superposed is preferentially superposed with the occupied layer to obtain the corresponding superposed area and the farmland quality, the rest layers to be superposed are superposed with the occupied layer according to the preset superposition rule again to obtain the corresponding superposed part area and the farmland quality, the obtained superposed part area and the farmland quality are matched with the complementary drawing layer, the audit information is output, the superposition analysis of the multilayer graphic data in the farmland occupation balance is realized by the method, the calculation of the topological relation and the attribute data of the complementary drawing layer is completed, the accurate calculation of the space area of the superposed part of the data of various layers is completed, and the superposition of the multilayer layers can be realized by superposing the layer to be superposed with the largest area in advance, to a certain extent, the auditing efficiency and accuracy can be improved.
Example II,
Fig. 3 shows an implementation flow of a method for obtaining a layer to be superimposed with a maximum area according to an embodiment of the present invention, which is similar to the first embodiment, except that obtaining the layer to be superimposed with the maximum area in the layer to be superimposed according to the vertex coordinate information includes:
in step S210, distance information between vertices of the layer to be superimposed is obtained according to the vertex coordinate information.
In the embodiment of the invention, after a plurality of layers to be superposed are imported, one layer is selected at will, the coordinate information of any two adjacent vertexes in a closed polygon of the layer in a coordinate system of a current plane is read, the distance information between the two vertexes is obtained according to the plane coordinate information and a first preset formula, and the distance information is obtained.
In the embodiment of the present invention, the first preset formula is:
wherein (x)
1,y
1);(x
2,y
2) Respectively are the plane coordinates of two adjacent vertexes.
For example, when the coordinates of vertex a are (8, 9) and the coordinates of vertex B are (5, 6), the distance between the two vertices is obtained
In step S220, the areas of the layers to be superimposed are respectively obtained according to the distance information.
In the embodiment of the invention, any layer of a closed polygon is selected, the layer is divided into a plurality of triangles, the coordinate information of three vertexes of each triangle is obtained, the distance information between any two vertexes is respectively obtained through a first preset algorithm, the area of each triangle is further obtained according to a second preset algorithm, and the areas obtained are added to obtain the area of the layer to be superposed.
Wherein the second predetermined formula is:
wherein A, B and C are respectively any three vertexes,
is the distance vector between vertex a and vertex B,
is the distance vector between vertex B and vertex C.
For example, when calculating through the first preset formula, obtaining
Is composed of
Is composed of
Then
In step S230, comparing the obtained areas of the layers to be superimposed to obtain the layer to be superimposed with the largest area.
In the embodiment of the present invention, after the areas of the triangles divided from the polygonal layer are obtained, the areas of the polygonal layer are obtained by adding the areas of the triangles, other layers to be superimposed are sequentially calculated by the above method to obtain corresponding areas, after the areas of the layers to be superimposed are obtained, the layers to be superimposed with the largest area are obtained by one-to-one comparison, for example, the layers to be superimposed include V1, V2, and V3, and the corresponding areas are 20, 5, and 2, and then the areas are compared one by one, and the layer to be superimposed with the largest area is obtained as V1.
In the embodiment of the present invention, the layer to be superimposed with the largest area includes at least two layers to be superimposed, and in the layer to be superimposed with the largest area, a plurality of other layers spatially superimposed with the layer to be superimposed with the largest area are included.
In the embodiment of the invention, the multiple layers to be superposed are obtained, the layer to be superposed with the largest area in the layers to be superposed is preferentially superposed with the occupied layer to obtain the corresponding superposed area and the farmland quality, the rest layers to be superposed are superposed with the occupied layer according to the preset superposition rule again to obtain the corresponding superposed part area and the farmland quality, the obtained superposed part area and the farmland quality are matched with the complementary drawing layer, the audit information is output, the superposition analysis of the multilayer graphic data in the farmland occupation balance is realized by the method, the calculation of the topological relation and the attribute data of the complementary drawing layer is completed, the accurate calculation of the space area of the superposed part of the data of various layers is completed, and the superposition of the multilayer layers can be realized by superposing the layer to be superposed with the largest area in advance, to a certain extent, the auditing efficiency and accuracy can be improved.
Example III,
Fig. 4 shows an implementation flow of another checking method for a cultivated land occupation compensation space according to an embodiment of the present invention, which is similar to the first embodiment, except that the obtaining, according to the vertex coordinate information, a layer to be superimposed with a largest area in the layers to be superimposed further includes:
in step S310, the layer to be superimposed with the largest area and the layer to be superimposed included in the layer to be superimposed with the largest area are generated as a priority packing layer.
In the embodiment of the present invention, after the layer to be superimposed with the largest area is obtained through the first preset algorithm and the second preset algorithm, the layer to be superimposed with the largest area and other layers to be superimposed included in the layer to be superimposed with the largest area are generated as the priority packed layer, that is, the layer to be superimposed with the largest area and other layers to be superimposed included in the layer to be superimposed with the largest area are classified as the layers to be preferentially superimposed.
The method comprises the following steps of performing space superposition on the layer to be superposed with the largest area and the occupied layer, and acquiring the area of the overlapping part of the layers and the corresponding cultivated land quality grade, wherein the space superposition comprises the following steps:
in step S320, the layer to be superimposed included in the layer to be superimposed with the largest area is searched in the priority packed layer, and is superimposed with the occupied layer, so as to obtain the area of the layer overlapping portion and the corresponding arable land quality level.
In the embodiment of the invention, after the preferentially packed layer is generated, the layer to be superposed is searched in the layer to be superposed with the largest area, the layer to be superposed included in the layer to be superposed with the largest area is superposed with the occupied layer according to a preset superposition sequence, and finally the layer with the largest area is superposed with the occupied layer after the superposition is finished.
The coverage of the coverage layer is determined according to the coverage of the coverage layer, and the coverage of the coverage layer is determined according to the coverage of the coverage layer.
In the embodiment of the invention, the farmland quality grade corresponding to the layer can be a grade identifier marked in the preferentially packed layer, and can be an identifier which can represent the farmland quality grade, such as a name, an identification code and the like.
In step S330, after the layer to be superimposed included in the layer to be superimposed with the largest area is superimposed on the occupied layer, and the area of the superimposed portion of the layer and the corresponding quality grade of the farmland are obtained.
In the embodiment of the invention, a plurality of layers to be superposed are obtained, the layer to be superposed with the largest area in the layers to be superposed is preferentially superposed with the occupied layer to obtain the corresponding superposed area and the farmland quality, the rest layers to be superposed are superposed with the occupied layer according to the preset superposition rule again to obtain the corresponding superposed part area and the farmland quality, the obtained superposed part area and the farmland quality are matched with the complementary drawing layer, the audit information is output, the superposition analysis of the multi-layer graphic data in the farmland occupation balance is realized through the method, the calculation of the topological relation and the attribute data of the complementary drawing layer is completed, the accurate calculation of the space area of the superposed part of the data of various layers is completed, and the superposition of the plurality of layers can be realized through the layer to be superposed with the largest superposed area, to a certain extent, the auditing efficiency and accuracy can be improved.
Example four,
Fig. 5 shows an implementation flow of another farmland occupation supplementary space auditing method provided by the embodiment of the present invention, which is similar to the first embodiment, except that the method matches the area of the overlapping portion and the corresponding farmland quality grade with a supplementary plotting diagram layer, and outputs auditing information including a matching result, and then further includes:
in step S410, when the area of the overlapping portion is smaller than or equal to the area of the supplementary plotting layer, and the farmland quality grade corresponding to the area of the overlapping portion is lower than or equal to the farmland quality grade of the supplementary plotting layer, adding the occupied layer and the supplementary plotting layer to a preset blank layer;
in step S420, after the appending is completed, a corresponding appending identifier is generated for subsequent review and query.
In the embodiment of the invention, the area of the overlapped part and the corresponding cultivated land quality grade are matched with the supplementary drawing layer, when the area of the overlapped part is smaller than or equal to the area of the supplementary drawing layer, and the cultivated land quality grade corresponding to the area of the overlapped part is lower than or equal to the cultivated land quality grade of the supplementary drawing layer, the area of the overlapped part and the corresponding cultivated land quality grade are matched with the supplementary drawing layer, at the moment, the occupied drawing layer and the supplementary drawing layer are added to a preset blank drawing layer to generate an additional identifier, the identifier can be used for data backtracking, and finally, a uniform occupied (supplementary drawing) drawing (shp format) is accumulated and generated after multiple batch project audits and is used for follow-up (or replacement) tracking.
In the embodiment of the invention, the additional identifier is an identifier which can uniquely represent the same layer, such as a name, an identification code and the like.
In step S430, when the area of the overlapping portion is greater than the area of the supplementary-drawing layer, and the quality grade of the farmland corresponding to the area of the overlapping portion is higher than the quality grade of the farmland of the supplementary-drawing layer, performing the audit again.
In the embodiment of the invention, when the area of the overlapping part is larger than the area of the supplemented and drawn layer and the farmland quality grade corresponding to the area of the overlapping part is higher than the farmland quality grade of the supplemented and drawn layer, the area of the overlapping part or the corresponding farmland quality grade is not matched with the supplemented and drawn layer, which indicates that the occupied farmland and the supplemented and drawn farmland are not balanced, the supplement (or replacement) scheme needs to be readjusted, and further examination and verification are carried out.
In the embodiment of the invention, a plurality of layers to be superposed are obtained, the layer to be superposed with the largest area in the layers to be superposed is preferentially superposed with the occupied layer to obtain the corresponding superposed area and the farmland quality, the rest layers to be superposed are superposed with the occupied layer according to the preset superposition rule again to obtain the corresponding superposed part area and the farmland quality, the obtained superposed part area and the farmland quality are matched with the complementary drawing layer, the audit information is output, the superposition analysis of the multi-layer graphic data in the farmland occupation balance is realized through the method, the calculation of the topological relation and the attribute data of the complementary drawing layer is completed, the accurate calculation of the space area of the superposed part of the data of various layers is completed, and the superposition of the plurality of layers can be realized through the layer to be superposed with the largest superposed area, to a certain extent, the auditing efficiency and accuracy can be improved.
Example V,
Fig. 6 shows a structure of a checking device for a supplementary space occupied by cultivated land according to an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown.
The apparatus 500 comprises: a to-be-superimposed layer obtaining unit 51, a obtaining unit 52, a first spatial superimposing unit 53, a second spatial superimposing unit 54, and a matching unit 55.
And an to-be-superimposed layer obtaining unit 51, configured to obtain multiple to-be-superimposed layers, where each to-be-superimposed layer includes vertex coordinate information.
In the embodiment of the invention, the layer to be superposed is a layer with a polygon shape formed by scaling down the actual cultivated land and according to the types of different cultivated lands.
In the embodiment of the invention, the formed polygonal layer is recorded into occupied layer data and mapping layer data in an SHP file format with a general coordinate system in a terminal, and according to the position of the layer to be superimposed, the coordinate information of each vertex of the layer to be superimposed can be read according to the coordinate system.
And an obtaining unit 52, configured to obtain, according to the vertex coordinate information, a layer to be superimposed, which is the largest in area, in the layers to be superimposed.
In the embodiment of the invention, after a plurality of layers to be superposed are introduced, one layer is selected at will, the coordinate information of any two adjacent vertexes in a closed polygon of the layer in a coordinate system of a current plane is read, the distance information between the two vertexes is obtained according to the plane coordinate information and a first preset formula, the area of a triangle formed by the three vertexes is obtained according to a second preset formula according to the distance information, the area of the whole polygon is further obtained, and after the area calculation is carried out on all the layers, the areas of all the layers are compared one by one, and the layer to be superposed with the largest area is obtained.
In the embodiment of the present invention, the first preset formula is:
wherein (x)
1,y
1);(x
2,y
2) Respectively are the plane coordinates of two adjacent vertexes.
For example, when the coordinates of vertex a are (8, 9) and the coordinates of vertex B are (5, 6), the distance between the two vertices is obtained
In the embodiment of the present invention, the second preset formula is:
wherein A, B and C are respectively any three vertexes,
is the distance vector between vertex a and vertex B,
is the distance vector between vertex B and vertex C.
For example, when calculating through the first preset formula, obtaining
Is composed of
Is composed of
Then
In the embodiment of the present invention, after the areas of the triangles divided by the polygon layer are obtained, the areas of the polygon layer are obtained by adding the areas of the triangles, other layers to be superimposed are sequentially calculated by the above method to obtain corresponding areas, after the areas of the layers to be superimposed are obtained, the layers to be superimposed with the largest area are obtained by one-to-one comparison, for example, the layers to be superimposed include V1, V2, and V3, and the corresponding areas are 20, 5, and 2, and then the areas are compared one by one, and the layer to be superimposed with the largest area is obtained as V1.
In the embodiment of the present invention, at least one layer to be superimposed, which has an area smaller than or equal to the area of the layer to be superimposed with the largest area, is included, and in the layers to be superimposed with the largest area, a plurality of other layers to be superimposed, which are spatially superimposed on the layer to be superimposed with the largest area, are included.
And the first space superposition unit 53 is configured to spatially superpose the layer to be superposed with the largest area and the occupied layer, and acquire the area of the layer overlapping portion and the corresponding arable land quality level.
In the embodiment of the invention, the occupation map layer represents a construction project, such as a highway, which needs to occupy arable land.
In the embodiment of the invention, the occupied layer is recorded in the coordinate system of the SHP file format, the obtained layer to be superposed with the largest area is spatially superposed with the occupied layer to obtain the area of the overlapped part of the occupied layer and the layer to be superposed with the largest area, and the cultivated land quality grade is obtained by searching the target field (such as the cultivated land quality grade) of the layer.
In the embodiment of the invention, after the superposed part of the layer to be superposed with the largest area and the occupied layer is obtained, the coordinate information of the vertexes of the polygon forming the superposed part is read through a coordinate system, the distance between any two adjacent vertexes is further obtained through a first preset algorithm, the polygon is divided into a plurality of triangles through a second preset algorithm, the area of each triangle is respectively calculated, and the area of the superposed part is obtained by adding the areas of the triangles.
And the second spatial superposition unit 54 is configured to spatially superpose the remaining non-superposed layer to be superposed and the occupied layer according to a preset superposition rule, and obtain an area of a layer overlapping portion and a corresponding farmland quality grade.
In the embodiment of the present invention, the preset superposition rule is that the remaining layers to be superposed are sequentially superposed with the occupied layers according to the area size, or the remaining layers are sequentially superposed with the occupied layers according to the cultivated land quality level, or the remaining layers to be superposed are superposed with the occupied layers according to the preset superposition order, or the remaining layers to be superposed are superposed with the occupied layers according to the priority of the number of the layers to be superposed included in the remaining layers, for example, when the remaining layers to be superposed are V1, V2, and V3, where V1 includes V2 and V3, the V1 and the V2 and V3 included therein are preferentially superposed with the occupied layers.
Further, the farmland quality grades of the superposed parts are obtained by searching a target field (such as the farmland quality grade) of a preset map layer.
And the matching unit 55 is used for matching the acquired area of the overlapping part of the map layers and the corresponding arable land quality grade with the mapping map layer and outputting audit information comprising a matching result.
In the embodiment of the invention, the supplementary drawing layer is used for supplementary drawing of equal quality and equal quantity of the farmland occupied by the occupied layer so as to realize supplementary balance of the farmland.
In the embodiment of the invention, after the areas of the superposition parts of the multiple layers to be superposed and the occupied layers are obtained, the areas of all the superposition parts and the farmland quality grades are matched with the compensation drawing layers in terms of area and quality, and the farmland with the same area (or larger) and quality (or better) is correspondingly matched according to the occupied area and the farmland quality grade, so as to realize farmland compensation (or replacement).
In the embodiment of the invention, the multiple layers to be superposed are obtained, the layer to be superposed with the largest area in the layers to be superposed is preferentially superposed with the occupied layer to obtain the corresponding superposed area and the farmland quality, the rest layers to be superposed are superposed with the occupied layer according to the preset superposition rule again to obtain the corresponding superposed part area and the farmland quality, the obtained superposed part area and the farmland quality are matched with the complementary drawing layer, the audit information is output, the superposition analysis of the multilayer graphic data in the farmland occupation balance is realized by the method, the calculation of the topological relation and the attribute data of the complementary drawing layer is completed, the accurate calculation of the space area of the superposed part of the data of various layers is completed, and the superposition of the multilayer layers can be realized by superposing the layer to be superposed with the largest area in advance, to a certain extent, the auditing efficiency and accuracy can be improved.
Example six,
Fig. 7 shows a structure of an acquisition unit provided in an embodiment of the present invention, and for convenience of explanation, only a part related to the embodiment of the present invention is shown.
The acquisition unit 52 includes: a distance information obtaining unit 521, an area obtaining unit 522 of the layer to be superimposed, and a comparing unit 523.
And a distance information obtaining unit 521, configured to obtain distance information between vertices of the layer to be superimposed according to the vertex coordinate information.
In the embodiment of the invention, after a plurality of layers to be superposed are imported, one layer is selected at will, the coordinate information of any two adjacent vertexes in a closed polygon of the layer in a coordinate system of a current plane is read, the distance information between the two vertexes is obtained according to the plane coordinate information and a first preset formula, and the distance information is obtained.
In the embodiment of the present invention, the first preset formula is:
wherein (x)
1,y
1);(x
2,y
2) Respectively are the plane coordinates of two adjacent vertexes.
For example, when the coordinates of vertex a are (8, 9) and the coordinates of vertex B are (5, 6), the distance between the two vertices is obtained
And an area obtaining unit 522 of the layer to be superimposed, configured to obtain the areas of the layer to be superimposed according to the distance information.
In the embodiment of the invention, any layer of a closed polygon is selected, the layer is divided into a plurality of triangles, the coordinate information of three vertexes of each triangle is obtained, the distance information between any two vertexes is respectively obtained through a first preset algorithm, the area of each triangle is further obtained according to a second preset algorithm, and the areas obtained are added to obtain the area of the layer to be superposed.
Wherein the second predetermined formula is:
wherein A, B and C are respectively any three vertexes,
is the distance vector between vertex a and vertex B,
is the distance vector between vertex B and vertex C.
For example, when calculating through the first preset formula, obtaining
Is composed of
Is composed of
Then
A comparing unit 523, configured to compare the obtained areas of the layers to be superimposed, and obtain the layer to be superimposed with the largest area.
In the embodiment of the present invention, after the areas of the triangles divided from the polygonal layer are obtained, the areas of the polygonal layer are obtained by adding the areas of the triangles, other layers to be superimposed are sequentially calculated by the above method to obtain corresponding areas, after the areas of the layers to be superimposed are obtained, the layers to be superimposed with the largest area are obtained by one-to-one comparison, for example, the layers to be superimposed include V1, V2, and V3, and the corresponding areas are 20, 5, and 2, and then the areas are compared one by one, and the layer to be superimposed with the largest area is obtained as V1.
In the embodiment of the present invention, the layer to be superimposed with the largest area includes at least two layers to be superimposed, and in the layer to be superimposed with the largest area, a plurality of other layers spatially superimposed with the layer to be superimposed with the largest area are included.
In the embodiment of the invention, when the layer to be superimposed with the largest area does not contain other layers to be superimposed, the layer to be superimposed with the largest area and the occupied layer are spatially superimposed, the area of the superimposed part and the farmland quality grade are obtained, and then the remaining layers to be superimposed and the occupied layer are superimposed according to the preset superimposing sequence.
In the embodiment of the invention, the multiple layers to be superposed are obtained, the layer to be superposed with the largest area in the layers to be superposed is preferentially superposed with the occupied layer to obtain the corresponding superposed area and the farmland quality, the rest layers to be superposed are superposed with the occupied layer according to the preset superposition rule again to obtain the corresponding superposed part area and the farmland quality, the obtained superposed part area and the farmland quality are matched with the complementary drawing layer, the audit information is output, the superposition analysis of the multilayer graphic data in the farmland occupation balance is realized by the method, the calculation of the topological relation and the attribute data of the complementary drawing layer is completed, the accurate calculation of the space area of the superposed part of the data of various layers is completed, and the superposition of the multilayer layers can be realized by superposing the layer to be superposed with the largest area in advance, to a certain extent, the auditing efficiency and accuracy can be improved.
Example seven,
Fig. 8 shows a structure of another checking device for the cultivated land occupation space according to an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown.
The apparatus 500 further comprises: priority packing layer generation unit 56
And a priority packing layer generating unit 56, configured to generate the layer to be superimposed with the largest area and the layer to be superimposed included in the layer to be superimposed with the largest area as a priority packing layer.
In the embodiment of the present invention, after the layer to be superimposed with the largest area is obtained through the first preset algorithm and the second preset algorithm, the layer to be superimposed with the largest area and other layers to be superimposed included in the layer to be superimposed with the largest area are generated as the priority packed layer, that is, the layer to be superimposed with the largest area and other layers to be superimposed included in the layer to be superimposed with the largest area are classified as the layers to be preferentially superimposed.
The first spatial superimposing unit 53 includes:
and a first spatial overlap subunit 531, configured to search, in the preferentially packed layer, a layer to be overlapped included in the layer to be overlapped with the largest area, and overlap the occupied layer to obtain an area of an overlapping portion of the layer and a corresponding arable land quality level.
In the embodiment of the invention, after the preferentially packed layer is generated, the layer to be superposed is searched in the layer to be superposed with the largest area, the layer to be superposed included in the layer to be superposed with the largest area is superposed with the occupied layer according to a preset superposition sequence, and finally the layer with the largest area is superposed with the occupied layer after the superposition is finished.
The coverage of the coverage layer is determined according to the coverage of the coverage layer, and the coverage of the coverage layer is determined according to the coverage of the coverage layer.
In the embodiment of the invention, the farmland quality grade corresponding to the layer can be a grade identifier marked in the preferentially packed layer, and can be an identifier which can represent the farmland quality grade, such as a name, an identification code and the like.
And the first space superposition second subunit 532 is configured to overlap the to-be-superposed layer with the occupied layer with the largest area after the to-be-superposed layer with the largest area includes the to-be-superposed layer and the occupied layer are superposed, and acquire an area of a layer overlapping portion and a corresponding farmland quality grade.
In the embodiment of the invention, the multiple layers to be superposed are obtained, the layer to be superposed with the largest area in the layers to be superposed is preferentially superposed with the occupied layer to obtain the corresponding superposed area and the farmland quality, the rest layers to be superposed are superposed with the occupied layer according to the preset superposition rule again to obtain the corresponding superposed part area and the farmland quality, the obtained superposed part area and the farmland quality are matched with the complementary drawing layer, the audit information is output, the superposition analysis of the multilayer graphic data in the farmland occupation balance is realized by the method, the calculation of the topological relation and the attribute data of the complementary drawing layer is completed, the accurate calculation of the space area of the superposed part of the data of various layers is completed, and the superposition of the multilayer layers can be realized by superposing the layer to be superposed with the largest area in advance, to a certain extent, the auditing efficiency and accuracy can be improved.
Example eight,
Fig. 9 shows a structure of another cultivated land occupation space auditing device according to an embodiment of the present invention, and for convenience of explanation, only the parts related to the embodiment of the present invention are shown.
The apparatus 500 comprises: an appending unit 57 and an appended identifier generating unit 58.
An adding unit 57, configured to add the occupied map layer and the supplementary map layer to a preset blank map layer when the area of the overlapping portion is smaller than or equal to the area of the supplementary map layer and the arable quality level corresponding to the area of the overlapping portion is lower than or equal to the arable quality level of the supplementary map layer;
and an additional identifier generating unit 58, configured to generate a corresponding additional identifier after the addition is completed, so as to facilitate subsequent review and query.
In the embodiment of the invention, the area of the overlapped part and the corresponding cultivated land quality grade are matched with the supplementary drawing layer, when the area of the overlapped part is smaller than or equal to the area of the supplementary drawing layer, and the cultivated land quality grade corresponding to the area of the overlapped part is lower than or equal to the cultivated land quality grade of the supplementary drawing layer, the area of the overlapped part and the corresponding cultivated land quality grade are matched with the supplementary drawing layer, at the moment, the occupied drawing layer and the supplementary drawing layer are added to a preset blank drawing layer to generate an additional identifier, the identifier can be used for data backtracking, and finally, a uniform occupied (supplementary drawing) drawing (shp format) is accumulated and generated after multiple batch project audits and is used for follow-up occupied (or supplementary drawing) tracking.
In the embodiment of the invention, the additional identifier is an identifier which can uniquely represent the same layer, such as a name, an identification code and the like.
The apparatus 500 further comprises an auditing unit 59.
And the auditing unit 59 is configured to perform auditing again when the area of the overlapping portion is greater than the area of the supplementary drawing layer and the arable land quality level corresponding to the area of the overlapping portion is higher than the arable land quality level of the supplementary drawing layer.
In the embodiment of the invention, when the area of the overlapping part is larger than the area of the supplemented and drawn layer and the farmland quality grade corresponding to the area of the overlapping part is higher than the farmland quality grade of the supplemented and drawn layer, the area of the overlapping part or the corresponding farmland quality grade is not matched with the supplemented and drawn layer, which indicates that the occupied farmland and the supplemented and drawn farmland are not balanced, the supplement (or replacement) scheme needs to be readjusted, and further examination and verification are carried out.
In the embodiment of the invention, the multiple layers to be superposed are obtained, the layer to be superposed with the largest area in the layers to be superposed is preferentially superposed with the occupied layer to obtain the corresponding superposed area and the farmland quality, the rest layers to be superposed are superposed with the occupied layer according to the preset superposition rule again to obtain the corresponding superposed part area and the farmland quality, the obtained superposed part area and the farmland quality are matched with the complementary drawing layer, the audit information is output, the superposition analysis of the multilayer graphic data in the farmland occupation balance is realized by the method, the calculation of the topological relation and the attribute data of the complementary drawing layer is completed, the accurate calculation of the space area of the superposed part of the data of various layers is completed, and the superposition of the multilayer layers can be realized by superposing the layer to be superposed with the largest area in advance, to a certain extent, the auditing efficiency and accuracy can be improved.
It will be understood by those skilled in the art that all or part of the steps in the method according to the above embodiments may be implemented by using a program to instruct relevant hardware, and the program may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, flash disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.