CN102750719B - Region filling graph mapping method and device in weather map - Google Patents

Region filling graph mapping method and device in weather map Download PDF

Info

Publication number
CN102750719B
CN102750719B CN201110250038.0A CN201110250038A CN102750719B CN 102750719 B CN102750719 B CN 102750719B CN 201110250038 A CN201110250038 A CN 201110250038A CN 102750719 B CN102750719 B CN 102750719B
Authority
CN
China
Prior art keywords
data
text data
map
weather
boundary
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.)
Active
Application number
CN201110250038.0A
Other languages
Chinese (zh)
Other versions
CN102750719A (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.)
Beijing Jinsong Chuangyi Technology Co.,Ltd.
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN201110250038.0A priority Critical patent/CN102750719B/en
Publication of CN102750719A publication Critical patent/CN102750719A/en
Application granted granted Critical
Publication of CN102750719B publication Critical patent/CN102750719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a region filling graph mapping method and a device in a weather map. The method comprises steps of acquiring vector data format file Shapefile boundary data; analyzing the Shapefile boundary data and customizing the analyzed Shapefile boundary data as national boundary text data, provincial boundary text data and county administrative area boundary text data; grading the customized national boundary text data, the customized provincial boundary text data and the customized county administrative area boundary text data; and selecting regions required to be filled, filling data after being graded in regions required to be filled and mapping a region filling graph in the weather map. By the aid of Shapefile data which are provided by national administration of surveying and mapping and include national boundary data, provincial boundary data and region boundary data, the region filling graph in the weather map is mapped, the accuracy of the mapped region filling graph is high, the precision is high, and the visual effect is greatly improved.

Description

