CN108090217A - A kind of method and system that meteorological grating image is converted to WMS figure layers - Google Patents

A kind of method and system that meteorological grating image is converted to WMS figure layers Download PDF

Info

Publication number
CN108090217A
CN108090217A CN201711483300.XA CN201711483300A CN108090217A CN 108090217 A CN108090217 A CN 108090217A CN 201711483300 A CN201711483300 A CN 201711483300A CN 108090217 A CN108090217 A CN 108090217A
Authority
CN
China
Prior art keywords
meteorological
grating image
wms
image
layers
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.)
Pending
Application number
CN201711483300.XA
Other languages
Chinese (zh)
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.)
Wuhan City Qin Billion Information Technology Ltd By Share Ltd
Original Assignee
Wuhan City Qin Billion Information Technology Ltd By Share Ltd
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 Wuhan City Qin Billion Information Technology Ltd By Share Ltd filed Critical Wuhan City Qin Billion Information Technology Ltd By Share Ltd
Priority to CN201711483300.XA priority Critical patent/CN108090217A/en
Publication of CN108090217A publication Critical patent/CN108090217A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/56Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The present invention relates to a kind of method and system that meteorological grating image is converted to WMS figure layers, wherein method includes:Meteorological grating image is converted into vector image;Vector image is write into database, generates WMS figure layers;Online editing is carried out to WMS figure layers.Meteorological grating image is converted by vector image by the present invention and is then issued as WMS figure layers, realizes the online editing to meteorological image.

Description

