CN110515612A - The quick development library of backstage drawing based on Cartopy - Google Patents

The quick development library of backstage drawing based on Cartopy Download PDF

Info

Publication number
CN110515612A
CN110515612A CN201910778748.7A CN201910778748A CN110515612A CN 110515612 A CN110515612 A CN 110515612A CN 201910778748 A CN201910778748 A CN 201910778748A CN 110515612 A CN110515612 A CN 110515612A
Authority
CN
China
Prior art keywords
cartopy
configuration file
library
quick development
backstage
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
CN201910778748.7A
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.)
Image Collection Zhiyuan (wuhan) Technology Co Ltd
Original Assignee
Image Collection Zhiyuan (wuhan) Technology Co 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 Image Collection Zhiyuan (wuhan) Technology Co Ltd filed Critical Image Collection Zhiyuan (wuhan) Technology Co Ltd
Priority to CN201910778748.7A priority Critical patent/CN110515612A/en
Publication of CN110515612A publication Critical patent/CN110515612A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses the quick development libraries of backstage drawing based on Cartopy, including Python, MatPlotlib, Cartopy and JSON, use the Python as core exploitation code, use the MatPlotlib as basic draw library, use the Cartopy as geography information draw library, uses the JSON format as configuration file;It draws the operating method of quick development library on the backstage based on Cartopy are as follows: step S1: program first parses configuration file, step S2: reading corresponding data according to configuration file and draws.Step S3: All Layers are configured in a configuration file, step S4: goes out project as figure demand class, directly multiplexing configuration file;Step S5: Python will be used to develop.Big data interface and weather bureau's Various types of data are docked in the invention, form reusable data parser, all kinds of meteorological common complex charts are accumulated to show, the time elapses at any time, more and more common figure layer configuration will be had to be accumulated by, the exploitation amount for needing to put into project also can be fewer and fewer, saves research and development cost.

Description

