CN109829019A - A kind of data transfer device of vector data, device and electronic equipment - Google Patents

A kind of data transfer device of vector data, device and electronic equipment Download PDF

Info

Publication number
CN109829019A
CN109829019A CN201811513666.1A CN201811513666A CN109829019A CN 109829019 A CN109829019 A CN 109829019A CN 201811513666 A CN201811513666 A CN 201811513666A CN 109829019 A CN109829019 A CN 109829019A
Authority
CN
China
Prior art keywords
area
grid
scanning element
minimum
maximum
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
CN201811513666.1A
Other languages
Chinese (zh)
Other versions
CN109829019B (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.)
Soil And Water Conservation Monitoring Center Of Ministry Of Water Resources
Beijing Datum Science & Technology Development Co Ltd
Original Assignee
Soil And Water Conservation Monitoring Center Of Ministry Of Water Resources
Beijing Datum Science & Technology Development 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 Soil And Water Conservation Monitoring Center Of Ministry Of Water Resources, Beijing Datum Science & Technology Development Co Ltd filed Critical Soil And Water Conservation Monitoring Center Of Ministry Of Water Resources
Priority to CN201811513666.1A priority Critical patent/CN109829019B/en
Publication of CN109829019A publication Critical patent/CN109829019A/en
Application granted granted Critical
Publication of CN109829019B publication Critical patent/CN109829019B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

This application provides a kind of data transfer device of vector data, device and electronic equipments, specially determine maximum grid and minimum grid according to the maximum area of vector data and minimum area;Vector data is scanned according to maximum grid for the first time, obtains multiple cells;The value of cell within vector boundary in vector data is denoted as to the grid attribute value of vector data;Successively reduce the area of scanning element;The cell across vector boundary is scanned again according to the scanning element after diminution, obtains multiple cells;The value of cell within vector boundary is denoted as to the grid attribute value of vector data;And so on.This programme is by gradually reducing scanning element, biggish connected region can be converted with biggish grid to improve computational efficiency, lesser connected region is converted with lesser grid to guarantee conversion accuracy, so that realizing realizes higher computational efficiency in the case where guaranteeing precision.

Description