A kind of method and system that meteorological grating image is converted to WMS figure layers
Technical field
The present invention relates to technical field of image processing, and in particular to a kind of that meteorological grating image is converted to WMS figure layers Method and system.
Background technology
Since web occur since, computer picture just plays an important role wherein, it may be said that be exactly by In the appearance of the multimedia elements such as various images and audio visual, people's note that just bringing up greatly are attracted The prosperity of internet today.The image used on web can be divided into two kinds of grating image and vector image.At present absolutely mostly Several web graph pictures is grating image, such as:GIF, JPEG and PNG etc..
Grating image is to describe image with bitmap dot matrix, and this method has some limitations:First, grating image Must information including each point show the image, therefore image file is all bigger and be unfavorable for network under normal conditions Transmission.Secondly, grating image does not have " intelligent ", themselves " can not carry " information that can be searched.In addition, grid Image can not carry out direct editing, and stretching is carried out in the case of can not or else losing data, so as to influence its resolution ratio and Color.The characteristics of grating image, causes it that can not well be interacted with user, comprising information content it is seldom.For complexity Expressive ability of the map on web is extremely limited.
And the RELEASE PROBLEM of meteorological image is directed to, since the image of meteorological remote sensing system acquisition is often grating image, by In the grating image itself the characteristics of, when Weather Forecast Information occur and going wrong with actual remote sensing weather information, for meteorology The modification of image is very unfavorable with issuing.
The content of the invention
The present invention is provided and a kind of meteorological grating image is converted to WMS figures for technical problem in the prior art The method of layer, is converted into vector image by meteorological grating image and is then issued as WMS figure layers, realize the online volume to meteorological image Volume.
The technical solution that the present invention solves above-mentioned technical problem is as follows:It is a kind of that meteorological grating image is converted into WMS figure layers Method, comprise the following steps:
Step 1, meteorological grating image is converted into vector image;
Step 2, vector image is write into database, generates WMS figure layers;
Step 3, online editing is carried out to WMS figure layers.
Further, the step 1 includes:
Step 101, binary conversion treatment is carried out to meteorological grating image, obtains the corresponding two-value of the meteorological grating image Figure extracts the border in the different characteristic region of the meteorological grating image;
Step 102, frontier tracing is carried out to the meteorological grating image, it is from node that the meteorological grating image, which is arranged, The line segment or closure lines to set out, and stored with approach vector;
Step 103, in the case where ensureing line segment precision, extra data point is deleted, and does the round and smooth processing of curve;
Step 104, the spatial relationship between segmental arc and polygon is judged, to form complete topological structure and foundation and attribute The relation of data.
Further, the step 101, including:
Since raster data is expressed by 0~255 different gray values, in order to simplify track algorithm, it is necessary to by 256 2 grayscale of grayscale boil down to, i.e., 0 and 1 two-stage, it is assumed that the gray value of arbitrary grid is G (i, j), threshold value T, then under The meteorological grating image is carried out binary conversion treatment and obtains the corresponding binary map of the meteorological grating image by formula, and according to described The border of the binary map extraction meteorological grating image;Aforesaid operations are repeated, are obtained successively different in the meteorological grating image The border of characteristic area,
Further, further included after the step 101:" layer stripping " is utilized to different characteristic in the meteorological grating image The boundary line in region carries out micronization processes.
Further, in the step 102, when carrying out frontier tracing to the meteorological grating image, searched according to default Since Suo Fangxiang originating grid, scan for eight neighborhoods of Searching point in the case of guarantee trend, chooses ash successively The identical consecutive points of grade are spent for next Searching point, obtain the segmental arc being made of all Searching points or polygon.
Further, the step 103 includes:
Since search is that grid carries out one by one, so the data point for forming the segmental arc or polygon is very intensive, it is Reduction amount of storage, partial data point is deleted in the case where ensureing line segment precision, and deletion rule is as follows:
For three consecutive number strong points A, B, C in segmental arc or polygon a direction, the angle of line segment BA, BC are calculated, If the angle is more than predetermined angle threshold value, and distance is less than pre-determined distance threshold value between AC, then deletes B points, otherwise retain B Point, and round and smooth processing is carried out according to described search direction to AC line segments.
Further, the step 2 includes:
The vector data is included to the map datum of Vector Message according to the generation of geographical spatial positional information;
The map datum is carried out according to the boundary information of vector data to render processing, generates WMS figure layers.
The present invention also provides a kind of system that meteorological grating image is converted to WMS figure layers, including
Format converting module, for meteorological grating image to be converted into vector image;
Figure layer generation module for vector image to be write database, generates WMS figure layers;
Online editing module, for carrying out online editing to WMS figure layers.
Further, the format converting module is specifically used for:
Binary conversion treatment is carried out to meteorological grating image, the corresponding binary map of the meteorological grating image is obtained, extracts institute State the border in the different characteristic region of meteorological grating image;
Frontier tracing is carried out to the meteorological grating image, is the line from node by the meteorological grating image arrangement Section is closed lines, and is stored with approach vector;
In the case where ensureing line segment precision, extra data point is deleted, and does the round and smooth processing of curve;
The spatial relationship between segmental arc and polygon is judged, to form complete topological structure and establish the pass with attribute data System.
The beneficial effects of the invention are as follows:By the invention it is possible to meteorological grating image is converted into vector image and then is sent out Cloth is WMS figure layers, realizes the online editing to meteorological image.
Description of the drawings
Fig. 1 is a kind of method flow diagram that meteorological grating image is converted to WMS figure layers provided by the invention;
Fig. 2 is a kind of system construction drawing that meteorological grating image is converted to WMS figure layers provided by the invention.
Specific embodiment
The principle of the present invention and feature are described below in conjunction with example, the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the present invention.
Fig. 1 is a kind of method flow diagram that meteorological grating image is converted to WMS figure layers provided by the invention, such as Fig. 1 institutes Show, a kind of method that meteorological grating image is converted to WMS figure layers comprises the following steps:
Step 1, meteorological grating image is converted into vector image;
Step 2, vector image is write into database, generates WMS figure layers;
Step 3, online editing is carried out to WMS figure layers.
Further, the step 1 includes:
Step 101, binary conversion treatment is carried out to meteorological grating image, obtains the corresponding two-value of the meteorological grating image Figure extracts the border in the different characteristic region of the meteorological grating image;
Step 102, frontier tracing is carried out to the meteorological grating image, it is from node that the meteorological grating image, which is arranged, The line segment or closure lines to set out, and stored with approach vector;
Step 103, in the case where ensureing line segment precision, extra data point is deleted, and does the round and smooth processing of curve;
Step 104, the spatial relationship between segmental arc and polygon is judged, to form complete topological structure and foundation and attribute The relation of data.
Further, the step 101, including:
Since raster data is expressed by 0~255 different gray values, in order to simplify track algorithm, it is necessary to by 256 2 grayscale of grayscale boil down to, i.e., 0 and 1 two-stage, it is assumed that the gray value of arbitrary grid is G (i, j), threshold value T, then under The meteorological grating image is carried out binary conversion treatment and obtains the corresponding binary map of the meteorological grating image by formula, and according to described The border of the binary map extraction meteorological grating image;Aforesaid operations are repeated, are obtained successively different in the meteorological grating image The border of characteristic area,
Further, further included after the step 101:" layer stripping " is utilized to different characteristic in the meteorological grating image The boundary line in region carries out micronization processes.
Further, in the step 102, when carrying out frontier tracing to the meteorological grating image, searched according to default Since Suo Fangxiang originating grid, scan for eight neighborhoods of Searching point in the case of guarantee trend, chooses ash successively The identical consecutive points of grade are spent for next Searching point, obtain the segmental arc being made of all Searching points or polygon.
Further, the step 103 includes:
Since search is that grid carries out one by one, so the data point for forming the segmental arc or polygon is very intensive, it is Reduction amount of storage, partial data point is deleted in the case where ensureing line segment precision, and deletion rule is as follows:
For three consecutive number strong points A, B, C in segmental arc or polygon a direction, the angle of line segment BA, BC are calculated, If the angle is more than predetermined angle threshold value, and distance is less than pre-determined distance threshold value between AC, then deletes B points, otherwise retain B Point, and round and smooth processing is carried out according to described search direction to AC line segments.
Further, the step 2 includes:
The vector data is included to the map datum of Vector Message according to the generation of geographical spatial positional information;
The map datum is carried out according to the boundary information of vector data to render processing, generates WMS figure layers.
The present invention also provides a kind of system that meteorological grating image is converted to WMS figure layers, as shown in Fig. 2, including
Format converting module, for meteorological grating image to be converted into vector image;
Figure layer generation module for vector image to be write database, generates WMS figure layers;
Online editing module, for carrying out online editing to WMS figure layers.
Further, the format converting module is specifically used for:
Binary conversion treatment is carried out to meteorological grating image, the corresponding binary map of the meteorological grating image is obtained, extracts institute State the border in the different characteristic region of meteorological grating image;
Frontier tracing is carried out to the meteorological grating image, is the line from node by the meteorological grating image arrangement Section is closed lines, and is stored with approach vector;
In the case where ensureing line segment precision, extra data point is deleted, and does the round and smooth processing of curve;
The spatial relationship between segmental arc and polygon is judged, to form complete topological structure and establish the pass with attribute data System.
By the invention it is possible to then meteorological grating image is converted into vector image is issued as WMS figure layers, realize to gas As the online editing of image.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modifications, equivalent replacements and improvements are made should all be included in the protection scope of the present invention.