The quick development library of backstage drawing based on Cartopy
Technical field
The present invention relates to quick development library technical fields of drawing from the background, and the backstage specially based on Cartopy is drawn quick Development library.
Background technique
Currently, disclosed open source draw library using trouble, configuration complexity, and Chinese is not supported in primary library, when in use not Conducive to quick exploitation.When predecessor company's meteorology item types diversification, the demand faced is also various, but meteorological data is born It is unable to do without patterned show.
Although current frame is increasingly mature, many projects for periodically drawing various meteorological charts from the background Shape still has larger demand.Under this demand, it is necessary to be abstracted to various meteorological datas, various exhibition methods are carried out It is abstract, drawing system is brought out after finally constructing a set of suitable meteorological project.
Summary of the invention
The purpose of the present invention is to provide the quick development libraries of backstage drawing based on Cartopy, to solve existing technology Defect and inaccessiable technical requirements.
To achieve the above object, the quickly exploitation the invention provides the following technical scheme: the backstage based on Cartopy is drawn Library, including Python, MatPlotlib, Cartopy and JSON use the Python as core exploitation code, use institute MatPlotlib is stated as basic draw library, uses the Cartopy as geography information draw library, uses the JSON format As configuration file;It draws the operating method of quick development library on the backstage based on Cartopy are as follows: step S1: program first parses Step S2: configuration file reads corresponding data according to configuration file and draws.Step S3: match All Layers at one It sets in file and configures, step S4: going out project as figure demand class, directly multiplexing configuration file;Step S5: Python language will be used Speech is developed, and open source is drawn and supported based on data packet.
Preferably, which does not face some specific meteorological data format, by defining data Interface detaches data format in a manner of resolver, core drawing code is supported under without any modification new Data format.
Preferably, entry is configured in the step S2 supports external importing, the configuration file that all kinds of configurations are multiplexed.
Preferably, include that map overlay and rendering order are arranged in the step S3, each figure layer include specify it is common The meteorological common figure renderings such as scatterplot charting, lattice point color in, lattice point fills out value, isopleth, color spot figure, wind field;Certainly including palette Define and be shown as legend;Including supporting setting for the Common graphicals adeditive attributes such as reference axis, customized text, customized Marker It sets;It is arranged including Chinese font.
Preferably, project as the demand class of part is only multiplexed a part in configuration in the step S4.
Preferably, include open source drawing and data packet in the step S5, the open source is drawn and data packet is as base Plinth is supported.
Compared with prior art, beneficial effects of the present invention are as follows:
1. the quick development library that should be drawn based on the backstage of Cartopy can dock big data interface and weather bureau's Various types of data, formed Reusable data parser saves research and development cost.
2. all kinds of meteorological common complex charts of quick development library accumulation that should be drawn based on the backstage of Cartopy are shown, with When the time elapse, it will have more and more that common figure layers configuration is accumulated by, the exploitation amount for needing to put into project also can be more next It is fewer, save research and development cost.
Specific embodiment
Below in conjunction with the present invention, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that Described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on the implementation in the present invention Example, every other embodiment obtained by those of ordinary skill in the art without making creative efforts belong to The scope of protection of the invention.
The present invention provides a kind of technical solution: the quick development library of backstage drawing based on Cartopy, including Python, MatPlotlib, Cartopy and JSON are used the Python as core exploitation code, are made using the MatPlotlib For basic draw library, uses the Cartopy as geography information draw library, use the JSON format as configuration file; It draws the operating method of quick development library on the backstage based on Cartopy are as follows: step S1: program first parses configuration file, step S2: corresponding data are read according to configuration file and are drawn.Step S3: configuring All Layers in a configuration file, Step S4: going out project as figure demand class, directly multiplexing configuration file;Step S5: Python will be used to develop, opened It draws and is supported based on data packet in source.
The quick development library of drawing from the background does not face some specific meteorological data format, will by defining data-interface Data format is detached in a manner of resolver, and core drawing code is supported to new data lattice under without any modification Formula.
Entry is configured in the step S2 supports external importing, the configuration file that all kinds of configurations are multiplexed.
It include that map overlay and rendering order are arranged in the step S3, each figure layer includes that common scatterplot is specified to fill out The meteorological common figure rendering such as figure, lattice point colors in, lattice point fills out value, isopleth, color spot figure, wind field;Including palette it is customized and It is shown as legend;Setting including supporting the Common graphicals adeditive attributes such as reference axis, customized text, customized Marker;Packet Include Chinese font setting.
Project as the demand class of part is only multiplexed a part in configuration in the step S4.
Include open source drawing and data packet in the step S5, the open source drawn and supported based on data packet, Many length can be won, are developed suitable for Python.
Embodiment 1
The backstage quick development library of drawing of the present invention based on Cartopy uses Python as core exploitation code, makes It uses MatPlotlib as basic draw library, uses Cartopy as geography information draw library, use JSON format as configuration File;Not face some specific meteorological data format, by define data-interface, by data format in a manner of resolver into Row detaches, and core drawing code is supported new data format under without any modification, operation step in the present embodiment It is rapid as follows:
Step S1: program first parses configuration file,
Step S2: corresponding data are read according to configuration file and are drawn;
Step S3: configure All Layers in a configuration file;
Step S4: go out project as figure demand class;
Step S5: Python will be used to develop.
Embodiment 2
The backstage quick development library of drawing of the present invention based on Cartopy uses Python as core exploitation code, makes It uses MatPlotlib as basic draw library, uses Cartopy as geography information draw library, use JSON format as configuration File;Not face some specific meteorological data format, by define data-interface, by data format in a manner of resolver into Row detaches, and core drawing code is supported new data format under without any modification, operation step in the present embodiment It is rapid as follows:
Step S1: program first parses configuration file,
Step S2: reading corresponding data according to configuration file and draw, and configuration entry supports external importing, matches all kinds of Set the configuration file of multiplexing;
Step S3: configuring All Layers in a configuration file, including map overlay and rendering order setting, each figure layer It include specifying the meteorological common figure wash with watercolours such as common scatterplot charting, lattice point color in, lattice point fills out value, isopleth, color spot figure, wind field Dye;It is customized and be shown as legend including palette;Including supporting reference axis, customized text, customized Marker etc. common The setting of figure adeditive attribute;It is arranged including Chinese font;
Step S4: going out project as figure demand class, and directly multiplexing configuration file, the similar project of portion requirements are only multiplexed in configuration A part;
Step S5: will use Python to develop, including open source is drawn and data packet, by open source drawing and data It is supported based on packet.
Backstage quick development library of drawing based on Cartopy can dock big data interface and weather bureau's Various types of data, shape At reusable data parser, research and development cost is saved;It accumulates all kinds of meteorological common complex charts and shows that the time pushes away at any time It moves, it will there are more and more common figure layer configurations to be accumulated by, the exploitation amount for needing to put into project also can be fewer and fewer, saves Research and develop cost.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included within the present invention.
In addition, it should be understood that although this specification is described in terms of embodiments, but not each embodiment is only wrapped Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should It considers the specification as a whole, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art The other embodiments being understood that.

