CN113204607A - Vector polygon rasterization method for balancing area, topology and shape features - Google Patents

Vector polygon rasterization method for balancing area, topology and shape features Download PDF

Info

Publication number
CN113204607A
CN113204607A CN202110511844.2A CN202110511844A CN113204607A CN 113204607 A CN113204607 A CN 113204607A CN 202110511844 A CN202110511844 A CN 202110511844A CN 113204607 A CN113204607 A CN 113204607A
Authority
CN
China
Prior art keywords
polygon
area
region
rasterization
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110511844.2A
Other languages
Chinese (zh)
Other versions
CN113204607B (en
Inventor
周琛
霍晓龙
徐云耘
陈振杰
李满春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University
Original Assignee
Nanjing University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing University filed Critical Nanjing University
Priority to CN202110511844.2A priority Critical patent/CN113204607B/en
Publication of CN113204607A publication Critical patent/CN113204607A/en
Application granted granted Critical
Publication of CN113204607B publication Critical patent/CN113204607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The invention relates to a vector diagram rasterization method for balancing area, topology and shape characteristics, which repairs the topology change of a grid region according to the real topology of a vector polygon; the grid pixels of the polygonal narrow channel, the convex part and the concave part are reserved, so that the loss of shape characteristics can be reduced; and comparing the area difference between the adjacent grid areas and the original polygon, and reconcile the rasterization areas. The experimental result shows that compared with the conventional algorithm, the algorithm can effectively retain the area, shape and topological characteristics of the polygon, and the total rasterization error is obviously reduced.

Description

Vector polygon rasterization method for balancing area, topology and shape features
Technical Field
The invention relates to a vector polygon rasterization method for balancing area, topology and shape characteristics, and belongs to the technical field of methods for converting vector data into raster data.
Technical Field
Vectors and grids are the basic format of spatial data in Geographic Information Systems (GIS) (Maguire et al, 1991). The fundamental differences between these two data structures (Mattikali, 1995) lead to a lack of versatility in many data processing and analysis tools, and thus often face vector and grid interconversion problems. Due to the advantages of simple structure, simple and convenient data acquisition and analysis method and the like, the raster data is generally more suitable for scientific research than vector data (Peuquet, 1984; Goodchild, 2011). In recent years, the application scene of raster data is greatly expanded by a remote sensing technology. In particular, GIS-based applications such as spatial analysis and spatial modeling (Demers, 2001; Kuhnert et al, 2005), such as resource and environment regulation (Hong et al, 2016), land utilization/land cover change simulation (Mustafa et al, 2017), have led to deeper research on vector-grid transformation. The internal pixel values are generally derived from the polygon during rasterization of the polygon, and the key problem is the determination and assignment of boundary pixels. Algorithms such as boundary algebra (Feito,1995), boundary tracing (Wu,1998), etc. have been developed to find boundary pixels. Since each grid pixel can only be assigned one attribute value, rules must be made to trade off multiple attribute values when border pixels overlap multiple polygons (Wehde et al, 1980). The conventional selection and selection rules of the pixels comprise a center point method and a maximum area method, wherein the center point method is based on a polygon containing the center point of the pixel, and the maximum area method is based on the polygon with the maximum overlapping area with the pixel to determine the value of the pixel.
Discrete pixels of raster data cannot express smooth boundaries of polygons, resulting in vector-raster conversion being a lossy process (Van Der Knaap, 1992). Rasterization errors are mainly manifested as changes in the perimeter, area, shape, location, topology, etc. of polygons (Carver & Brunsdon, 1994; Galton, 2003; Shortridge, 2004). Although reducing the pixel size can effectively reduce various rasterization errors, it can result in a significant increase in data volume and processing time (Bettinger et al, 1996; Bai et al, 2011), so in practical applications it is not as small as possible for grid pixels. Analyzing and evaluating rasterization errors is an important task in the GIS field, where area errors are dominant (Wade et al, 2003). Bregt et al (1991) propose a double-transform-based area error analysis method, which finds a linear positive correlation with a boundary index (boundary length of a polygon per unit area). Kam et al (2000) found that area errors are different due to different rules of various GIS software for selecting grid pixels, which causes problems for spatial analysis depending on the area and number of pixels. Zhou et al (2006) minimize area errors using domain compensation principles based on the spatial relationship of polygons to their boundary pixels. Liao et al (2012) have established a functional relationship between the area error and the arc length density, the polygon density, and the grid pixel size by analyzing the influence factors of the rasterization error. Wei et al (2019) perform a multi-scale rasterization test based on a grid purity index, and an area error analysis result shows that the method is obviously superior to a maximum area method.
The vector-grid conversion also significantly affects the shape and topological features of the polygons. Congalton (1988) studied the spatial complexity and error patterns of 3 landscapes of arable land, grassland and woodland and found that polygons with a large perimeter-area ratio were easily lost or severely deformed in the grid representation. Bettinger et al (1996) noted that when the grid pixel size is too coarse for polygons, the shape and topology of the latter can change significantly, e.g., a polygon is broken due to the loss of a narrow channel, and two adjacent polygons are separated. Congalton (1997) explored the area and shape changes of multi-scale rasterized polygons, indicating that smaller grid pixels are required to retain the shape of the polygon than merely maintaining the polygon. Galton (2003) analyzes the influence of rasterization on the characteristics of polygon area, shape, topology, position and direction in detail, wherein the shape loss is discussed according to symmetry and convexity, and the topology difference is judged according to the region connectivity. Zhou et al (2017) compared different types of topology changes and their causes of formation and then proposed a topology preserving rasterization algorithm.
Conventional rasterization algorithms based on simple center point methods or maximum area methods are still widely applied (Longley et al, 2005), and a large number of rasterization error studies show that the spatial features of polygons are seriously lost in the conversion process. A few scholars have been working on preserving the area or topology of polygons, ignoring the fact that this method can cause greater damage to other features. The area, the shape and the topology are important spatial features of a polygon, and the invention aims to develop an algorithm for balancing and retaining the three features in vector-grid conversion so as to achieve the aim of comprehensively reducing rasterization errors. The accuracy and performance of the algorithm under various grid pixel sizes are evaluated and compared with the situation of repairing a single error. The area change of each type of land in the conventional rasterization result and the repairing result thereof is analyzed. And finally, discussing the influence of different pixel sizes and vector data on the algorithm, some application scenes of the algorithm and the future work.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the vector polygon rasterization method overcomes the defects of the prior art and provides a vector polygon rasterization method for balancing area, topology and shape characteristics.
In order to solve the technical problems, the technical scheme provided by the invention is as follows: a vector polygon rasterization method for balancing area, topology and shape features converts polygons P1 and P2 into region sets R ═ { R ═ R1, R2,...,RnAnd region R2, performing the following steps to fix the rasterization error:
step 1, obtaining a polygonal boundary pixel as a candidate pixel to be classified;
step 2, if
Figure RE-GDA0003126025900000031
Or n>1, performing shape restoration, preferentially ensuring that grid areas of the polygon P1 exist and are communicated to obtain an area R1, and specifically performing the following steps:
obtaining boundary pixel lost by polygon P1 as candidate set Po
If it is
Figure RE-GDA0003126025900000032
I.e. no grid area is present, from the candidate set PoTaking out a pixel to be allocated to P1;
if n is>1, namely the grid area is not connected, searching the pixels at the disconnected part of the polygon P1 and taking the pixels from PoTaken out and distributed to P1;
identifying missing convex portions of polygon P1, from PoThe pixel of the part is taken out and allocated to P1;
thus, a region R1 corresponding to the polygon P1 is obtained;
step 3, if the region R1 is separated from the region R2 and the polygon P1 is adjacent to the polygon P2, or the region R1 is adjacent to the region R2 and the polygon P1 is separated from the polygon P2, repairing the topological relation of the region, specifically including the following steps:
if the region R1 is separated from the region R2 and the polygon P1 is adjacent to the polygon P2, the lost pixels at the polygon common boundary are obtained as the candidate set Po(ii) a The pixels occupied by the polygon P1 and the polygon P2 are respectively used as starting points and stopping points, and the shortest path idea is adopted in PoSearching for pixels and assigning to polygon P1 or polygon P2 overlapping therewith;
if region R1 is adjacent to region R2 and polygon P1 is separated from polygon P2, find the pixel pairs that result in region adjacency as candidate set Pc={(p11,p12),(p21,p22),...,(pn1,pn2) H, mixing PcOne of each pair of pixels in the polygon is assigned to a polygon other than the polygon P1, the polygon P2;
step 4, if the long and narrow convex part of the polygon is lost, the boundary pixel of the part is allocated to the polygon again;
and 5, combining the area of the polygon with the size of the grid pixel, and coordinating the areas of the areas R1 and R2 by using the rest boundary pixels, so that the difference between the area of the polygon and the area of the grid region is not more than half of the area of the pixel.
The invention repairs the topology change of the grid area according to the real topology of the vector polygon. And the grid pixels of the polygonal narrow channel, the convex part and the concave part are reserved, so that the loss of shape characteristics can be reduced. And comparing the area difference between the adjacent grid areas and the original polygon, and reconcile the rasterization areas. Experimental results show that compared with the conventional method, the method disclosed by the invention can effectively retain the area, shape and topological characteristics of the polygon, and the total rasterization error is obviously reduced.
Drawings
The invention will be further described with reference to the accompanying drawings.
Fig. 1 is a plot of experimental data (s ═ 10m), where (a) is a vector data plot and (b) is a grid data plot obtained using a balancing strategy.
Fig. 2 is a comparison graph (s ═ 10m) of the rasterization results, where (a) is a vector polygon; (b) is an initial rasterization result; (c) - (e) is a graph of the results of the three conventional strategies; (f) and (5) processing result graph of the balance strategy.
Detailed Description
The technical route and the operation steps of the present invention will be more clearly understood from the following detailed description of the present invention with reference to the accompanying drawings.
The invention relates to a vector polygon rasterization method for balancing area, topology and shape characteristics, which converts polygons P1 and P2 into region sets R ═ { R ═ R respectively1,R2,...,RnAnd region R2, performing the following steps to fix the rasterization error:
step 1, obtaining a polygonal boundary pixel as a candidate pixel to be classified;
step 2, if
Figure RE-GDA0003126025900000051
Or n>1, performing shape restoration, preferentially ensuring that grid areas of the polygon P1 exist and are communicated to obtain an area R1, and specifically performing the following steps:
obtaining boundary pixel lost by polygon P1 as candidate set Po
If it is
Figure RE-GDA0003126025900000052
I.e. no grid area is present, from the candidate set PoTaking out a pixel to be allocated to P1;
if n is>1, namely the grid area is not connected, searching the pixels at the disconnected part of the polygon P1 and taking the pixels from PoTaken out and distributed to P1;
identifying missing convex portions of polygon P1, from PoThe pixel of the part is taken out and allocated to P1;
thus, a region R1 corresponding to the polygon P1 is obtained;
step 3, if the region R1 is separated from the region R2 and the polygon P1 is adjacent to the polygon P2, or the region R1 is adjacent to the region R2 and the polygon P1 is separated from the polygon P2, repairing the topological relation of the region, specifically including the following steps:
if the region R1 is separated from the region R2 and the polygon P1 is adjacent to the polygon P2, the lost pixels at the polygon common boundary are obtained as the candidate set Po(ii) a The pixels occupied by the polygon P1 and the polygon P2 are respectively used as starting points and stopping points, and the shortest path idea is adopted in PoSearching for pixels and assigning to polygon P1 or polygon P2 overlapping therewith;
if region R1 is adjacent to region R2 and polygon P1 is separated from polygon P2, find the pixel pairs that result in region adjacency as candidate set Pc={(p11,p12),(p21,p22),...,(pn1,pn2) H, mixing PcOne of each pair of pixels in the polygon is assigned to a polygon other than the polygon P1, the polygon P2;
step 4, if the long and narrow convex part of the polygon is lost, the boundary pixel of the part is allocated to the polygon again;
and 5, combining the area of the polygon with the size of the grid pixel, and coordinating the areas of the areas R1 and R2 by using the rest boundary pixels, so that the difference between the area of the polygon and the area of the grid region is not more than half of the area of the pixel.
The specific execution process of the step 5 is as follows:
a1, calculating the area difference between the polygon P and the region R obtained after rasterization, and determining the number n of pixels needing to be reclassified according to the area difference, wherein adjacent pixels with the same attribute value form a region R;
Figure RE-GDA0003126025900000061
in the formula, SpIs the area of the polygon P, SRIs the area of the region R, and s is the area of the grid pixel;
a2, obtaining boundary image elements of the polygon P, and taking the image elements belonging to the region R as a candidate set PaOther pixels as candidate set Po
a3, if n>0, from the candidate set PaGet anda pixel is distributed to other polygons; if n is<0, from the candidate set PoTaking out a pixel to be allocated to the polygon P;
a4, repeating the step a3 until the average area error of the region R and its adjacent regions is no longer reduced or the candidate set PoIs empty.
After rasterization is finished, rasterization error evaluation is carried out, an area error AE, a shape error SE and a topology error TE are respectively calculated by the following formula,
Figure RE-GDA0003126025900000062
Figure RE-GDA0003126025900000071
Figure RE-GDA0003126025900000072
wherein A isv、ArIs the area before and after polygon rasterization, max (A)v,Ar) Is expressed as taking AvAnd ArThe greater of the two; cv、CrCompactness before and after rasterization of polygons respectively, | C if polygons disappear or are broken into a plurality of small regions after conversionr-Cv|=1.0;
NrFor the number of pairs or polygons of the actually occurring topological change, NvPolygon pairs or polygon numbers that are topological changes that may occur;
the compactness calculation formula of the polygon is as follows:
Figure RE-GDA0003126025900000073
in the formula, A and P are the area and the perimeter of the polygon respectively, and the value range of C is (0, 1).
The total number of polygon pairs or polygons with possible topology changes is obtained according to the following formula:
Figure RE-GDA0003126025900000074
Figure RE-GDA0003126025900000075
where i and j represent two polygons, d (i, j) represents the shortest distance between the polygon i and the boundary of the polygon j, and s is the area of the grid pixel.
If the error of the initial rasterization result is AE0、SE0And TE0Error in repair result is AE1、SE1And TE1The overall repair capacity OFC of the algorithm was evaluated using the following formula:
Figure RE-GDA0003126025900000076
the test data is the land utilization data of the village street in Changzhou city in China, and is derived from the investigation result of land utilization change in Changzhou city in 2018. The vector data is in the format of ESRI Shapefile, and the geographical location is shown in FIG. 1. There are 14,000 polygons in the layer, for a total area of 7,462 hectares. Including 6 land utilization types: cultivated land, garden land, water area, construction land, transportation land and other land. Table 1 lists the number of polygons, the average area, and the average compactness for different types of land.
TABLE 1 number of polygons, average area and average compactness for different types of land
Figure RE-GDA0003126025900000081
The algorithm is implemented using Python programming language. The Geospatial Data Abstraction Library (GDAL) provides a series of spatial classes and spatial manipulation functions for reading, writing, converting and processing vector and raster Data. And calling an existing vector-grid conversion algorithm to obtain an initial rasterization result. Each polygon in the vector data has a unique id value, and the value is given to a grid pixel in the rasterization process. And calculating the optimal number of reclassified pixels required for minimizing the area error of the polygon and the area of the initial grid region of the polygon. To efficiently query the adjoining polygons, a quadtree spatial index (manolooulos et al, 2018) is designed and applied against the experimental data. Based on the basic idea of the Bresemhan algorithm (Gaol,2013), all the pixels that a polygon boundary passes through are calculated. And acquiring the adjacency state of the grid region by searching the boundary pixel and the 4-neighbor thereof for identifying the generated topology change. In addition, when the grid pixels are classified again, new topological changes are prevented from being introduced.
The algorithm runs on a Windows 10 platform and is provided with an Intel (R) core (TM) i7-6700 processor (with the clock frequency of 3.4GHz), an 8GB memory and a 1TB hard disk.
Control experiments were performed at various rasterization scales. An initial rasterization result is obtained based on the center point rule. And repairing the corresponding type of rasterization error by utilizing three conventional strategies (hereinafter, referred to as an area strategy, a shape strategy and a topology strategy) and a balance strategy respectively. These repair results were compared and analyzed in detail. Meanwhile, the accuracy and performance of the algorithm are evaluated, and the area change of different types of land after the error is repaired.
Taking a 10m grid pixel as an example, the vector polygon of fig. 1(a) is rasterized. The three conventional strategies and the balance strategy obtain four repaired rasterization results. FIG. 1(b) is the result of the balancing strategy.
As shown in fig. 2, the same position is selected in each rasterization result for comparing the effects of different strategies on the spatial features of the polygon and its neighbors. Fig. 2(a) is a vector layer, and the shape of the polygon P2 is approximately triangular. FIG. 2(b) is the initial rasterization result with polygon P1 transformed into two unconnected regions with an area error of 2.72%; the region R2 is approximately rectangular in shape. In fig. 2(c), the area variation is reduced, and the area error of the polygon P1 is reduced to 0.02%, but the regions R1 and R4 are adjacent, and R5 and R6 are separated. In fig. 2(d), region R2 retains one lobe of polygon P2, but it is contiguous with R3; the area errors of P1 and P2 increase. The topological variation is repaired in fig. 2(e), but the area error of the polygon P1 is still 2.61%, and the inclined narrow passage becomes vertical. FIG. 2(f) shows the result of the balancing strategy, where the area error of the polygon P1 is reduced to 0.02%; the narrow passage and lobe losses of P1 and P2 are reduced; the topology of the region is consistent with that of the polygon. The comparison shows that the balance strategy has better comprehensive effect on the reserved area, the shape and the topology.
The rasterization test was carried out using six pixel sizes of 5, 10, 15, 20, 25, 30 m. Table 2 records the area error AE, shape error SE, and topology error TE of the rasterization results obtained with the conventional strategy and the equilibrium strategy. An index OFC reflecting the repair capability of each strategy for the rasterization error is calculated.
The results show that the rasterization error is sensitive to the pixel size. As the picture element increases, AE, SE, and TE all increase significantly. The conventional strategy has a good repairing effect on the single type rasterization error. However, the area strategy causes the increase of shape error and topology error, and is especially obvious when the pixel size is small. The shape strategy or the topology strategy helps to reduce shape errors and topology errors, but introduces new area errors. The balancing strategy can reduce these three rasterization errors simultaneously. The OFC index shows that as the pixel increases, the repair capacity of the area strategy and the shape strategy increases, and the repair capacity of the topology strategy and the balance strategy gradually decreases. The main reason is that too coarse grid pixels severely lose the spatial features of the polygons. Many topological changes are difficult to repair and the interplay between different errors is strong. In summary, although the rasterization error is always present, the results of the balancing strategy are clearly superior to the other strategies. When the pixel size is less than 10m, more than half of the error can be repaired.
TABLE 2 rasterization errors for conventional and equilibrium strategies at different raster pixel sizes
Figure RE-GDA0003126025900000101
Vector-to-grid conversion destroys spatial features such as the area, shape, and topology of polygons, thereby introducing various types of rasterization errors. The invention designs three conventional strategies for independently repairing the area error, the shape error and the topological error, and develops a balance strategy capable of simultaneously repairing the three errors on the basis. Under different grid pixel sizes, the balancing strategy can more effectively repair various types of grid errors. Conventional strategies repair one type of error while increasing the other type of error. When the pixel size is less than 10m, more than 50% of the rasterization errors in the result of the balancing strategy are repaired, which is obviously better than that of the conventional strategy, but the former requires a longer execution time.
In addition to the above embodiments, the present invention may have other embodiments. All technical solutions formed by adopting equivalent substitutions or equivalent transformations fall within the protection scope of the claims of the present invention.

Claims (5)

1. A vector polygon rasterization method for balancing area, topology and shape features converts polygons P1 and P2 into region sets R ═ R respectively1,R2,...,RnAnd region R2, performing the following steps to fix the rasterization error:
step 1, obtaining a polygonal boundary pixel as a candidate pixel to be classified;
step 2, if
Figure RE-FDA0003126025890000011
Or n>1, performing shape restoration, preferentially ensuring that grid areas of the polygon P1 exist and are communicated to obtain an area R1, and specifically performing the following steps:
obtaining boundary pixel lost by polygon P1 as candidate set Po
If it is
Figure RE-FDA0003126025890000012
I.e. no grid area is present, from the candidate set PoTaking out a pixel to be allocated to P1;
if n is>1, namely the grid area is not connected, searching the pixels at the disconnected part of the polygon P1 and taking the pixels from PoTaken out and distributed to P1;
identifying missing convex portions of polygon P1, from PoThe pixel of the part is taken out and allocated to P1;
thus, a region R1 corresponding to the polygon P1 is obtained;
step 3, if the region R1 is separated from the region R2 and the polygon P1 is adjacent to the polygon P2, or the region R1 is adjacent to the region R2 and the polygon P1 is separated from the polygon P2, repairing the topological relation of the region, specifically including the following steps:
if the region R1 is separated from the region R2 and the polygon P1 is adjacent to the polygon P2, the lost pixels at the polygon common boundary are obtained as the candidate set Po(ii) a The pixels occupied by the polygon P1 and the polygon P2 are respectively used as starting points and stopping points, and the shortest path idea is adopted in PoSearching for pixels and assigning to polygon P1 or polygon P2 overlapping therewith;
if region R1 is adjacent to region R2 and polygon P1 is separated from polygon P2, find the pixel pairs that result in region adjacency as candidate set Pc={(p11,p12),(p21,p22),...,(pn1,pn2) H, mixing PcOne of each pair of pixels in the polygon is assigned to a polygon other than the polygon P1, the polygon P2;
step 4, if the long and narrow convex part of the polygon is lost, the boundary pixel of the part is allocated to the polygon again;
and 5, combining the area of the polygon with the size of the grid pixel, and coordinating the areas of the areas R1 and R2 by using the rest boundary pixels, so that the difference between the area of the polygon and the area of the grid region is not more than half of the area of the pixel.
2. The vector polygon rasterization method of claim 1 for balancing area, topology and shape features, wherein: the specific execution process of the step 5 is as follows:
a1, calculating the area difference between the polygon P and the region R obtained after rasterization, and determining the number n of pixels needing to be reclassified according to the area difference, wherein adjacent pixels with the same attribute value form a region R;
Figure RE-FDA0003126025890000021
in the formula, SpIs the area of the polygon P, SRIs the area of the region R, and s is the area of the grid pixel;
a2, obtaining boundary image elements of the polygon P, and taking the image elements belonging to the region R as a candidate set PaOther pixels as candidate set Po
a3, if n>0, from the candidate set PaTaking out a pixel to be distributed to other polygons; if n is<0, from the candidate set PoTaking out a pixel to be allocated to the polygon P;
a4, repeating the step a3 until the average area error of the region R and its adjacent regions is no longer reduced or the candidate set PoIs empty.
3. The vector polygon rasterization method for balancing area, topology and shape features as recited in claim 1, wherein: after rasterization is finished, rasterization error evaluation is carried out, an area error AE, a shape error SE and a topology error TE are respectively calculated by the following formula,
Figure RE-FDA0003126025890000022
Figure RE-FDA0003126025890000023
Figure RE-FDA0003126025890000031
wherein A isv、ArBefore or after rasterization of polygonsArea, max (A)v,Ar) Is expressed as taking AvAnd ArThe greater of the two; cv、CrCompactness before and after rasterization of polygons respectively, | C if polygons disappear or are broken into a plurality of small regions after conversionr-Cv|=1.0;NrFor the number of pairs or polygons of the actually occurring topological change, NvPolygon pairs or polygon numbers that are topological changes that may occur;
if the error of the initial rasterization result is AE0、SE0And TE0Error in repair result is AE1、SE1And TE1The overall repair capacity OFC of the algorithm was evaluated using the following formula:
Figure RE-FDA0003126025890000032
4. a vector polygon rasterization method to balance area, topology and shape features according to claim 3 and characterized in that: the compactness calculation formula of the polygon is as follows:
Figure RE-FDA0003126025890000033
in the formula, A and P are the area and the perimeter of the polygon respectively, and the value range of C is (0, 1).
5. A vector polygon rasterization method to balance area, topology and shape features according to claim 3 and characterized in that: the total number of polygon pairs or polygons with possible topology changes is obtained according to the following formula:
Figure RE-FDA0003126025890000034
Figure RE-FDA0003126025890000035
where i and j represent two polygons, d (i, j) represents the shortest distance between the polygon i and the boundary of the polygon j, and s is the area of the grid pixel.
CN202110511844.2A 2021-05-11 2021-05-11 Vector polygon rasterization method for balancing area, topology and shape characteristics Active CN113204607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110511844.2A CN113204607B (en) 2021-05-11 2021-05-11 Vector polygon rasterization method for balancing area, topology and shape characteristics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110511844.2A CN113204607B (en) 2021-05-11 2021-05-11 Vector polygon rasterization method for balancing area, topology and shape characteristics

Publications (2)

Publication Number Publication Date
CN113204607A true CN113204607A (en) 2021-08-03
CN113204607B CN113204607B (en) 2023-07-25

Family

ID=77030918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110511844.2A Active CN113204607B (en) 2021-05-11 2021-05-11 Vector polygon rasterization method for balancing area, topology and shape characteristics

Country Status (1)

Country Link
CN (1) CN113204607B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113920184A (en) * 2021-12-13 2022-01-11 腾讯科技(深圳)有限公司 Polygon simplification method, device, equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060017721A1 (en) * 2004-07-20 2006-01-26 Jerome Couture-Gagnon Reduction of a mesh with preservation of flow lines
CN101739696A (en) * 2008-11-10 2010-06-16 富士通株式会社 System and method for rasterizing convex polygon
CN102314609A (en) * 2011-09-13 2012-01-11 中国科学院地理科学与资源研究所 Skeleton extraction method and device for polygonal image
CN105184837A (en) * 2015-08-31 2015-12-23 武汉云空间地理信息技术有限公司 Vector polygon rasterization algorithm and system
CN106709857A (en) * 2016-11-22 2017-05-24 中国人民解放军理工大学 Arbitrary polygon intersection area calculation method based on probability statistics
CN109003316A (en) * 2018-07-05 2018-12-14 南京大学 Parallel rasterizing data partition method based on polygon complexity

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060017721A1 (en) * 2004-07-20 2006-01-26 Jerome Couture-Gagnon Reduction of a mesh with preservation of flow lines
CN101739696A (en) * 2008-11-10 2010-06-16 富士通株式会社 System and method for rasterizing convex polygon
CN102314609A (en) * 2011-09-13 2012-01-11 中国科学院地理科学与资源研究所 Skeleton extraction method and device for polygonal image
CN105184837A (en) * 2015-08-31 2015-12-23 武汉云空间地理信息技术有限公司 Vector polygon rasterization algorithm and system
CN106709857A (en) * 2016-11-22 2017-05-24 中国人民解放军理工大学 Arbitrary polygon intersection area calculation method based on probability statistics
CN109003316A (en) * 2018-07-05 2018-12-14 南京大学 Parallel rasterizing data partition method based on polygon complexity

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ZHOU, CHENGHU等: "An equal area conversion model for rasterization of vector polygons", SCIENCE IN CHINA SERIES D: EARTH SCIENCES, vol. 50, pages 169 - 175, XP037866350, DOI: 10.1007/s11430-007-5013-6 *
ZHOU, C等: "A topology-preserving polygon rasterization algorithm", CARTOGRAPHY AND GEOGRAPHIC INFORMATION SCIENCE, vol. 45, no. 6, pages 495 *
石潇: "GIS中矢量多边形栅格化的算法优化及误差分析", 中国优秀硕士学位论文全文数据库 (基础科学辑), no. 2, pages 008 - 67 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113920184A (en) * 2021-12-13 2022-01-11 腾讯科技(深圳)有限公司 Polygon simplification method, device, equipment and computer readable storage medium
CN113920184B (en) * 2021-12-13 2022-03-11 腾讯科技(深圳)有限公司 Polygon simplification method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN113204607B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN103703490B (en) For generation of the equipment of three-dimensional feature data and the method for generation of three-dimensional feature data
CN106408604A (en) Filtering method and device for point cloud data
CN104112007B (en) A kind of data storage, tissue and the search method of image level segmentation result
CN107092978B (en) Shortest path layered planning method for virtual earth
CN110838129A (en) Three-dimensional building model contour characteristic line extraction method based on oblique photogrammetry
CN105787977A (en) Building vector boundary simplification method
CN101609465B (en) Fast conversion method of space vector data
Wang et al. The isotropic organization of DEM structure and extraction of valley lines using hexagonal grid
CN112508988A (en) Method and device for accurately extracting mosaic lines of remote sensing images
CN113204607A (en) Vector polygon rasterization method for balancing area, topology and shape features
JP2007065900A (en) Ridge direction extracting device, method, and program
CN112002007A (en) Model obtaining method and device based on air-ground image, equipment and storage medium
CN115033972B (en) Method and system for unitizing building main body structures in batches and readable storage medium
CN116452826A (en) Coal gangue contour estimation method based on machine vision under shielding condition
KR101091061B1 (en) Method for Measuring the Location Similarity of Spatial Object on Digital Maps and Map Matching using the same
CN103514224A (en) Method for processing data in database, data query method and corresponding device
CN102360387A (en) Method for outputting geometric data of facet element of vector data transfer format of topology 1
AU2021102429A4 (en) Method for selecting roads in a small-mesh accumulation area
CN114116948A (en) Geographic vector data space buffer area analysis method, device, equipment and medium
CN115130768A (en) Method and device for predicting long track of moving target
CN114677388A (en) Room layout dividing method based on unit decomposition and space division
KR100500541B1 (en) Distortion correction system and its application method for cadastral map join
CN109509249B (en) Virtual scene light source intelligent generation method based on components
Liu et al. Segmentation and reconstruction of buildings with aerial oblique photography point clouds
CN111709593B (en) Space resource optimal allocation method based on weak space constraint

Legal Events

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