The method for drafting of weather map and device in a kind of weather-map
Technical field
The present invention relates to the diagram text manufacture technical field in broadcasting and TV field, weather map in more particularly, to a kind of weather-map Method for drafting and device.
Background technology
Outstanding TV packaging makes, can be by cleverly conceiving, the picture of fineness, high-tech Video Composition skill Art, optimal audio effect processing is realizing.There is completely mind blowing and audiovisual impulsive force, play good publicity and marketing is wide The effect accused, improves the audience ratings of TV programme.
Usually use region in weather forecast system and project (as Fill Color), coordinate together with some weather notations, be The broadcast of weather predicting program increases more intuitively effect.
In prior art, the weather information data in Weather Program manufacturing process is substantially under National Meteorological Bureau The micaps normal data sent out, wherein micaps the 9th class data namely map lines data can provide the provincial boundaries number in the whole nation According to, but inventor is in implementing the present invention, it may, find that prior art has a following technical problem:
The provincial boundaries data that micaps the 9th class data is provided is not fine, when map is amplified to somewhere rank, from The quantity of scatterplot is insufficient, and geographical limits are sufficiently oily, affects visual effect.
There is provided by China's National Bureau of Surveying and Mapping and include national boundary data, provincial boundaries data and area boundary data The fineness of shapefile is big, and degree of accuracy is high, but existing Weather Program does not utilize shapefile data in making.
Content of the invention
In order to solve the shortcoming of above-mentioned prior art, the main object of the present invention is to provide region in a kind of weather-map to fill out Fill method for drafting and the device of figure, using the vector data lattice including national boundary data, provincial boundaries data and area boundary data Formula file shapefile carries out the drafting of weather map in weather-map, so that vision in the area filling in weather-map Effect more intuitively projects.
In order to achieve the above object, the invention provides in a kind of weather-map weather map method for drafting, specifically Including:
Obtain vector data form file shapefile data boundary;
Parse described shapefile data boundary and be customized for national boundaries text data, provincial boundaries text data and row at county level Administrative division margin text data;
Described self-defining national boundaries text data, provincial boundaries text data and administrative areas at the county level's margin text data are carried out point Level;
According to user's request select need filling region, and by classification after described national boundaries text data, described provincial boundaries Text data and described administrative areas at the county level margin text data are filled into the described region needing filling;
Draw the weather map in weather-map according to the region after filling.
Another aspect of the present invention additionally provides a kind of device drawing weather map in weather-map, this device bag Include:
Data boundary acquiring unit, for obtaining vector data form file shapefile data boundary;
Data boundary resolution unit, for parse described shapefile data boundary be self-defining national boundaries text data, Provincial boundaries text data and administrative areas at the county level's margin text data;
Classification construction unit, for by described self-defining national boundaries text data, provincial boundaries text data and administrative areas at the county level Margin text data is classified;
Weather map drawing unit, for according to user's request select need filling region, and by classification after institute State national boundaries text data, described provincial boundaries text data and described administrative areas at the county level margin text data be filled into described need fill Region;Draw the weather map in weather-map according to the region after filling.
Utilize China's National Bureau of Surveying and Mapping to provide in the present invention and include national boundary data, provincial boundaries data and area boundary data Shapefile data carry out the drafting of weather map in weather-map, draw out weather map fineness is big, accurately Degree is high, substantially increases visual effect.
Brief description
For the technical scheme of the clearer explanation embodiment of the present invention, below will be to required use in embodiment description Accompanying drawing be briefly described it is clear that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill of field, on the premise of not paying creative work, can also be obtained other according to these accompanying drawings Accompanying drawing.
Fig. 1 is the method for drafting flow chart of weather map in a kind of weather-map of offer in the embodiment of the present invention;
Fig. 2 is the method for drafting flow chart of weather map in the weather-map of offer in another embodiment of the present invention;
Fig. 3 is that the national boundaries text data of parsing in the embodiment of the present invention, provincial boundaries text data and administrative areas at the county level border are civilian The content schematic diagram of notebook data;
Fig. 4 is the grading effect figure of three-level tree in the embodiment of the present invention;
Fig. 5 is the formation picture of device drawing weather map in weather-map providing in the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Whole description, it is clear that described embodiment is only a part of embodiment of the present invention, is not all, of embodiment, based on this Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under the premise of not paying creative work Example, broadly falls into the scope of protection of the invention.
A kind of method for drafting of weather map in weather-map is provided, using China national in the embodiment of the present invention one The vector data form file shapefile data that Bureau of Surveying and Mapping provides carries out the filling in region in map, and shape files is A kind of vector data form that esri provides, it does not have topology information, and a shape files is made up of one group of file, wherein Necessary constituent instruments include coordinate file (.shp), index file (.shx) and three files of property file (.dbf).As Fig. 1 Shown, the method includes:
Step s101: obtain vector data form file shapefile data boundary.This data boundary includes Chinese state Boundary text data china_country_p.shp, Chinese provincial boundaries text data china_province_p.shp, CHINESE REGION side Boundary's data china_county_p.shp and corresponding property file dbf file and index file shx file.
Step s102: parse described shapefile data boundary and be customized for national boundaries text data, provincial boundaries text data With administrative areas at the county level's margin text data.
Step s103: by described self-defining national boundaries text data, provincial boundaries text data and administrative areas at the county level's margin text Data is classified;
Step s104: according to user's request select need filling region, and by classification after described national boundaries text data, Described provincial boundaries text data and described administrative areas at the county level margin text data are filled into the described region needing filling, according to filling The weather map in weather-map is drawn in region afterwards.
Utilize China's National Bureau of Surveying and Mapping to provide in the present invention and include national boundary data, provincial boundaries data and area boundary data Shapefile data carry out the drafting of weather map in weather-map, draw out weather map fineness is big, accurately Degree is high, substantially increases visual effect.
The embodiment of the present invention two will be entered using the shapefile data that China's National Bureau of Surveying and Mapping provides in embodiment one The method for drafting of the weather map in row weather-map is further described in detail, and implements as shown in Figure 2:
Step s201: obtain the shapefile data boundary china_country_ that China's National Bureau of Surveying and Mapping provides first P.shp, china_province_p.shp, china_county_p.shp and corresponding dbf and shx file.
Step s202: the form definition of reference standard shapefile, by china_country_p.shp, china_ Province_p.shp and china_county_p.shp resolve to self-defining national boundaries text data, provincial boundaries text data and Administrative areas at the county level's margin text data.
Specifically, the content of the national boundaries text data of parsing, provincial boundaries text data and administrative areas at the county level's margin text data Specifically as shown in figure 3, wherein, polygon number 894 in the data boundary of national boundaries, People's Republic of China's provincial boundaries data boundary is polygon Shape number 924, data polygon number 3366 at county level.
Step s203: by described self-defining national boundaries text data, provincial boundaries text data and administrative areas at the county level's margin text Data be classified after with three-level storage of data structure, construct three-level tree, top for national boundaries data, secondary is provincial boundaries number According to the third level is administrative areas at the county level's data boundary, and specific grading effect figure is as shown in Figure 4.Between above three classification two-by-two It is independent of each other, so classification is advantageous in that while selecting each to fill region, can not affect each rank row The filling effect in administrative division domain.
Step s204: select to need the region of filling, and can respectively regional be carried out with color and the selection of transparency.
Step s205: and by the described national boundaries text data after classification, described provincial boundaries text data and described administration at county level Area's margin text data is filled into the described region needing filling, draws the region in weather-map according to the region after filling and fills out Fill figure.
Preferably, using gdi+'s (graphics device interface, Graphics Device Interface) in this enforcement row The addpolygon method construct weather map of the fillpath method of graphics and graphicspath.
Preferably, the selection state of each administrative region and Fill Color and thoroughly can be changed in drawing weather-map Lightness more intuitively projects effect to reach, and is that Weather Program making increases bright spot.
Utilize China's National Bureau of Surveying and Mapping to provide in the embodiment of the present invention and include national boundary data, provincial boundaries data and regional side The shapefile data of boundary's data carries out the drafting of weather map in weather-map, draws out to obtain weather map fineness Greatly, degree of accuracy is high, substantially increases visual effect.
A kind of device drawing weather map in weather-map, this device such as Fig. 5 is provided in the embodiment of the present invention three It is shown, comprising:
Data boundary acquiring unit 51, for obtaining vector data form file shapefile data boundary.
Wherein, described shapefile data boundary includes: national boundaries text data, provincial boundaries text data and administrative areas at the county level Margin text data and corresponding property file dbf file and index file shx file.
Data boundary resolution unit 52, is self-defining national boundaries textual data for parsing described shapefile data boundary According to, provincial boundaries text data and administrative areas at the county level's margin text data.
Classification construction unit 53, for by described self-defining national boundaries text data, provincial boundaries text data and administration at county level Area's margin text data is classified.
Preferably, by described self-defining national boundaries text data, provincial boundaries text data and administrative areas at the county level's margin text number According to after being classified with three-level storage of data structure, the three-level tree construction of construction be top, secondary and the third level between two-by-two each other Independent.
Weather map drawing unit 54, for selecting to need the region of filling, draws the area filling in weather-map Figure.
Preferably, described area filling drawing unit 54 also includes:
Select subelement 541, for respectively regional is carried out with color and the selection of transparency.
Modification editor's subelement 542, for drawing after the weather map in weather-map, the selection of modification administrative region State, Fill Color and/or transparency.
Utilize China's National Bureau of Surveying and Mapping to provide in the present invention and include national boundary data, provincial boundaries data and area boundary data Shapefile data carry out the drafting of weather map in weather-map, draw out weather map fineness is big, accurately Degree is high, substantially increases visual effect.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be led to Cross software to realize it is also possible to the mode by software plus necessary general hardware platform to be realized.Based on such understanding, this Bright technical scheme can be embodied in the form of software product, and this software product can be stored in non-volatile memories Medium (can be cd-rom, u disk, portable hard drive etc.) in, including some instructions with so that a computer equipment (can be Personal computer, server, or network equipment etc.) execution each embodiment of the present invention described in method.
The above, the only specific embodiment of the present invention, but the feature of the present invention is not limited thereto, it is any that be familiar with should The people of technology in field of the present invention, the change that can readily occur in or modification, all should cover in application of the invention below specially In sharp scope.