Claims (6)

  1. The quick development library 1. backstage based on Cartopy is drawn, it is characterised in that: including Python, MatPlotlib, Cartopy and JSON uses the Python as core exploitation code, using drawing based on the MatPlotlib Library uses the Cartopy as geography information draw library, uses the JSON format as configuration file;This is based on It draws the operating method of quick development library on the backstage of Cartopy are as follows: step S1: program first parses configuration file, step S2: according to Configuration file reads corresponding data and draws;Step S3: configure All Layers in a configuration file, step S4: Project as figure demand class out, directly multiplexing configuration file;Step S5: Python will be used to develop, open source is drawn It is supported with based on data packet.
  2. The quick development library 2. the backstage according to claim 1 based on Cartopy is drawn, it is characterised in that: this draws from the background Scheme quick development library and do not face some specific meteorological data format, by defining data-interface, by data format with resolver Mode detached, core drawing code is supported into new data format under without any modification.
  3. The quick development library 3. the backstage according to claim 1 based on Cartopy is drawn, it is characterised in that: the step Entry is configured in S2 supports external importing, the configuration file that all kinds of configurations are multiplexed.
  4. The quick development library 4. the backstage according to claim 1 based on Cartopy is drawn, it is characterised in that: the step It include that map overlay and rendering order are arranged in S3, each figure layer includes specifying that common scatterplot charting, lattice point color in, lattice point is filled out The meteorological common figure rendering such as value, isopleth, color spot figure, wind field;It is customized and be shown as legend including palette;Including supporting The setting of the Common graphicals adeditive attributes such as reference axis, customized text, customized Marker;It is arranged including Chinese font.
  5. The quick development library 5. the backstage according to claim 1 based on Cartopy is drawn, it is characterised in that: the step Project as the demand class of part is only multiplexed a part in configuration in S4.
  6. The quick development library 6. the backstage according to claim 1 based on Cartopy is drawn, it is characterised in that: the step Include open source drawing and data packet in S5, the open source is drawn and supported based on data packet.
CN201910778748.7A 2019-08-22 2019-08-22 The quick development library of backstage drawing based on Cartopy Pending CN110515612A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910778748.7A CN110515612A (en) 2019-08-22 2019-08-22 The quick development library of backstage drawing based on Cartopy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910778748.7A CN110515612A (en) 2019-08-22 2019-08-22 The quick development library of backstage drawing based on Cartopy

Publications (1)

Publication Number Publication Date
CN110515612A true CN110515612A (en) 2019-11-29

Family

ID=68627212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910778748.7A Pending CN110515612A (en) 2019-08-22 2019-08-22 The quick development library of backstage drawing based on Cartopy

Country Status (1)

