CN105374056A - CGM format map processing method and apparatus - Google Patents

CGM format map processing method and apparatus Download PDF

Info

Publication number
CN105374056A
CN105374056A CN201410438420.8A CN201410438420A CN105374056A CN 105374056 A CN105374056 A CN 105374056A CN 201410438420 A CN201410438420 A CN 201410438420A CN 105374056 A CN105374056 A CN 105374056A
Authority
CN
China
Prior art keywords
width
cgm
form map
length
plotting apparatus
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
CN201410438420.8A
Other languages
Chinese (zh)
Other versions
CN105374056B (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.)
China Petroleum and Natural Gas Co Ltd
Original Assignee
China Petroleum and Natural Gas 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 China Petroleum and Natural Gas Co Ltd filed Critical China Petroleum and Natural Gas Co Ltd
Priority to CN201410438420.8A priority Critical patent/CN105374056B/en
Publication of CN105374056A publication Critical patent/CN105374056A/en
Application granted granted Critical
Publication of CN105374056B publication Critical patent/CN105374056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Generation (AREA)

Abstract

The invention discloses a CGM format map processing method and an apparatus, and belongs to the technical field of CGM format map processing. The method includes: the length and the width of a CGM format map are obtained; when the length and the width of the CGM format map are both greater than the width of a plotter with the maximum width, the CGM format map is divided; when a bigger value of the length and the width of a first CGM format map is greater than and a smaller value is less than or equal to (or both less than or equal to) the width of the plotter with the maximum width, the plotter whose width and the smaller value (or the bigger value) of the length and the width of the first CGM format map have the minimum non-negative difference is selected; the first CGM format map is the CGM format map or the divided CGM format map; and the first CGM format map is sent to the selected plotter. According to the method and the apparatus, the problems of low utilization rate of paper and paper waste are avoided.

Description