Claims (8)

1. in a kind of weather-map the method for drafting of weather map it is characterised in that the method includes:
Obtain vector data form file shapefile data boundary;
Parse described shapefile data boundary and be customized for national boundaries text data, provincial boundaries text data and administrative areas at the county level Margin text data;
Described self-defining national boundaries text data, provincial boundaries text data and administrative areas at the county level's margin text data are classified;
According to user's request select need filling region, and by classification after described national boundaries text data, described provincial boundaries text Data and described administrative areas at the county level margin text data are filled into the described region needing filling;
Draw the weather map in weather-map according to the region after filling.
2. in weather-map as claimed in claim 1 weather map method for drafting it is characterised in that obtain described Shapefile data boundary includes:
National boundaries text data, provincial boundaries text data and administrative areas at the county level's margin text data and corresponding property file dbf literary composition Part and index file shx file.
3. in weather-map as claimed in claim 1 the method for drafting of weather map it is characterised in that will be described self-defined National boundaries text data, provincial boundaries text data and administrative areas at the county level's margin text data deposited with three-level tree construction after being classified Storage, described three-level tree construction particularly as follows:
Top for national boundaries data, secondary is provincial boundaries data, and the third level is administrative areas at the county level's data boundary.
4. in weather-map as claimed in claim 3 weather map method for drafting it is characterised in that described three-level tree knot Structure also includes:
Top, secondary independent of one another two-by-two and the third level between.
5. in weather-map as claimed in claim 1 weather map method for drafting it is characterised in that described selection need Also include while the region of filling:
Respectively regional is carried out with color and the selection of transparency.
6. in weather-map as claimed in claim 1 the method for drafting of weather map it is characterised in that described drafting is meteorological Weather map in map also includes:
The selection state of modification administrative region, Fill Color and/or transparency.
7. a kind of device drawing weather map in weather-map is it is characterised in that this device includes:
Data boundary acquiring unit, for obtaining vector data form file shapefile data boundary;
Data boundary resolution unit, is self-defining national boundaries text data, provincial boundaries for parsing described shapefile data boundary Text data and administrative areas at the county level's margin text data;
Classification construction unit, for by described self-defining national boundaries text data, provincial boundaries text data and administrative areas at the county level border Text data is classified;
Weather map drawing unit, for according to user's request select need filling region, and by classification after described state Boundary's text data, described provincial boundaries text data and described administrative areas at the county level margin text data are filled into the described area needing filling Domain;Draw the weather map in weather-map according to the region after filling.
8. the device drawing weather map in weather-map as claimed in claim 7 is it is characterised in that described area filling Figure drawing unit also includes:
Select subelement, for respectively regional is carried out with color and the selection of transparency;
Modification editor's subelement, for drawing after the weather map in weather-map, changes the selection state of administrative region, fills out Fill color and/or transparency.
CN201110250038.0A 2011-08-29 2011-08-29 Region filling graph mapping method and device in weather map Active CN102750719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110250038.0A CN102750719B (en) 2011-08-29 2011-08-29 Region filling graph mapping method and device in weather map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110250038.0A CN102750719B (en) 2011-08-29 2011-08-29 Region filling graph mapping method and device in weather map