Country Link
CN (1) CN110515612A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242408A (en) * 2008-01-18 2008-08-13 南京邮电大学 A construction method for open multi-source data packet capturing
CN102402526A (en) * 2010-09-13 2012-04-04 方正国际软件有限公司 Geographic information database management method and system
CN105069118A (en) * 2015-08-11 2015-11-18 北京思特奇信息技术股份有限公司 GIS configuration-based application scene management method and system
CN107577731A (en) * 2017-08-24 2018-01-12 南京多伦科技股份有限公司 A kind of method and system for accessing different spaces database
CN108133024A (en) * 2017-12-27 2018-06-08 南京市城市规划编制研究中心 Towards the geographical spatial data service integration method of the dynamic configuration of mobile client
CN108255539A (en) * 2017-12-21 2018-07-06 华风象辑(北京)气象科技有限公司 Weather satellite data processing system based on cloud computing and data virtualization
CN109408612A (en) * 2019-01-16 2019-03-01 紫光云数科技有限公司 A kind of map exchange method based on dynamic legend

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242408A (en) * 2008-01-18 2008-08-13 南京邮电大学 A construction method for open multi-source data packet capturing
CN102402526A (en) * 2010-09-13 2012-04-04 方正国际软件有限公司 Geographic information database management method and system
CN105069118A (en) * 2015-08-11 2015-11-18 北京思特奇信息技术股份有限公司 GIS configuration-based application scene management method and system
CN107577731A (en) * 2017-08-24 2018-01-12 南京多伦科技股份有限公司 A kind of method and system for accessing different spaces database
CN108255539A (en) * 2017-12-21 2018-07-06 华风象辑(北京)气象科技有限公司 Weather satellite data processing system based on cloud computing and data virtualization
CN108133024A (en) * 2017-12-27 2018-06-08 南京市城市规划编制研究中心 Towards the geographical spatial data service integration method of the dynamic configuration of mobile client
CN109408612A (en) * 2019-01-16 2019-03-01 紫光云数科技有限公司 A kind of map exchange method based on dynamic legend

Similar Documents

Publication Publication Date Title
CN107292003B (en) Automatic generation method of power grid station wiring diagram
CN101025738B (en) Template-free dynamic website generating method
CN101916192B (en) Multi-language switching method and device for user interface
CN106372040B (en) Intelligent substation configuration file otherness comparison system
CN105138752B (en) Intelligent substation SCD file land parcel change trace differentiation compares and methods of exhibiting
CN106528129A (en) Web application interface generation system and method
CN102799592B (en) The parsing method and system of rich text document
HRP20030524A2 (en) Word-processing document stored in a single xml file
CN102096588A (en) Control-containing page establishing method
CN103064661A (en) Computer monitoring configuration screen extensible makeup language (XML) descriptor system and method
CN105404757B (en) A kind of method of calibration of intelligent substation SCD file standardization level
CN104407863A (en) Abstract control model programming device and method
CN106227716B (en) A kind of system and method for realizing branching selection structure electrical documents editing
CN105373520A (en) Method and device for setting control style attributes
CN106648608A (en) Flexible and convenient flow chart building method
CN104298489A (en) Form reproduction realization method
CN103049260A (en) Method and system for displaying user interface of software at client
CN101295251B (en) Interface issuing method and device
CN105373381A (en) Method and system for making launchers of mobile terminal
CN102662921A (en) Document processing method, device and editor
CN109905432A (en) A kind of the data automatic loading method and system and device of network data list
CN110045956A (en) Configuration method, device, equipment and the readable storage medium storing program for executing of component
CN110515612A (en) The quick development library of backstage drawing based on Cartopy
CN103109289A (en) Web-based script language editing method, system and web client
CN103699478A (en) Test case generation system and test case generation method

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
CB02 Change of applicant information

Address after: No.218-430079, Wuhan New Wuhu science and Technology Park, Wuhan

Applicant after: Xiangji Technology Co.,Ltd.

Address before: No.218-430079, Wuhan New Wuhu science and Technology Park, Wuhan

Applicant before: XIANGJI ZHIYUAN (WUHAN) TECHNOLOGY CO.,LTD.

CB02 Change of applicant information
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191129

WD01 Invention patent application deemed withdrawn after publication