Claims (9)

  1. A kind of 1. method that meteorological grating image is converted to WMS figure layers, which is characterized in that comprise the following steps:
    Step 1, meteorological grating image is converted into vector image;
    Step 2, vector image is write into database, generates WMS figure layers;
    Step 3, online editing is carried out to WMS figure layers.
  2. 2. a kind of method that meteorological grating image is converted to WMS figure layers according to claim 1, which is characterized in that described Step 1 includes:
    Step 101, binary conversion treatment is carried out to meteorological grating image, obtains the corresponding binary map of the meteorological grating image, carry Take the border in the different characteristic region of the meteorological grating image;
    Step 102, frontier tracing is carried out to the meteorological grating image, it is from node that the meteorological grating image, which is arranged, Line segment or be closed lines, and stored with approach vector;
    Step 103, in the case where ensureing line segment precision, extra data point is deleted, and does the round and smooth processing of curve;
    Step 104, the spatial relationship between segmental arc and polygon is judged, to form complete topological structure and foundation and attribute data Relation.
  3. 3. a kind of method that meteorological grating image is converted to WMS figure layers according to claim 2, which is characterized in that described Step 101, including:
    Since raster data is expressed by 0~255 different gray values, in order to simplify track algorithm, it is necessary to by 256 grayscale 2 grayscale of boil down to, i.e., 0 and 1 two-stage, it is assumed that the gray value of arbitrary grid is G (i, j), threshold value T, then according to the following formula will The meteorology grating image carries out binary conversion treatment and obtains the corresponding binary map of the meteorological grating image, and according to the two-value The border of the figure extraction meteorological grating image;Aforesaid operations are repeated, obtain different characteristic in the meteorological grating image successively The border in region
    <mrow> <mi>G</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <mn>1</mn> </mtd> <mtd> <mrow> <mi>G</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>&amp;GreaterEqual;</mo> <mi>T</mi> </mrow> </mtd> </mtr> <mtr> <mtd> <mn>0</mn> </mtd> <mtd> <mrow> <mi>G</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>&amp;le;</mo> <mi>T</mi> </mrow> </mtd> </mtr> </mtable> </mfenced> <mo>.</mo> </mrow>
  4. 4. a kind of method that meteorological grating image is converted to WMS figure layers according to claim 3, which is characterized in that in institute It is further included after stating step 101:The boundary line in different characteristic region in the meteorological grating image is carried out using " layer stripping " thin Change is handled.
  5. 5. a kind of method that meteorological grating image is converted to WMS figure layers according to claim 2, which is characterized in that described In step 102, when carrying out frontier tracing to the meteorological grating image, according to the default direction of search, opened from starting grid Begin, eight neighborhoods of Searching point are scanned in the case of guarantee trend, choosing the identical consecutive points of gray level successively is Next Searching point obtains the segmental arc being made of all Searching points or polygon.
  6. 6. a kind of method that meteorological grating image is converted to WMS figure layers according to claim 5, which is characterized in that described Step 103 includes:
    Since search is that grid carries out one by one, so the data point for forming the segmental arc or polygon is very intensive, in order to subtract Few amount of storage, partial data point is deleted in the case where ensureing line segment precision, and deletion rule is as follows:
    For three consecutive number strong points A, B, C in segmental arc or polygon a direction, the angle of line segment BA, BC are calculated, if The angle is more than predetermined angle threshold value, and distance is less than pre-determined distance threshold value between AC, then deletes B points, otherwise retains B points, And round and smooth processing is carried out according to described search direction to AC line segments.
  7. 7. a kind of method that meteorological grating image is converted to WMS figure layers according to claim 5, which is characterized in that described Step 2 includes:
    The vector data is included to the map datum of Vector Message according to the generation of geographical spatial positional information;
    The map datum is carried out according to the boundary information of vector data to render processing, generates WMS figure layers.
  8. 8. a kind of system that meteorological grating image is converted to WMS figure layers, which is characterized in that including
    Format converting module, for meteorological grating image to be converted into vector image;
    Figure layer generation module for vector image to be write database, generates WMS figure layers;
    Online editing module, for carrying out online editing to WMS figure layers.
  9. 9. a kind of system that meteorological grating image is converted to WMS figure layers according to claim 8, which is characterized in that described Format converting module is specifically used for:
    Binary conversion treatment is carried out to meteorological grating image, the corresponding binary map of the meteorological grating image is obtained, extracts the gas As the border in the different characteristic region of grating image;
    Frontier tracing is carried out to the meteorological grating image, the meteorological grating image is arranged be from the line segment of node or Lines are closed, and are stored with approach vector;
    In the case where ensureing line segment precision, extra data point is deleted, and does the round and smooth processing of curve;
    The spatial relationship between segmental arc and polygon is judged, to form complete topological structure and establish the relation with attribute data.