A kind of data transfer device of vector data, device and electronic equipment
Technical field
The present invention relates to GIS technology fields, more particularly to the data transfer device, device and electronics of a kind of vector data Equipment.
Background technique
In GIS application, many calculating are usually carried out under raster data structure, such as the soil in water and soil conservation industry It corrodes and calculates, it usually needs vector data, such as face figure layer are converted into raster data, will pass through calculating to raster data To final result.During the vector data of large area is converted to raster data, higher calculating is smart in order to obtain Degree, needs to be arranged higher resolution ratio, and conversion in this way causes the computational efficiency of system lower and occupies biggish memory space.
Summary of the invention
In view of this, the present invention provides a kind of data transfer device of vector data, device and electronic equipment, to solve Computational efficiency is improved in the case where meeting required precision.
To solve the above-mentioned problems, the invention discloses a kind of data transfer devices of vector data, comprising steps of
The maximum area and minimum area for calculating vector data to be converted determine maximum gate according to the maximum area Lattice determine minimum grid according to the minimum area, using the maximum grid as scanning element;
The vector data is scanned according to the scanning element, obtains multiple cells;
The value of cell within a vector boundary in the vector data is denoted as to the grid of the vector data Lattice attribute value;
The area of the scanning element is reduced by preset ratio;
The cell across the vector boundary is scanned again according to the scanning element after diminution, obtains multiple units Lattice;
The value of cell within the vector boundary is denoted as to the grid attribute value of the vector data;
The area of the scanning element is judged, if the area of the scanning element is greater than the minimum grid Area then returns to the area step that the scanning element is reduced by preset ratio.
If the area of the scanning element is less than or equal to the area of the minimum grid, the vector edges will be crossed over The maximum area of the cell on boundary is as its grid attribute value.
Optionally, the maximum area is the integral multiple of the minimum area.
Optionally, the maximum area is the integral multiple of the area of the maximum grid;The minimum area be it is described most The integral multiple of the area of small grid.
Optionally, the multiple of the maximum area and the minimum area, with the maximum area and the maximum grid Area multiple, at the relationship of integral multiple;
The multiple of the maximum area and the minimum area, with the area of the minimum area and the minimum grid Multiple, at the relationship of integral multiple.
In addition, additionally providing a kind of data conversion device of vector data, comprising:
Raster symbol-base module, for calculating the maximum area and minimum area of vector data to be converted, according to it is described most Large area determines maximum grid, determines minimum grid according to the minimum area, using the maximum grid as scanning element;
First scan module obtains multiple units for being scanned according to the scanning element to the vector data Lattice;
First logging modle, for the value for the cell being within a vector boundary of the vector data to be denoted as The grid attribute value of the vector data;
Processing module is reduced, for reducing the area of the scanning element by preset ratio;
Second scan module, for being swept again according to the scanning element after diminution to the cell across the vector boundary It retouches, obtains multiple cells;
Second logging modle, for the value for the cell being within the vector boundary to be denoted as the vector data Grid attribute value;
Area judgment module judges for the area to the scanning element, if the area of the scanning element Greater than the area of the minimum grid, then the area step that the scanning element is reduced by preset ratio is returned;
Third logging modle, if the area for the scanning element is less than or equal to the area of the minimum grid, The maximum area of the cell on the vector boundary will then be crossed over as its grid attribute value.
Optionally, the maximum area is the integral multiple of the minimum area.
Optionally, the maximum area is the integral multiple of the area of the maximum grid;The minimum area be it is described most The integral multiple of the area of small grid.
Optionally, the multiple of the maximum area and the minimum area, with the maximum area and the maximum grid Area multiple, at the relationship of integral multiple;
The multiple of the maximum area and the minimum area, with the area of the minimum area and the minimum grid Multiple, at the relationship of integral multiple.
A kind of electronic equipment is additionally provided, including processor, the memory connecting with the processor signal, the storage Device is for storing computer program or instruction, and the processor is for executing the computer program or instruction, so that the electricity Sub- equipment executes data transfer device, and the data transfer device includes the following steps:
The maximum area and minimum area for calculating vector data to be converted determine maximum gate according to the maximum area Lattice determine minimum grid according to the minimum area, using the maximum grid as scanning element;
The vector data is scanned according to the scanning element, obtains multiple cells;
The value of cell within a vector boundary in the vector data is denoted as to the grid of the vector data Lattice attribute value;
The area of the scanning element is reduced by preset ratio;
The cell across the vector boundary is scanned again according to the scanning element after diminution, obtains multiple units Lattice;
The value of cell within the vector boundary is denoted as to the grid attribute value of the vector data;
The area of the scanning element is judged, if the area of the scanning element is greater than the minimum grid Area then returns to the area step that the scanning element is reduced by preset ratio;
If the area of the scanning element is less than or equal to the area of the minimum grid, the vector edges will be crossed over The maximum area of the cell on boundary is as its grid attribute value.
It can be seen from the above technical proposal that this application provides a kind of data transfer device of vector data, device and Electronic equipment specially calculates the maximum area and minimum area of vector data to be converted, is determined according to maximum area maximum Grid determines minimum grid according to minimum area, using maximum grid as scanning element;According to scanning element to vector data into Row scanning, obtains multiple cells;The value of cell within a vector boundary in vector data is denoted as vector number According to grid attribute value;The area of scanning element is reduced by preset ratio;According to the scanning element after diminution to cross over vector edges The cell on boundary scans again, obtains multiple cells;The value of cell within vector boundary is denoted as vector data Grid attribute value;The area of scanning element is judged, if the area of scanning element is greater than the area of minimum grid, Return to the area step that scanning element is reduced by preset ratio;If scanning element is equal to or less than minimum grid, sweared to crossing over The value for measuring the cell on boundary is recorded.By gradually reducing scanning element, various sizes of grid can be pressed to vector data Lattice are handled, i.e., biggish connected region are converted with biggish grid, so as to improve computational efficiency, and for compared with Small connected region can then be converted according to lesser grid, thereby may be ensured that conversion accuracy, guaranteed to realize Higher computational efficiency is realized in the case where precision.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the data transfer device of vector data of the embodiment of the present application;
Fig. 2 is a kind of block diagram of the data conversion device of vector data of the embodiment of the present application;
Fig. 3 is the block diagram of a kind of electronic equipment of the embodiment of the present application.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of flow chart of the data transfer device of vector data of the embodiment of the present application.
Shown in referring to Fig.1, data transfer device provided in this embodiment is used to vector data being converted to corresponding grid Data, raster data include multiple cells, and each cell corresponds to corresponding grid attribute value.The data transfer device packet Include following steps:
S1, maximum grid and minimum grid are determined according to the area of vector data.
Here area refers to the area of the connected region in vector data, in order to which determination is scanned institute to vector data The grid of foundation first calculates the area of connected region in vector data, therefrom finds out maximum area and minimum area, The area of the area in i.e. largest connected region and minimum connected region.In addition, for convenience of calculation, when determining minimum area, The area for not only considering minimum connected region, can make the integral multiple of maximum area minimum area, and such as 4nTimes.
After calculating maximum area and minimum area, according to the area determine scanning based on grid area, one As for, be convenience of calculation, maximum area is determined as the integral multiple of maximum grid by we, such as determines four points of maximum area One of for maximum grid area;Correspondingly, determining that a quarter of minimum area is the area of minimum grid.
After determining maximum grid and minimum grid, tentatively using the maximum grid as scanning element, so as to basis in turn The scanning element is scanned processing to vector data.
S2, vector data is scanned according to respective scan cells.
After determining that the maximum grid is scanning element, vector data to be processed is carried out according to the scanning element preliminary Scanning, to obtain multiple cells.
S3, the grid attribute value for recording each cell.
After obtaining multiple cells, some of them cell is in vector data within vector boundary, some then across More corresponding vector boundary.Here using the value of the cell in the vector boundary as the grid attribute value of the vector data, The grid attribute value is the integer value of the cell in vector boundary in other words.
Following processing is then carried out for the cell across respective vectors boundary.
S4, the area that scanning element is reduced by preset ratio.
When carrying out preliminary scan to vector data, scanning element is the maximum grid initially determined that, in order to swear to leap The cell on amount boundary is handled, and is herein modified scanning element, such as scanning element is reduced into former scanning element A quarter times, using the scanning element after diminution as new scanning element.
S5, the cell across vector boundary is scanned again.
After by scanning element diminution processing, by the scanning element after diminution to locating for the cell across vector boundary Region is scanned again, to obtain multiple cells after multiple diminutions, the multiple cells obtained here still can some lists First lattice are in vector boundary, some can then cross over vector boundary.
The grid attribute value of the cell of S6, record in vector boundary.
For the cell in vector boundary, give the value of the cell as the grid attribute value of vector data Record, to constitute raster data together with aforementioned resulting grid attribute value.
S7, judge whether scanning element is less than minimum grid.
It here is to be compared the area of the scanning element with the area of above-mentioned minimum grid in fact, if the scanning list Member be greater than the minimum grid, then back to it is above-mentioned by preset ratio diminution scanning element area step, if it is less than or be equal to, It does not return again to then, that is, stops the operation being reduced to grid.
S8, the value of the cell across vector boundary is recorded.
I.e. when the area of scanning element is equal to or less than the area of minimum grid, the cell on the vector boundary will be crossed over Maximum area recorded as its grid attribute value.Grid categories all in vector boundary are in what is be previously obtained in this way Property value constitute complete raster data.
It can be seen from the above technical proposal that this application provides a kind of data transfer devices of vector data, specially The maximum area and minimum area for calculating vector data to be converted determine maximum grid according to maximum area, according to minimal face Product determines minimum grid, using maximum grid as scanning element;Vector data is scanned according to scanning element, is obtained multiple Cell;The value of cell within a vector boundary in vector data is denoted as to the grid attribute value of vector data; The area of scanning element is reduced by preset ratio;The cell across vector boundary is swept again according to the scanning element after diminution It retouches, obtains multiple cells;The value of cell within vector boundary is denoted as to the grid attribute value of vector data;To sweeping The area for retouching unit is judged, if the area of scanning element is greater than the area of minimum grid, is returned and is contracted by preset ratio The area step of small scanning element;If scanning element is equal to or less than minimum grid, to the cell across vector boundary Value is recorded.By gradually reducing scanning element, vector data can be handled by various sizes of grid, i.e., for Biggish connected region is converted with biggish grid, so as to improve computational efficiency, and then may be used for lesser connected region To be converted according to lesser grid, conversion accuracy thereby may be ensured that, realize to realize in the case where guaranteeing precision Higher computational efficiency.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Embodiment two
Fig. 2 is a kind of block diagram of the data conversion device of vector data of the embodiment of the present application.
Referring to shown in Fig. 2, data conversion device provided in this embodiment is used to vector data being converted to corresponding grid Data, raster data include multiple cells, and each cell corresponds to corresponding grid attribute value.The data conversion device packet Include raster symbol-base module 10, the first scan module 20, the first logging modle 30, reduce processing module 40, the second scan module 50, Second logging modle 60, area judgment module 70 and third recording unit 80.
Raster symbol-base module is used to determine maximum grid and minimum grid according to the area of vector data.
Here area refers to the area of the connected region in vector data, in order to which determination is scanned institute to vector data The grid of foundation first calculates the area of connected region in vector data, therefrom finds out maximum area and minimum area, The area of the area in i.e. largest connected region and minimum connected region.In addition, for convenience of calculation, when determining minimum area, The area for not only considering minimum connected region, can make the integral multiple of maximum area minimum area, and such as 4nTimes.
After calculating maximum area and minimum area, according to the area determine scanning based on grid area, one As for, be convenience of calculation, maximum area is determined as the integral multiple of maximum grid by we, such as determines four points of maximum area One of for maximum grid area;Correspondingly, determining that a quarter of minimum area is the area of minimum grid.
After determining maximum grid and minimum grid, tentatively using the maximum grid as scanning element, so as to basis in turn The scanning element is scanned processing to vector data.
First scan module is for being scanned vector data according to respective scan cells.
After determining that the maximum grid is scanning element, vector data to be processed is carried out according to the scanning element preliminary Scanning, to obtain multiple cells.
First logging modle is used to record the grid attribute value of each cell.
After obtaining multiple cells, some of them cell is in vector data within vector boundary, some then across More corresponding vector boundary.Here using the value of the cell in the vector boundary as the grid attribute value of the vector data, The grid attribute value is the integer value of the cell in vector boundary in other words.
Following processing is then carried out for the cell across respective vectors boundary.
Reduce the area that processing module is used to reduce scanning element by preset ratio.
When carrying out preliminary scan to vector data, scanning element is the maximum grid initially determined that, in order to swear to leap The cell on amount boundary is handled, and is herein modified scanning element, such as scanning element is reduced into former scanning element A quarter times, using the scanning element after diminution as new scanning element.
Second scan module is used to be scanned the cell across vector boundary again.
After by scanning element diminution processing, by the scanning element after diminution to locating for the cell across vector boundary Region is scanned again, to obtain multiple cells after multiple diminutions, the multiple cells obtained here still can some lists First lattice are in vector boundary, some can then cross over vector boundary.
Second logging modle is used to record the grid attribute value of the cell in vector boundary.
For the cell in vector boundary, give the value of the cell as the grid attribute value of vector data Record, to constitute raster data together with aforementioned resulting grid attribute value.
Area judgment module most descends grid for judging whether scanning element is less than.
It here is to be compared the area of the scanning element with the area of above-mentioned minimum grid in fact, if the scanning list Member is greater than the minimum grid, then controls and reduce processing module by the area of preset ratio diminution scanning element, and swept again Retouch, if it is less than or be equal to, then no longer control reduce processing module diminution processing is carried out to scanning element.
Third logging modle is used to record the value of the cell across vector boundary.
I.e. when the area of scanning element is equal to or less than the area of minimum grid, the cell on the vector boundary will be crossed over Maximum area recorded as its grid attribute value.Grid categories all in vector boundary are in what is be previously obtained in this way Property value constitute complete raster data.
It can be seen from the above technical proposal that this application provides a kind of data conversion devices of vector data, specially The maximum area and minimum area for calculating vector data to be converted determine maximum grid according to maximum area, according to minimal face Product determines minimum grid, using maximum grid as scanning element;Vector data is scanned according to scanning element, is obtained multiple Cell;The value of cell within a vector boundary in vector data is denoted as to the grid attribute value of vector data; The area of scanning element is reduced by preset ratio;The cell across vector boundary is swept again according to the scanning element after diminution It retouches, obtains multiple cells;The value of cell within vector boundary is denoted as to the grid attribute value of vector data;To sweeping The area for retouching unit is judged, if the area of scanning element is greater than the area of minimum grid, is returned and is contracted by preset ratio The area step of small scanning element;If scanning element is equal to or less than minimum grid, to the cell across vector boundary Value is recorded.By gradually reducing scanning element, vector data can be handled by various sizes of grid, i.e., for Biggish connected region is converted with biggish grid, so as to improve computational efficiency, and then may be used for lesser connected region To be converted according to lesser grid, conversion accuracy thereby may be ensured that, realize to realize in the case where guaranteeing precision Higher computational efficiency.
Embodiment three
Fig. 3 is the block diagram of a kind of electronic equipment of the embodiment of the present application.
Referring to shown in Fig. 3, electronic equipment 100 provided in this embodiment specifically can be understood as mobile device, data terminal, The electronic computing devices such as PC, server include at least processor 101 and memory 102, and the two passes through data/address bus 103 are connected.For storing computer program or instruction, processor is then obtained by data/address bus and executes the meter memory Calculation machine program or instruction, so that the electronic equipment executes data transfer device provided by the present application, specific steps are as follows:
The maximum area and minimum area for calculating vector data to be converted determine maximum grid, root according to maximum area Minimum grid is determined according to minimum area, using maximum grid as scanning element;
Vector data is scanned according to scanning element, obtains multiple cells;
The value of cell within a vector boundary in vector data is denoted as to the grid attribute value of vector data;
The area of scanning element is reduced by preset ratio;
The cell across vector boundary is scanned again according to the scanning element after diminution, obtains multiple cells;
The value of cell within vector boundary is denoted as to the grid attribute value of vector data;
The area of scanning element is judged, if the area of scanning element is greater than the area of minimum grid, is returned The area step of scanning element is reduced by preset ratio.
If the area of scanning element is less than or equal to the area of minimum grid, the cell on vector boundary will be crossed over Maximum area is as its grid attribute value.
Scanning element can gradually be reduced by aforesaid operations, can to vector data by various sizes of grid at Reason, i.e., converted biggish connected region with biggish grid, so as to improve computational efficiency, and for lesser connection Region can then be converted according to lesser grid, thereby may be ensured that conversion accuracy, to realize in the feelings for guaranteeing precision Higher computational efficiency is realized under condition.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Technical solution provided by the present invention is described in detail above, specific case used herein is to this hair Bright principle and embodiment is expounded, method of the invention that the above embodiments are only used to help understand and its Core concept;At the same time, for those skilled in the art, according to the thought of the present invention, in specific embodiment and application There will be changes in range, in conclusion the contents of this specification are not to be construed as limiting the invention.