A kind of CGM form map disposal route and device
Technical field
The present invention relates to CGM form map processing technology field, particularly a kind of CGM form map disposal route and device.
Background technology
CGM (ComputerGraphicsMetafile, Computer Graphics Metafile) be ISO (InternationalOrganizationforStandardization, ISO (International Standards Organization)) a kind of graphical format of council's definition, be used for describing, store and transmission and device-independent vector, vector and image that both mix.
At present, in petroleum exploration and development geological research, mostly use the map of CGM form.Usually, after employing Zeh drafting system processes, the plotting apparatus that the map of CGM form can be outputted to certain selected size is drawn.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
The size of CGM form map is varied, all adopts the plotting apparatus of same size to draw at every turn, the utilization factor of paper can be caused not high, paper waste.And if drawing all artificially judges CGM form map size and selects the plotting apparatus of corresponding size at every turn, use inconvenience, operability is not strong.
Summary of the invention
The utilization factor of paper can be caused not high in order to solve prior art, the problem of paper waste, embodiments providing a kind of CGM form map disposal route and device.Described technical scheme is as follows:
On the one hand, embodiments provide a kind of CGM form map disposal route, described method comprises:
Obtain length and the width of CGM form map;
When the length of described CGM form map and width are all greater than the width of the maximum plotting apparatus of width, described CGM form map is divided into two identical parts of size along the length of described CGM form map with the direction of the smaller value in width, if the length of the described CGM form map after dividing and width are still greater than the width of the maximum plotting apparatus of described width, then the described CGM form map after division is divided into two identical parts of size along the described length of CGM form map after division again with the direction of the smaller value in width, until the length of described CGM form map after dividing and the smaller value in width are less than or equal to the width of the maximum plotting apparatus of described width,
When the higher value in the length and width of a CGM form map is greater than the width of the maximum plotting apparatus of described width and smaller value in the length of a described CGM form map and width is less than or equal to the width of the maximum plotting apparatus of described width, the difference of the smaller value in the length of width and a described CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number; A described CGM form map is described CGM form map or the described CGM form map after dividing;
When the length of a described CGM form map and width are all less than or equal to the width of the maximum plotting apparatus of described width, the difference of the higher value in the length of width and a described CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number;
A described CGM form map is sent to the described plotting apparatus selected.
In a kind of possible implementation of the present invention, when the smaller value in the length and width of a described CGM form map is the length of a described CGM form map, the difference of the smaller value in the length of described selection width and a described CGM form map and width is the plotting apparatus of minimum nonnegative number, comprising:
By a described CGM form map 90-degree rotation;
The difference of the width of selection width and a described CGM form map is the plotting apparatus of minimum nonnegative number;
When the higher value in the length and width of a described CGM form map is the length of a described CGM form map, the difference of the higher value in the length of described selection width and a described CGM form map and width is the plotting apparatus of minimum nonnegative number, comprising:
By a described CGM form map 90-degree rotation;
The difference of the width of selection width and a described CGM form map is the plotting apparatus of minimum nonnegative number.
Alternatively, the difference of the width of described selection width and a described CGM form map is the plotting apparatus of minimum nonnegative number, comprising:
The width of described plotting apparatus is compared with the width of a described CGM form map successively according to order from small to large;
When the width of described plotting apparatus is greater than the width of a described CGM form map, stop comparing, and be the plotting apparatus of minimum nonnegative number as the difference of the width of width and a described CGM form map using described plotting apparatus.
In the another kind of possible implementation of the present invention, the length of described acquisition CGM form map and width, comprising:
By the fileid.exe program in Zeh drafting system, obtain length and the width of described CGM form map.
Alternatively, the width of described plotting apparatus comprises 24 inches, 36 inches and 42 inches.
On the other hand, embodiments provide a kind of CGM form map treating apparatus, described device comprises:
Acquisition module, for obtaining length and the width of CGM form map;
Divide module, for when the length of described CGM form map and width are all greater than the width of the maximum plotting apparatus of width, described CGM form map is divided into two identical parts of size along the length of described CGM form map with the direction of the smaller value in width, if the length of the described CGM form map after dividing and width are still greater than the width of the maximum plotting apparatus of described width, then the described CGM form map after division is divided into two identical parts of size along the described length of CGM form map after division again with the direction of the smaller value in width, until the length of described CGM form map after dividing and the smaller value in width are less than or equal to the width of the maximum plotting apparatus of described width,
Select module, be greater than the width of the maximum plotting apparatus of described width for the higher value in the length and width of a CGM form map and smaller value in the length of a described CGM form map and width is less than or equal to the width of described width maximum plotting apparatus time, select the difference of the smaller value in the length of width and a described CGM form map and width to be the plotting apparatus of minimum nonnegative number; A described CGM form map is described CGM form map or the described CGM form map after dividing; When the length of a described CGM form map and width are all less than or equal to the width of the maximum plotting apparatus of described width, the difference of the higher value in the length of width and a described CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number;
Output module, for being sent to a described CGM form map the described plotting apparatus selected.
In a kind of possible implementation of the present invention, described selection module comprises:
Rotary unit, for the length that the smaller value in the length and width of a described CGM form map is a described CGM form map, and the higher value in the length of a described CGM form map and width is when being greater than the width of the maximum plotting apparatus of width, or, when the length that the higher value in the length and width of a described CGM form map is a described CGM form map, and the length of a described CGM form map and width are when being all less than or equal to the width of the maximum plotting apparatus of width, by a described CGM form map 90-degree rotation;
Selection unit is the plotting apparatus of minimum nonnegative number for selecting the difference of the width of width and a described CGM form map.
Alternatively, described selection unit is used for,
The width of described plotting apparatus is compared with the width of a described CGM form map successively according to order from small to large;
When the width of described plotting apparatus is greater than the width of a described CGM form map, stop comparing, and be the plotting apparatus of minimum nonnegative number as the difference of the width of width and a described CGM form map using described plotting apparatus.
In the another kind of possible implementation of the present invention, described acquisition module is used for,
By the fileid.exe program in Zeh drafting system, obtain length and the width of described CGM form map.
Alternatively, the width of described plotting apparatus comprises 24 inches, 36 inches and 42 inches.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
The width of the maximum plotting apparatus of width is greater than by the higher value in the length and width of a CGM form map, and the smaller value in the length of a CGM form map and width is when being less than the width of the maximum plotting apparatus of width, the difference of the smaller value in the length of width and a CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number, when the length of a CGM form map and width are all less than or equal to the width of the maximum plotting apparatus of width, the difference of the higher value in the length of width and a CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number, one CGM form map is CGM form map or the CGM form map after dividing, for the plotting apparatus of the size Selection respective width of CGM form map, effective utilization drawing paper, avoid and adopt the plotting apparatus of same size to carry out drawing and causing the utilization factor of paper not high, the problem of paper waste.And, when the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, CGM form map is divided into two identical parts of size along the length of CGM form map with the direction of the smaller value in width, if the length of the CGM form map after dividing and width are still greater than the width of the maximum plotting apparatus of width, then the CGM form map after division is divided into two identical parts of size along the length of CGM form map after division again with the direction of the smaller value in width, until the length of CGM form map after dividing and the smaller value in width are less than or equal to the width of the maximum plotting apparatus of width, by length and the width of adjustment CGM form map, the length of CGM form map and width is made fully to coordinate the width of plotting apparatus, effectively prevent problem when causing the part more than plotting apparatus width to print because the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, paper occurring large area blank, further increase the utilization factor of paper.In addition, whole process is carried out automatically, does not need manual operation, easy to use, workable.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of a kind of CGM form map disposal route that the embodiment of the present invention one provides;
Fig. 2 is the process flow diagram of a kind of CGM form map disposal route that the embodiment of the present invention two provides;
Fig. 3 is the structural representation of a kind of CGM form map treating apparatus that the embodiment of the present invention three provides;
Fig. 4 is the structural representation of a kind of CGM form map treating apparatus that the embodiment of the present invention four provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of CGM form map disposal route, see Fig. 1, the method comprises:
Step 101: the length and the width that obtain CGM form map.
It should be noted that, usually after employing Zeh drafting system processes, CGM form map can be outputted on plotting apparatus and draw, therefore can before CGM form map be outputted to plotting apparatus by Zeh drafting system, obtain CGM form map, and send into plotting apparatus again after CGM form map is processed.
The width of CGM form map is for limiting the length of side on the limit corresponding with the width position of plotting apparatus, and the length of CGM form map is for limiting the length of side on the limit adjacent with the width position of CGM form map.
Step 102: when the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, CGM form map is divided into two identical parts of size along the length of CGM form map with the direction of the smaller value in width, if the length of the CGM form map after dividing and width are still greater than the width of the maximum plotting apparatus of width, then the CGM form map after division is divided into two identical parts of size along the length of CGM form map after division again with the direction of the smaller value in width, until the length of CGM form map after dividing and the smaller value in width are less than or equal to the width of the maximum plotting apparatus of width.
In the present embodiment, step 102 is optional step.After step 101 or step 102 perform, when the higher value in the length and width of a CGM form map is greater than the width of the maximum plotting apparatus of width, and the smaller value in the length of a CGM form map and width is when being less than or equal to the width of the maximum plotting apparatus of width, perform step 103,105; When the length of a CGM form map and width are all less than or equal to the width of the maximum plotting apparatus of width, perform step 104-105.Wherein, a CGM form map is CGM form map or the CGM form map after dividing.
Step 103: select the difference of the smaller value in the length of width and a CGM form map and width to be the plotting apparatus of minimum nonnegative number.
Step 104: select the difference of the higher value in the length of width and a CGM form map and width to be the plotting apparatus of minimum nonnegative number.
Step 105: a CGM form map is sent to the plotting apparatus selected.
Understandably, after plotting apparatus receives a CGM form map, alignd by the Width of the edge plotting apparatus corresponding to the width of a CGM form map, the length direction along a CGM form map is drawn.
The embodiment of the present invention is greater than the width of the maximum plotting apparatus of width by the higher value in the length and width of a CGM form map, and the smaller value in the length of a CGM form map and width is when being less than the width of the maximum plotting apparatus of width, the difference of the smaller value in the length of width and a CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number, when the length of a CGM form map and width are all less than or equal to the width of the maximum plotting apparatus of width, the difference of the higher value in the length of width and a CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number, one CGM form map is CGM form map or the CGM form map after dividing, for the plotting apparatus of the size Selection respective width of CGM form map, effective utilization drawing paper, avoid and adopt the plotting apparatus of same size to carry out drawing and causing the utilization factor of paper not high, the problem of paper waste.And, when the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, CGM form map is divided into two identical parts of size along the length of CGM form map with the direction of the smaller value in width, if the length of the CGM form map after dividing and width are still greater than the width of the maximum plotting apparatus of width, then the CGM form map after division is divided into two identical parts of size along the length of CGM form map after division again with the direction of the smaller value in width, until the length of CGM form map after dividing and the smaller value in width are less than or equal to the width of the maximum plotting apparatus of width, by length and the width of adjustment CGM form map, the length of CGM form map and width is made fully to coordinate the width of plotting apparatus, effectively prevent problem when causing the part more than plotting apparatus width to print because the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, paper occurring large area blank, further increase the utilization factor of paper.In addition, whole process is carried out automatically, does not need manual operation, easy to use, workable.
Embodiment two
Embodiments provide a kind of CGM form map disposal route, see Fig. 2, the method comprises:
Step 201: the length and the width that obtain CGM form map.
In a kind of implementation of the present embodiment, this step 201 can comprise:
By the fileid.exe program in Zeh drafting system, obtain length and the width of CGM form map.
It should be noted that, usually after employing Zeh drafting system processes, CGM form map can be outputted on plotting apparatus and draw, therefore can before CGM form map be outputted to plotting apparatus by Zeh drafting system, obtain CGM form map, and send into plotting apparatus again after CGM form map is processed.
The width of CGM form map is for limiting the length of side on the limit corresponding with the width position of plotting apparatus, and the length of CGM form map is for limiting the length of side on the limit adjacent with the width position of CGM form map.
Step 202: the magnitude relationship judging the width of the plotting apparatus that the length of CGM form map and width and width are maximum.When the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, perform step 203; When the higher value in the length and width of CGM form map is greater than the width of the maximum plotting apparatus of width, and when the smaller value in the length of CGM form map and width is less than or equal to the width of width maximum plotting apparatus, perform step 204; When the length of CGM form map and width are all less than or equal to the width of the maximum plotting apparatus of width, perform step 205.
Step 203: CGM form map is divided into two identical parts of size along the length of CGM form map with the direction of the smaller value in width.If the length of CGM form map after dividing and width are still greater than the width of the maximum plotting apparatus of width, then continue to perform step 203 until smaller value in the length of CGM form map after dividing and width is less than or equal to the width of the maximum plotting apparatus of width.After step 203 performs, perform step 204 or 205.Particularly, when the higher value in the length and width of the CGM form map after dividing is greater than the width of the maximum plotting apparatus of width, and the length of CGM form map after dividing and the smaller value in width are when being less than or equal to the width of the maximum plotting apparatus of width, perform step 204; When the length of CGM form map after dividing and width are all less than or equal to the width of the maximum plotting apparatus of width, perform step 205.
In specific implementation, when the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, first with the set angle of CGM form map (angle as CGM form map lower left) for true origin, according to length and the width of CGM form map, determine the coordinate of cut-point.Particularly, when the length of CGM form map is greater than the width of CGM form map, the coordinate of cut-point length direction is from the width of 0 to CGM form map, and the coordinate of cut-point Width is the half of the length of CGM form map.When the length of CGM form map is less than or equal to the width of CGM form map, the coordinate of cut-point length direction is the half of the width of CGM form map, and the coordinate of cut-point Width is from the length of 0 to CGM form map.Then according to the coordinate of cut-point, CGM form map is divided into two parts that size is identical.If the length of the CGM form map after dividing and width are still all greater than the width of the maximum plotting apparatus of width, then continue to divide according to the method described above.If the length of the CGM form map after dividing and/or width are less than or equal to the width of the maximum plotting apparatus of width, then the CGM form map after division is sent to plotting apparatus respectively.After the CGM form map after division prints by plotting apparatus respectively, artificially the CGM form map after the division of printing is mated.
In actual applications, before execution step 202, can people for checking, determine whether the width that the length of CGM form map and width are all greater than the maximum plotting apparatus of width is that CGM form About Drawing Figures mistake causes.
In the present embodiment, step 202 is optional step.
Step 204: select the difference of the smaller value in the length of width and a CGM form map and width to be the plotting apparatus of minimum nonnegative number.After step 204 performs, perform step 206.
In the present embodiment, a CGM form map is CGM form map or the CGM form map after dividing.
In a kind of implementation of the present embodiment, when the smaller value in the length and width of a CGM form map is the length of a CGM form map, this step 204 can comprise:
By a CGM form map 90-degree rotation;
The difference of the width of selection width and a CGM form map is the plotting apparatus of minimum nonnegative number.
Understandably, by a CGM form map 90-degree rotation, namely exchange the length of a CGM form map and the width of a CGM form map.
In the another kind of implementation of the present embodiment, when the smaller value in the length and width of a CGM form map is the width of a CGM form map, this step 204 can comprise:
The difference of the width of selection width and a CGM form map is the plotting apparatus of minimum nonnegative number.
Alternatively, the difference of the width of selection width and a CGM form map is the plotting apparatus of minimum nonnegative number, can comprise:
The width of plotting apparatus is compared with the width of a CGM form map successively according to order from small to large;
When the width of plotting apparatus is greater than the width of a CGM form map, stop comparing, and be the plotting apparatus of minimum nonnegative number as the difference of the width of width and a CGM form map using plotting apparatus.
Alternatively, the width of plotting apparatus can comprise 24 inches, 36 inches and 42 inches.
Step 205: select the difference of the higher value in the length of width and a CGM form map and width to be the plotting apparatus of minimum nonnegative number.After step 205 performs, perform step 206.
In a kind of implementation of the present embodiment, when the higher value in the length and width of a CGM form map is the length of a CGM form map, this step 205 can comprise:
By a CGM form map 90-degree rotation;
The difference of the width of selection width and a CGM form map is the plotting apparatus of minimum nonnegative number.
In the another kind of implementation of the present embodiment, when the higher value in the length and width of a CGM form map is the width of a CGM form map, this step 205 can comprise:
The difference of the width of selection width and a CGM form map is the plotting apparatus of minimum nonnegative number.
Step 206: a CGM form map is sent to the plotting apparatus selected.
Understandably, after plotting apparatus receives a CGM form map, alignd by the Width of the edge plotting apparatus corresponding to the width of a CGM form map, the length direction along a CGM form map is drawn.
The embodiment of the present invention is greater than the width of the maximum plotting apparatus of width by the higher value in the length and width of a CGM form map, and the smaller value in the length of a CGM form map and width is when being less than the width of the maximum plotting apparatus of width, the difference of the smaller value in the length of width and a CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number, when the length of a CGM form map and width are all less than or equal to the width of the maximum plotting apparatus of width, the difference of the higher value in the length of width and a CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number, one CGM form map is CGM form map or the CGM form map after dividing, for the plotting apparatus of the size Selection respective width of CGM form map, effective utilization drawing paper, avoid and adopt the plotting apparatus of same size to carry out drawing and causing the utilization factor of paper not high, the problem of paper waste.And, when the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, CGM form map is divided into two identical parts of size along the length of CGM form map with the direction of the smaller value in width, if the length of the CGM form map after dividing and width are still greater than the width of the maximum plotting apparatus of width, then the CGM form map after division is divided into two identical parts of size along the length of CGM form map after division again with the direction of the smaller value in width, until the length of CGM form map after dividing and the smaller value in width are less than or equal to the width of the maximum plotting apparatus of width, by length and the width of adjustment CGM form map, the length of CGM form map and width is made fully to coordinate the width of plotting apparatus, effectively prevent problem when causing the part more than plotting apparatus width to print because the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, paper occurring large area blank, further increase the utilization factor of paper.In addition, whole process is carried out automatically, does not need manual operation, easy to use, workable.Further, when the length that the smaller value in the length and width of CGM form map is CGM form map, and the higher value in the length of CGM form map and width is when being greater than the width of the maximum plotting apparatus of width, or, when the length that the higher value in the length and width of CGM form map is CGM form map, and the length of CGM form map and width are when being all less than or equal to the width of the maximum plotting apparatus of width, by CGM form map 90-degree rotation, size for CGM form map adjusts drawing direction automatically, further increases the utilization factor of paper.
Embodiment three
Embodiments provide a kind of CGM form map treating apparatus, see Fig. 3, this device comprises:
Acquisition module 301, for obtaining length and the width of CGM form map;
Divide module 302, for when the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, CGM form map is divided into two identical parts of size along the length of CGM form map with the direction of the smaller value in width, if the length of the CGM form map after dividing and width are still greater than the width of the maximum plotting apparatus of width, then the CGM form map after division is divided into two identical parts of size along the length of CGM form map after division again with the direction of the smaller value in width, until the length of CGM form map after dividing and the smaller value in width are less than or equal to the width of the maximum plotting apparatus of width,
Select module 303, be greater than the width of the maximum plotting apparatus of width for the higher value in the length and width of a CGM form map and smaller value in the length of a CGM form map and width is less than or equal to the width of width maximum plotting apparatus time, select the difference of the smaller value in the length of width and a CGM form map and width to be the plotting apparatus of minimum nonnegative number; One CGM form map is CGM form map or the CGM form map after dividing; When the length of a CGM form map and width are all less than or equal to the width of the maximum plotting apparatus of width, the difference of the higher value in the length of width and a CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number;
Output module 304, for being sent to a CGM form map plotting apparatus selected.
It should be noted that, the width of CGM form map is for limiting the length of side on the limit corresponding with the width position of plotting apparatus, and the length of CGM form map is for limiting the length of side on the limit adjacent with the width position of CGM form map.
The embodiment of the present invention is greater than the width of the maximum plotting apparatus of width by the higher value in the length and width of a CGM form map, and the smaller value in the length of a CGM form map and width is when being less than the width of the maximum plotting apparatus of width, the difference of the smaller value in the length of width and a CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number, when the length of a CGM form map and width are all less than or equal to the width of the maximum plotting apparatus of width, the difference of the higher value in the length of width and a CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number, one CGM form map is CGM form map or the CGM form map after dividing, for the plotting apparatus of the size Selection respective width of CGM form map, effective utilization drawing paper, avoid and adopt the plotting apparatus of same size to carry out drawing and causing the utilization factor of paper not high, the problem of paper waste.And, when the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, CGM form map is divided into two identical parts of size along the length of CGM form map with the direction of the smaller value in width, if the length of the CGM form map after dividing and width are still greater than the width of the maximum plotting apparatus of width, then the CGM form map after division is divided into two identical parts of size along the length of CGM form map after division again with the direction of the smaller value in width, until the length of CGM form map after dividing and the smaller value in width are less than or equal to the width of the maximum plotting apparatus of width, by length and the width of adjustment CGM form map, the length of CGM form map and width is made fully to coordinate the width of plotting apparatus, effectively prevent problem when causing the part more than plotting apparatus width to print because the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, paper occurring large area blank, further increase the utilization factor of paper.In addition, whole process is carried out automatically, does not need manual operation, easy to use, workable.
Embodiment four
Embodiments provide a kind of CGM form map treating apparatus, see Fig. 4, this device comprises:
Acquisition module 401, for obtaining length and the width of CGM form map;
Divide module 402, for when the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, CGM form map is divided into two identical parts of size along the length of CGM form map with the direction of the smaller value in width, if the length of the CGM form map after dividing and width are still greater than the width of the maximum plotting apparatus of width, then the CGM form map after division is divided into two identical parts of size along the length of CGM form map after division again with the direction of the smaller value in width, until the length of CGM form map after dividing and the smaller value in width are less than or equal to the width of the maximum plotting apparatus of width,
Select module 403, be greater than the width of the maximum plotting apparatus of width for the higher value in the length and width of a CGM form map and smaller value in the length of a CGM form map and width is less than or equal to the width of width maximum plotting apparatus time, select the difference of the smaller value in the length of width and a CGM form map and width to be the plotting apparatus of minimum nonnegative number; One CGM form map is CGM form map or the CGM form map after dividing; When the length of a CGM form map and width are all less than or equal to the width of the maximum plotting apparatus of width, the difference of the higher value in the length of width and a CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number;
Output module 404, for being sent to a CGM form map plotting apparatus selected.
It should be noted that, the width of CGM form map is for limiting the length of side on the limit corresponding with the width position of plotting apparatus, and the length of CGM form map is for limiting the length of side on the limit adjacent with the width position of CGM form map.
In a kind of implementation of the present invention, module 403 is selected to comprise:
Rotary unit 4031, for the length that the smaller value in the length and width of a CGM form map is a CGM form map, and the higher value in the length of a CGM form map and width is when being greater than the width of the maximum plotting apparatus of width, or, when the length that the higher value in the length and width of a CGM form map is a CGM form map, and the length of a CGM form map and width are when being all less than or equal to the width of the maximum plotting apparatus of width, by a CGM form map 90-degree rotation;
Selection unit 4032 is the plotting apparatus of minimum nonnegative number for selecting the difference of the width of width and a CGM form map.
Alternatively, selection unit 4032 for,
The width of plotting apparatus is compared with the width of a CGM form map successively according to order from small to large;
When the width of plotting apparatus is greater than the width of a CGM form map, stop comparing, and be the plotting apparatus of minimum nonnegative number as the difference of the width of width and a CGM form map using plotting apparatus.
In another kind of implementation of the present invention, acquisition module 401 may be used for,
By the fileid.exe program in Zeh drafting system, obtain length and the width of CGM form map.
Alternatively, the width of plotting apparatus can comprise 24 inches, 36 inches and 42 inches.
The embodiment of the present invention is greater than the width of the maximum plotting apparatus of width by the higher value in the length and width of a CGM form map, and the smaller value in the length of a CGM form map and width is when being less than the width of the maximum plotting apparatus of width, the difference of the smaller value in the length of width and a CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number, when the length of a CGM form map and width are all less than or equal to the width of the maximum plotting apparatus of width, the difference of the higher value in the length of width and a CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number, one CGM form map is CGM form map or the CGM form map after dividing, for the plotting apparatus of the size Selection respective width of CGM form map, effective utilization drawing paper, avoid and adopt the plotting apparatus of same size to carry out drawing and causing the utilization factor of paper not high, the problem of paper waste.And, when the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, CGM form map is divided into two identical parts of size along the length of CGM form map with the direction of the smaller value in width, if the length of the CGM form map after dividing and width are still greater than the width of the maximum plotting apparatus of width, then the CGM form map after division is divided into two identical parts of size along the length of CGM form map after division again with the direction of the smaller value in width, until the length of CGM form map after dividing and the smaller value in width are less than or equal to the width of the maximum plotting apparatus of width, by length and the width of adjustment CGM form map, the length of CGM form map and width is made fully to coordinate the width of plotting apparatus, effectively prevent problem when causing the part more than plotting apparatus width to print because the length of CGM form map and width are all greater than the width of the maximum plotting apparatus of width, paper occurring large area blank, further increase the utilization factor of paper.In addition, whole process is carried out automatically, does not need manual operation, easy to use, workable.Further, when the length that the smaller value in the length and width of CGM form map is CGM form map, and the higher value in the length of CGM form map and width is when being greater than the width of the maximum plotting apparatus of width, or, when the length that the higher value in the length and width of CGM form map is CGM form map, and the length of CGM form map and width are when being all less than or equal to the width of the maximum plotting apparatus of width, by CGM form map 90-degree rotation, size for CGM form map adjusts drawing direction automatically, further increases the utilization factor of paper.
It should be noted that: the CGM form map treating apparatus that above-described embodiment provides is when processing CGM form map, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the CGM format analysis processing device that above-described embodiment provides and CGM form map disposal route embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a Computer Graphics Metafile CGM form map disposal route, is characterized in that, described method comprises:
Obtain length and the width of CGM form map;
When the length of described CGM form map and width are all greater than the width of the maximum plotting apparatus of width, described CGM form map is divided into two identical parts of size along the length of described CGM form map with the direction of the smaller value in width, if the length of the described CGM form map after dividing and width are still greater than the width of the maximum plotting apparatus of described width, then the described CGM form map after division is divided into two identical parts of size along the described length of CGM form map after division again with the direction of the smaller value in width, until the length of described CGM form map after dividing and the smaller value in width are less than or equal to the width of the maximum plotting apparatus of described width,
When the higher value in the length and width of a CGM form map is greater than the width of the maximum plotting apparatus of described width and smaller value in the length of a described CGM form map and width is less than or equal to the width of the maximum plotting apparatus of described width, the difference of the smaller value in the length of width and a described CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number; A described CGM form map is described CGM form map or the described CGM form map after dividing;
When the length of a described CGM form map and width are all less than or equal to the width of the maximum plotting apparatus of described width, the difference of the higher value in the length of width and a described CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number;
A described CGM form map is sent to the described plotting apparatus selected.
2. method according to claim 1, it is characterized in that, when the smaller value in the length and width of a described CGM form map is the length of a described CGM form map, the difference of the smaller value in the length of described selection width and a described CGM form map and width is the plotting apparatus of minimum nonnegative number, comprising:
By a described CGM form map 90-degree rotation;
The difference of the width of selection width and a described CGM form map is the plotting apparatus of minimum nonnegative number;
When the higher value in the length and width of a described CGM form map is the length of a described CGM form map, the difference of the higher value in the length of described selection width and a described CGM form map and width is the plotting apparatus of minimum nonnegative number, comprising:
By a described CGM form map 90-degree rotation;
The difference of the width of selection width and a described CGM form map is the plotting apparatus of minimum nonnegative number.
3. method according to claim 2, is characterized in that, the difference of the width of described selection width and a described CGM form map is the plotting apparatus of minimum nonnegative number, comprising:
The width of described plotting apparatus is compared with the width of a described CGM form map successively according to order from small to large;
When the width of described plotting apparatus is greater than the width of a described CGM form map, stop comparing, and be the plotting apparatus of minimum nonnegative number as the difference of the width of width and a described CGM form map using described plotting apparatus.
4. the method according to any one of claim 1-3, is characterized in that, the length of described acquisition CGM form map and width, comprising:
By the fileid.exe program in Zeh drafting system, obtain length and the width of described CGM form map.
5. the method according to any one of claim 1-3, is characterized in that, the width of described plotting apparatus comprises 24 inches, 36 inches and 42 inches.
6. a Computer Graphics Metafile CGM form map treating apparatus, is characterized in that, described device comprises:
Acquisition module, for obtaining length and the width of CGM form map;
Divide module, for when the length of described CGM form map and width are all greater than the width of the maximum plotting apparatus of width, described CGM form map is divided into two identical parts of size along the length of described CGM form map with the direction of the smaller value in width, if the length of the described CGM form map after dividing and width are still greater than the width of the maximum plotting apparatus of described width, then the described CGM form map after division is divided into two identical parts of size along the described length of CGM form map after division again with the direction of the smaller value in width, until the length of described CGM form map after dividing and the smaller value in width are less than or equal to the width of the maximum plotting apparatus of described width,
Select module, be greater than the width of the maximum plotting apparatus of described width for the higher value in the length and width of a CGM form map and smaller value in the length of a described CGM form map and width is less than or equal to the width of described width maximum plotting apparatus time, select the difference of the smaller value in the length of width and a described CGM form map and width to be the plotting apparatus of minimum nonnegative number; A described CGM form map is described CGM form map or the described CGM form map after dividing; When the length of a described CGM form map and width are all less than or equal to the width of the maximum plotting apparatus of described width, the difference of the higher value in the length of width and a described CGM form map and width is selected to be the plotting apparatus of minimum nonnegative number;
Output module, for being sent to a described CGM form map the described plotting apparatus selected.
7. device according to claim 6, is characterized in that, described selection module comprises:
Rotary unit, for the length that the smaller value in the length and width of a described CGM form map is a described CGM form map, and the higher value in the length of a described CGM form map and width is when being greater than the width of the maximum plotting apparatus of width, or, when the length that the higher value in the length and width of a described CGM form map is a described CGM form map, and the length of a described CGM form map and width are when being all less than or equal to the width of the maximum plotting apparatus of width, by a described CGM form map 90-degree rotation;
Selection unit is the plotting apparatus of minimum nonnegative number for selecting the difference of the width of width and a described CGM form map.
8. device according to claim 7, is characterized in that, described selection unit is used for,
The width of described plotting apparatus is compared with the width of a described CGM form map successively according to order from small to large;
When the width of described plotting apparatus is greater than the width of a described CGM form map, stop comparing, and be the plotting apparatus of minimum nonnegative number as the difference of the width of width and a described CGM form map using described plotting apparatus.
9. the device according to any one of claim 6-8, is characterized in that, described acquisition module is used for,
By the fileid.exe program in Zeh drafting system, obtain length and the width of described CGM form map.
10. the device according to any one of claim 6-8, is characterized in that, the width of described plotting apparatus comprises 24 inches, 36 inches and 42 inches.
CN201410438420.8A 2014-08-29 2014-08-29 A kind of CGM forms map treating method and apparatus Active CN105374056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410438420.8A CN105374056B (en) 2014-08-29 2014-08-29 A kind of CGM forms map treating method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410438420.8A CN105374056B (en) 2014-08-29 2014-08-29 A kind of CGM forms map treating method and apparatus

