Background
In the project implementation process, an OSP system is used for managing the external line resources of the client and guiding the implementation of FTTH (Fiber to the Home, i.e. Fiber to the Home is directly connected to the Home). The OSP is an outside line system capable of displaying a model (resource) on a map according to latitude and longitude information of the model. The physical address where the model (resource) passes, the buildings and facilities passing, and the geographic environment of roads, rivers and the like which a resource needs to pass to a target position can be seen through the OSP. Based on the OSP system, an operator can visually see the required construction resources such as: the manhole, the geographic position of the pipeline section, the surrounding geographic conditions and the association condition among equipment resources. However, in practical applications, the pipeline segment has more related peripheral geographic resources, and may cross from one block to another, and a map object containing geographic information of the whole pipeline segment cannot be obtained under the condition of a high scaling scale.
The existing map printing function can only acquire the map displayed on the current screen through screen capture, and although the map can be zoomed to acquire a larger range of printing effect, the resources displayed on the zoomed map are reduced and various geographical position information such as: road names, cell names, building names and the like are all reduced, and the accuracy of positioning construction positions by a construction team is affected. And such a map printing function can only ensure that the captured map picture is completely presented on the a4 paper, and cannot be displayed more clearly.
ArcGIS is a platform for publishing map services. Because the resource number and the precision of the ArcGIS map service displayed under the high-power scale are limited, in the process of drawing derivation, if the range displayed by the current map page is directly derived, the derived drawing can not meet the requirement of construction guidance.
Based on the situation, the invention provides a drawing derivation method based on an external line resource.
Disclosure of Invention
In order to make up for the defects of the prior art, the invention provides a simple and efficient drawing derivation method based on the external line resources.
The invention is realized by the following technical scheme:
a drawing derivation method based on external line resources is characterized by comprising the following steps:
firstly, segmenting a current page map to obtain a sub-map with an accurate longitude and latitude calibration range;
secondly, the background determines the map object of each sub-map through longitude and latitude, and labels are acquired for each map object;
thirdly, splicing the sub-maps to obtain a clear drawing;
fourthly, when the user exports the drawing, after positioning the position of the map to be exported, selecting the type of the drawing to be exported, and generating a drawing exporting task;
and fifthly, executing a drawing exporting task.
In the first step, the whole map page is divided according to the longitude and latitude of the four corners of the map, the length and the width are respectively divided into n parts, and thus n are obtained2Sub-maps with accurate longitude and latitude calibration ranges are identified; n is a natural number not less than 2.
In the third step, the map range displayed by the drawing obtained by splicing the sub-maps is the same as the page, but the scale is reduced by n times, and various geographic position information is clear and visible, so that the construction position can be conveniently confirmed by a construction party.
And in the fourth step, the drawing types comprise overview drawings and standard drawings.
In the fourth step, when the user selects the overview drawing as the type of the drawing to be derived, the drawing derivation task is directly established, the length-width proportion of the drawing to be derived is not required to be selected, the drawing is directly derived by taking the proportion displayed on the current screen as the default drawing proportion, the drawing is suitable for being directly checked on a computer, a drawing with the current screen as the range is derived, and the detailed degree (size) is the current screen n2Double drawings.
In the fourth step, when a user selects a standard drawing as a drawing type to be exported, the OSP enters a drawing exporting mode, a mobile printing frame which is adaptive to the screen and has the same proportion with the selected mode is displayed in a page, the map in the mobile printing frame is automatically zoomed to a certain proportion (for example, 1:4000) by the user and is fixed at the certain proportion, the content of the printing drawing is adjusted by dragging the map under the page, and a drawing exporting task can be established after the position of the map is selected.
In the fourth step, when the derived map does not meet the requirements, the drawing derivation task can be directly deleted, and the derivation is carried out again; and a plurality of drawing exporting tasks can be established at the same time, and the newly established drawing exporting task does not influence the execution of the previous drawing exporting task.
In order to effectively control the number of executed paper export tasks and control the server resources consumed by all the paper export tasks, the export drawing program regularly polls to execute the paper export tasks.
The task information of the drawing derivation task comprises a task name, a drawing type, a task state, a derivation progress, task creation time, task starting time and task ending time;
and in the fifth step, after the export task is established, generating a drawing export task in an unfinished state in the OSP system, and selecting the export drawing for downloading after the drawing import is successful.
The invention has the beneficial effects that: the drawing exporting method based on the outside line resources can not only export drawings corresponding to the size, the length-width ratio and the scale according to different requirements of users, realize the export of engineering to the drawings, but also record personnel for exporting the drawings and start and end time, the export drawings have higher resolution, and can preview the condition of the export drawings and adjust according to actual requirements, thereby providing detailed drawings for guiding construction and report statistics of customers.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention more apparent, the present invention is described in detail below with reference to the embodiments. It should be noted that the specific embodiments described herein are only for explaining the present invention and are not used to limit the present invention.
The drawing exporting method based on the outside line resources comprises the following steps:
firstly, segmenting a current page map to obtain a sub-map with an accurate longitude and latitude calibration range;
secondly, the background determines the map object of each sub-map through longitude and latitude, and labels are acquired for each map object;
thirdly, splicing the sub-maps to obtain a clear drawing;
fourthly, when the user exports the drawing, after positioning the position of the map to be exported, selecting the type of the drawing to be exported, and generating a drawing exporting task;
and fifthly, executing a drawing exporting task.
In the first step, the whole map page is divided according to the longitude and latitude of the four corners of the map, the length and the width are respectively divided into n parts, and thus n are obtained2Sub-maps with accurate longitude and latitude calibration ranges are identified; n is a natural number not less than 2.
In the third step, the map range displayed by the drawing obtained by splicing the sub-maps is the same as the page, but the scale is reduced by n times, and various geographic position information is clear and visible, so that the construction position can be conveniently confirmed by a construction party.
Example (c): when n is 4, the whole map page can be divided into 16 sub-maps with scales reduced by 4 times.
Zooming on the original map affects the number and definition of OSP display resources, but the resource information contained in the derived drawings is not limited to the OSP map display part. Assuming that the scale displayed on the map page is 1:4000, the map range displayed on the finally obtained drawing is the same as the map page, but the scale is changed to 1:1000, so that more geographical information and physical resources can be displayed, and various geographical position information such as street names, cell names and building names can be clearly seen, thereby facilitating the confirmation of the construction position by a constructor.
And in the fourth step, the drawing types comprise overview drawings and standard drawings.
In the fourth step, when the user selects the overview drawing as the type of the drawing to be derived, the drawing derivation task is directly established, the length-width proportion of the drawing to be derived does not need to be selected, the drawing is directly derived by taking the proportion displayed on the current screen as the default drawing proportion, and the drawing derivation task is suitable for being directly checked on a computer and derivedIn the range of the current screen, the detailed level (size) is the current screen n2Double drawings.
Although overview drawings are large in display range, the overview drawings are inconvenient to print into paper materials for viewing, and map information can be lost if the overview drawings are printed directly. And the derived standard drawing display range can be subjected to frame selection when the printing range is selected, the corresponding map range can be selected by moving the printing frame, the derived standard drawing can be directly printed by a printer by using paper with the same size and the same printing mode, and the site constructor can conveniently carry out construction according to the drawing.
In the fourth step, when a user selects a standard drawing as a drawing type to be exported, the OSP enters a drawing exporting mode, a mobile printing frame which is adaptive to the screen and has the same proportion with the selected mode is displayed in a page, the map in the mobile printing frame is automatically zoomed to a certain proportion (for example, 1:4000) by the user and is fixed at the certain proportion, the content of the printing drawing is adjusted by dragging the map under the page, and a drawing exporting task can be established after the position of the map is selected.
In the fourth step, when the derived map does not meet the requirements, the drawing derivation task can be directly deleted, and the derivation is carried out again; a plurality of drawing exporting tasks can be established simultaneously, the newly-built drawing exporting task cannot influence the previous drawing exporting task, and through repeated optimization, the exporting speed is extremely high, and the use experience of an operator is excellent.
In order to effectively control the number of executed paper export tasks and control the server resources consumed by all the paper export tasks, the export drawing program regularly polls to execute the paper export tasks.
The task information of the drawing derivation task comprises a task name, a drawing type, a task state, a derivation progress, task creation time, task starting time and task ending time;
and in the fifth step, after the export task is established, generating a drawing export task in an unfinished state in the OSP system, and selecting the export drawing for downloading after the drawing import is successful.
And in the fifth step, a progress bar is arranged on the downloading interface, so that the downloading progress can be seen in real time, and the time consumption is evaluated.
Compared with the prior art, the drawing derivation method based on the outside line resources has the following characteristics:
firstly, drawing paper with corresponding size, length-width ratio and scale can be derived according to different requirements of operators.
And secondly, drawing exporting and management are included, a standard flow taking task control as an implementation mode is adopted, the drawing is exported from the project, and personnel for exporting the drawing and the starting and ending time can be recorded.
And thirdly, the exported drawing has higher resolution, the condition of the exported drawing can be previewed, and the exported drawing can be adjusted according to personal requirements.
And fourthly, the drawing exporting condition can be checked on the management interface, and the exported drawing is downloaded. The derived drawing contains more detailed information which can be used for guiding construction and report statistics of a client side.
The above-described embodiment is only one specific embodiment of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.