CN201711483300.XA 2017-12-29 2017-12-29 A kind of method and system that meteorological grating image is converted to WMS figure layers Pending CN108090217A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711483300.XA CN108090217A (en) 2017-12-29 2017-12-29 A kind of method and system that meteorological grating image is converted to WMS figure layers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711483300.XA CN108090217A (en) 2017-12-29 2017-12-29 A kind of method and system that meteorological grating image is converted to WMS figure layers

Publications (1)

Publication Number Publication Date
CN108090217A true CN108090217A (en) 2018-05-29

Family

ID=62181221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711483300.XA Pending CN108090217A (en) 2017-12-29 2017-12-29 A kind of method and system that meteorological grating image is converted to WMS figure layers

Country Status (1)

Country Link
CN (1) CN108090217A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111429548A (en) * 2020-02-25 2020-07-17 合肥四相至新科技有限公司 Digital map generation method and system
CN111612869A (en) * 2019-02-22 2020-09-01 中国石油化工股份有限公司 Method for analyzing geological mapping based on grid data
CN112417080A (en) * 2020-12-11 2021-02-26 南京信息工程大学 Elastic design method of meteorological grid
CN112698666A (en) * 2021-03-24 2021-04-23 南京信息工程大学 Aircraft route optimization method based on meteorological grid

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080309676A1 (en) * 2007-06-14 2008-12-18 Microsoft Corporation Random-access vector graphics
CN101493329A (en) * 2008-01-23 2009-07-29 华东师范大学 Multiple target point path planning method and device
CN101751449A (en) * 2009-09-16 2010-06-23 中国科学院计算技术研究所 Spatial overlap analysis method and system used in geographic information system
CN102332168A (en) * 2011-09-08 2012-01-25 南京大学 V (Voronoi) diagram-based raster map vectorization method
CN102968497A (en) * 2012-12-04 2013-03-13 北京世纪高通科技有限公司 Method and system for dynamically processing data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080309676A1 (en) * 2007-06-14 2008-12-18 Microsoft Corporation Random-access vector graphics
CN101493329A (en) * 2008-01-23 2009-07-29 华东师范大学 Multiple target point path planning method and device
CN101751449A (en) * 2009-09-16 2010-06-23 中国科学院计算技术研究所 Spatial overlap analysis method and system used in geographic information system
CN102332168A (en) * 2011-09-08 2012-01-25 南京大学 V (Voronoi) diagram-based raster map vectorization method
CN102968497A (en) * 2012-12-04 2013-03-13 北京世纪高通科技有限公司 Method and system for dynamically processing data

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111612869A (en) * 2019-02-22 2020-09-01 中国石油化工股份有限公司 Method for analyzing geological mapping based on grid data
CN111612869B (en) * 2019-02-22 2023-07-11 中国石油化工股份有限公司 Analysis method for geological mapping based on raster data
CN111429548A (en) * 2020-02-25 2020-07-17 合肥四相至新科技有限公司 Digital map generation method and system
CN111429548B (en) * 2020-02-25 2023-04-25 合肥四相至新科技有限公司 Digital map generation method and system
CN112417080A (en) * 2020-12-11 2021-02-26 南京信息工程大学 Elastic design method of meteorological grid
CN112698666A (en) * 2021-03-24 2021-04-23 南京信息工程大学 Aircraft route optimization method based on meteorological grid
CN112698666B (en) * 2021-03-24 2021-07-06 南京信息工程大学 Aircraft route optimization method based on meteorological grid