Publications (2)

Publication Number Publication Date
CN105374056A true CN105374056A (en) 2016-03-02
CN105374056B CN105374056B (en) 2017-12-05

Family

ID=55376228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410438420.8A Active CN105374056B (en) 2014-08-29 2014-08-29 A kind of CGM forms map treating method and apparatus

Country Status (1)

Country Link
CN (1) CN105374056B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2950258B2 (en) * 1996-11-11 1999-09-20 日本電気株式会社 Charged particle beam drawing method and apparatus
JP5679284B2 (en) * 2010-10-27 2015-03-04 Necエンジニアリング株式会社 Pixel number conversion method, program for executing the same, and pixel number conversion device
CN102624873B (en) * 2012-02-16 2015-07-29 上海华勤通讯技术有限公司 Picture sharing method, system and electronic equipment
CN102760120A (en) * 2012-05-12 2012-10-31 西北工业大学 Engineering drawing layout optimization method

Also Published As

Publication number Publication date
CN105374056B (en) 2017-12-05

Similar Documents

Publication Publication Date Title
US20200372609A1 (en) Super-resolution video reconstruction method, device, apparatus and computer-readable storage medium
DE102013110085B4 (en) NON-VOLATILE MEMORY DEVICE
EP3343337A1 (en) Method and device for controlling screen between terminals, and storage medium
DE102015108004A1 (en) Presenting a user interface on a first device based on detecting a second device in an environment of the first device
CN104699663A (en) Information inputting method and device thereof
CN103970445A (en) Display interface mobile type screenshot method, system and device
CN111144494A (en) Object detection model training method, object detection device, object detection equipment and object detection medium
CN106598508A (en) Solid-state hard disc and write-in arbitrating method and system thereof
CN104765721A (en) Makeup handling method and device
CN103178962B (en) General-purpose fingerprint authentication method and device
CN107992718A (en) molecular docking method and system
CN107766011A (en) Print control program, apparatus and system
US8976373B2 (en) Image processing apparatus, computer-readable storage medium storing program and image processing method
CN108632166A (en) A kind of packet receiving L2 cache method and system based on DPDK
CN105374056A (en) CGM format map processing method and apparatus
DE102015113580A1 (en) Presenting a user interface based on a location of an input to a body part
CN103186513B (en) A kind of method of document format conversion and device
CN110322531B (en) Automatic marking method, system, equipment and storage medium for flat steel support
CN111192339B (en) Geographic position data rendering method and device
US20200218960A1 (en) Convolution operator system to perform concurrent convolution operations
CN103577117A (en) Method and device for data storage
CN101907979A (en) Image processing system
CN109344377B (en) Data processing method, device, electronic equipment and storage medium
CN105426138A (en) Printing system and method for continuously printing wide-format graph in real time
CN101963892B (en) Method and device for printing table data

Legal Events

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