Claims (9)

1. a kind of data transfer device of vector data, which is characterized in that comprising steps of
The maximum area and minimum area for calculating vector data to be converted determine maximum grid, root according to the maximum area Minimum grid is determined according to the minimum area, using the maximum grid as scanning element;
The vector data is scanned according to the scanning element, obtains multiple cells;
The value of cell within a vector boundary in the vector data is denoted as to the grid category of the vector data Property value;
The area of the scanning element is reduced by preset ratio;
The cell across the vector boundary is scanned again according to the scanning element after diminution, obtains multiple cells;
The value of cell within the vector boundary is denoted as to the grid attribute value of the vector data;
The area of the scanning element is judged, if the area of the scanning element is greater than the face of the minimum grid Product then returns to the area step that the scanning element is reduced by preset ratio;
If the area of the scanning element is less than or equal to the area of the minimum grid, the vector boundary will be crossed over The maximum area of cell is as its grid attribute value.
2. data transfer device as described in claim 1, which is characterized in that the maximum area is the whole of the minimum area Several times.
3. data transfer device as claimed in claim 2, which is characterized in that the maximum area is the face of the maximum grid Long-pending integral multiple;The minimum area is the integral multiple of the area of the minimum grid.
4. data transfer device as claimed in claim 3, which is characterized in that times of the maximum area and the minimum area Number, the multiple with the maximum area and the area of the maximum grid, at the relationship of integral multiple;
The multiple of the maximum area and the minimum area, times with the minimum area and the area of the minimum grid Number, at the relationship of integral multiple.
5. a kind of data conversion device of vector data characterized by comprising
Raster symbol-base module, for calculating the maximum area and minimum area of vector data to be converted, according to the largest face Product determines maximum grid, determines minimum grid according to the minimum area, using the maximum grid as scanning element;
First scan module obtains multiple cells for being scanned according to the scanning element to the vector data;
First logging modle, it is described for the value for the cell being within a vector boundary of the vector data to be denoted as The grid attribute value of vector data;
Processing module is reduced, for reducing the area of the scanning element by preset ratio;
Second scan module, for being scanned again according to the scanning element after diminution to the cell across the vector boundary, Obtain multiple cells;
Second logging modle, for the value for the cell being within the vector boundary to be denoted as to the grid of the vector data Attribute value;
Area judgment module judges for the area to the scanning element, if the area of the scanning element is greater than The area of the minimum grid, then return to the area step that the scanning element is reduced by preset ratio;
Third logging modle will if the area for the scanning element is less than or equal to the area of the minimum grid Across the vector boundary cell maximum area as its grid attribute value.
6. data conversion device as claimed in claim 5, which is characterized in that the maximum area is the whole of the minimum area Several times.
7. data conversion device as claimed in claim 6, which is characterized in that the maximum area is the face of the maximum grid Long-pending integral multiple;The minimum area is the integral multiple of the area of the minimum grid.
8. data transfer device as claimed in claim 7, which is characterized in that times of the maximum area and the minimum area Number, the multiple with the maximum area and the area of the maximum grid, at the relationship of integral multiple;
The multiple of the maximum area and the minimum area, times with the minimum area and the area of the minimum grid Number, at the relationship of integral multiple.
9. a kind of electronic equipment, including processor, the memory being connect with the processor signal, which is characterized in that the storage Storage is for storing computer program or instruction, and the processor is for executing the computer program or instruction, so that described Electronic equipment executes data transfer device, and the data transfer device includes the following steps:
The maximum area and minimum area for calculating vector data to be converted determine maximum grid, root according to the maximum area Minimum grid is determined according to the minimum area, using the maximum grid as scanning element;
The vector data is scanned according to the scanning element, obtains multiple cells;
The value of cell within a vector boundary in the vector data is denoted as to the grid category of the vector data Property value;
The area of the scanning element is reduced by preset ratio;
The cell across the vector boundary is scanned again according to the scanning element after diminution, obtains multiple cells;
The value of cell within the vector boundary is denoted as to the grid attribute value of the vector data;
The area of the scanning element is judged, if the area of the scanning element is greater than the face of the minimum grid Product then returns to the area step that the scanning element is reduced by preset ratio;
If the area of the scanning element is less than or equal to the area of the minimum grid, the vector boundary will be crossed over The maximum area of cell is as its grid attribute value.
CN201811513666.1A 2018-12-11 2018-12-11 Data conversion method and device of vector data and electronic equipment Active CN109829019B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811513666.1A CN109829019B (en) 2018-12-11 2018-12-11 Data conversion method and device of vector data and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811513666.1A CN109829019B (en) 2018-12-11 2018-12-11 Data conversion method and device of vector data and electronic equipment