Publications (2)

Publication Number Publication Date
CN102750719A CN102750719A (en) 2012-10-24
CN102750719B true CN102750719B (en) 2017-02-01

Family

ID=47030867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110250038.0A Active CN102750719B (en) 2011-08-29 2011-08-29 Region filling graph mapping method and device in weather map

Country Status (1)

Country Link
CN (1) CN102750719B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512288A (en) * 2015-12-08 2016-04-20 国网浙江省电力公司宁波供电公司 Vector selection set drawing method and system
CN111475592B (en) * 2020-03-04 2023-04-14 中山大学 Method for making basin map facing vector graphic file

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101324896A (en) * 2008-07-24 2008-12-17 中国科学院计算技术研究所 Method for storing and searching vector data and management system thereof
CN101388157A (en) * 2008-09-25 2009-03-18 炬力集成电路设计有限公司 Electronic map display packing, apparatus and equipment
CN101872492A (en) * 2010-06-09 2010-10-27 中国科学院深圳先进技术研究院 Multi-angle map implementation method of three-dimensional simulation city
CN102117491A (en) * 2009-12-30 2011-07-06 新奥特(北京)视频技术有限公司 Texture data drawing method and device in three-dimensional modeling

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8345056B2 (en) * 2008-01-18 2013-01-01 Autodesk, Inc User-directed path-based region filling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101324896A (en) * 2008-07-24 2008-12-17 中国科学院计算技术研究所 Method for storing and searching vector data and management system thereof
CN101388157A (en) * 2008-09-25 2009-03-18 炬力集成电路设计有限公司 Electronic map display packing, apparatus and equipment
CN102117491A (en) * 2009-12-30 2011-07-06 新奥特(北京)视频技术有限公司 Texture data drawing method and device in three-dimensional modeling
CN101872492A (en) * 2010-06-09 2010-10-27 中国科学院深圳先进技术研究院 Multi-angle map implementation method of three-dimensional simulation city