Similar Documents

Publication Publication Date Title
CN108090217A (en) A kind of method and system that meteorological grating image is converted to WMS figure layers
US8238666B2 (en) Recognition of parameterised shapes from document images
CN109635883A (en) The Chinese word library generation method of the structural information guidance of network is stacked based on depth
US7991233B2 (en) Method and apparatus for dynamic connector analysis
US20070230810A1 (en) Image-processing apparatus, image-processing method, and computer program used therewith
CN109146991B (en) Picture format conversion method, device, equipment and storage medium
CN113628291B (en) Multi-shape target grid data vectorization method based on boundary extraction and combination
US20190102615A1 (en) System and method for capturing and interpreting images into triple diagrams
CN110180186A (en) A kind of topographic map conversion method and system
CN105335469A (en) Method and device for image matching and retrieving
CN112837210B (en) Multi-shape variable-style face cartoon automatic generation method based on feature map segmentation
CN108829711A (en) A kind of image search method based on multi-feature fusion
CN105260428A (en) Picture processing method and apparatus
CN112819837A (en) Semantic segmentation method based on multi-source heterogeneous remote sensing image
US20230162409A1 (en) System and method for generating images of the same style based on layout
Xiu et al. Dynamic-scale graph convolutional network for semantic segmentation of 3d point cloud
CN112802048B (en) Method and device for generating layer generation countermeasure network with asymmetric structure
San et al. Extracting contour lines from scanned topographic maps
JP2005259017A (en) Image processing apparatus, image processing program and storage medium
CN112434660B (en) High-resolution remote sensing image ground data set manufacturing method based on segmentation algorithm
Yang et al. Street Layout Design via Conditional Adversarial Learning
Hong et al. Advances in Multimedia Information Processing–PCM 2018: 19th Pacific-Rim Conference on Multimedia, Hefei, China, September 21-22, 2018, Proceedings, Part III
KR100491723B1 (en) Method of rendering a digital terrain model in geographic information system
Tofani et al. Segmentation of text from color map images
CN113536432A (en) Village house layout method based on prediction network, storage medium and terminal equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180529

RJ01 Rejection of invention patent application after publication