Publications (2)

Publication Number Publication Date
CN109829019A true CN109829019A (en) 2019-05-31
CN109829019B CN109829019B (en) 2021-08-20

Family

ID=66858740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811513666.1A Active CN109829019B (en) 2018-12-11 2018-12-11 Data conversion method and device of vector data and electronic equipment

Country Status (1)

Country Link
CN (1) CN109829019B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111369639A (en) * 2020-02-25 2020-07-03 北京首汽智行科技有限公司 Electronic fence filling method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402728A (en) * 2011-11-23 2012-04-04 中国科学院地理科学与资源研究所 Method for predicting land use space planning and converting simulated space scale
CN102521271A (en) * 2011-11-23 2012-06-27 中国科学院地理科学与资源研究所 Upscaling conversion method for discrete spatial data
CN105741280A (en) * 2016-01-26 2016-07-06 广州市城市规划勘测设计研究院 Fuzzy mathematic vector regional evaluation method and apparatus
CN105956994A (en) * 2016-05-13 2016-09-21 山东理工大学 Graph processing method and device based on rasterized superposition analysis
CN106407682A (en) * 2016-09-18 2017-02-15 北京市土肥工作站 A soil sampling point determining method and device
KR20170078343A (en) * 2015-12-29 2017-07-07 인하대학교 산학협력단 Secure Trajectory Query Processing with Surrogate Vector Model

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402728A (en) * 2011-11-23 2012-04-04 中国科学院地理科学与资源研究所 Method for predicting land use space planning and converting simulated space scale
CN102521271A (en) * 2011-11-23 2012-06-27 中国科学院地理科学与资源研究所 Upscaling conversion method for discrete spatial data
KR20170078343A (en) * 2015-12-29 2017-07-07 인하대학교 산학협력단 Secure Trajectory Query Processing with Surrogate Vector Model
CN105741280A (en) * 2016-01-26 2016-07-06 广州市城市规划勘测设计研究院 Fuzzy mathematic vector regional evaluation method and apparatus
CN105956994A (en) * 2016-05-13 2016-09-21 山东理工大学 Graph processing method and device based on rasterized superposition analysis
CN106407682A (en) * 2016-09-18 2017-02-15 北京市土肥工作站 A soil sampling point determining method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111369639A (en) * 2020-02-25 2020-07-03 北京首汽智行科技有限公司 Electronic fence filling method