Also Published As

Publication number Publication date
CN102750719A (en) 2012-10-24

Similar Documents

Publication Publication Date Title
Zhang et al. Discovering the tourists' behaviors and perceptions in a tourism destination by analyzing photos' visual content with a computer deep learning model: The case of Beijing
CN101894168B (en) Method and system for layout display of web page of mobile terminal
AU2011261689B2 (en) Adjustable and progressive mobile device street view
CN101694669B (en) Pace note making method, device thereof, pace note making and sharing system
WO2013097625A1 (en) Method for generating electronic map
CN103514626A (en) Method and device for displaying weather information and mobile terminal
US20050216464A1 (en) Automated authoring tool and method to facilitate inclusion of maps and other geographical data into travelogues
Dmowska et al. Comprehensive framework for visualizing and analyzing spatio-temporal dynamics of racial diversity in the entire United States
CN105375392A (en) Helicopter power line inspection realization method and realization system
CN109144652A (en) A kind of view display methods, device, electronic equipment and storage medium
CN106250520A (en) Geographical track query and indication method based on time shaft and device
CN105466413A (en) An augmented-reality real-scene navigation technique based on an intelligent mobile platform and combining GPS
CN102750719B (en) Region filling graph mapping method and device in weather map
CN103500060A (en) Electronic map manufacturing method, electronic map manufacturing device, electronic map displaying method and electronic map displaying device
CN114187420A (en) Real-time online city planning sand table simulation method
CN109120954A (en) Video messaging method for pushing, device, computer equipment and storage medium
CN106886517A (en) Business site selecting method, device and system
CN103902661B (en) Information display method for correcting search result object selected by user on electronic map interface
Bleisch Toward appropriate representations of quantitative data in virtual environments
CN104202407A (en) Video file synchronization method and video file synchronization device
US20130147841A1 (en) Interactive navigation and view selection in digital cartography
CN101227566B (en) Subtitle display method and system
CN103179008A (en) High-definition interactive intelligent measurement and control equipment
CN102737076B (en) A kind of method and system for building geographical vector data data tree
CN104731824A (en) Picture display method and picture display device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211216

Address after: 100195 room 104, floor 1, building 1, courtyard 131, West Fourth Ring North Road, Haidian District, Beijing

Patentee after: Beijing Jinsong Chuangyi Technology Co.,Ltd.

Address before: 100195 new technology building, 49 Wukesong Road, Haidian District, Beijing

Patentee before: China Digital Video (Beijing) Co.,Ltd.

TR01 Transfer of patent right