Also Published As

Publication number Publication date
CN109829019B (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN109753641B (en) Method and device for changing object position, electronic equipment and storage medium
CN105447035B (en) data scanning method and device
KR102600051B1 (en) Method for modeling real time frequency and voltage variations due to network topology reconfiguration and electronic device thereof
CN106168959A (en) Page layout method and device
CN109829019A (en) A kind of data transfer device of vector data, device and electronic equipment
CN110287361A (en) A kind of personage's picture screening technique and device
CN117368588A (en) Method, device, equipment and storage medium for determining consistency of voltage phase sequence
CN110502832A (en) A kind of method and device of board design
CN108920879A (en) Shift frequency modeling and simulating method and device
CN109522596B (en) Electric diagram generation method and electronic device
CN111967682A (en) Equipment shelving scheme optimizing method and device and terminal equipment
CN108280574A (en) A kind of evaluation method and device of distribution net work structure maturity
CN110209713A (en) Abnormal grid structure recognition methods and device
CN110427405A (en) Data analysing method and Related product based on FE industry internet
KR20200123661A (en) Quantity calculation system for calculation of construction cost of PV system
CN110008291A (en) Data early warning method, device, storage medium and electronic equipment
CN116152277B (en) Map segmentation method and device, electronic equipment and medium
CN115940202A (en) Multi-inverter power distribution control method, device and equipment based on artificial intelligence
US8949762B1 (en) Computer-based modeling of integrated circuit congestion and wire distribution for products and services
CN114520770B (en) Topology diagram generation method, device, equipment and medium of network equipment
CN109086467B (en) I/O unit layout method and device, medium and equipment of programmable logic device
CN105469161A (en) Method for detecting working stages of power grid and detection device
CN110019982B (en) Node coordinate determination method and device
CN117456216A (en) Training method and device of power system state estimation model based on graph technology
CN106157179A (en) The model matching method of a kind of Real-Time Model and system

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