Background
When multiple persons draw the same GIS map in a collaborative mode, no perfect map collaborative drawing management means is available at present to limit others to draw the same GIS map to the region of the people. The following problems often arise:
1. the drawing results are often overlapped with each other, so that great difficulty is brought to later map merging;
2. and the problems that design results cover each other and map data are lost after the map is submitted are caused.
Disclosure of Invention
The invention aims to provide a multi-person collaborative plotting method, wherein each designer locks a design map area, edits the self-locked area map respectively, avoids mutual interference, submits the map content of the locked area after the design is finished, and combines the map content into a design map so as to complete GIS map marking in a collaborative manner.
In order to achieve the purpose, the technical scheme of the invention is as follows: a multi-person collaborative plotting method comprises the following steps:
step S1, a user logs in design software, and the design software records user information;
step S2, the design software receives a map information downloading instruction of a user and downloads the collaborative plotting map data from the server;
step S3, the design software receives the instruction of locking the map area by the user, records the map area framed by the user, and uploads the map area framed by the user together with the user information to the server to lock the map area framed by the user;
step S4, the server receives the submitted locking information, judges the locking map area, if there is overlapping locking area, returns the failure information to the design software, and returns the locked map area to the design software; if no overlapping locking area exists, returning the locking success information to the design software;
step S5, after the locking is successful, the design software limits the locking user to only compile the locking map area, and can not edit the map area outside the locking map area, and the design software can accept the locking map area command again to change the locking map area;
s6, the design software receives a map editing instruction of a user and compares the compiled object position with a map locking area; if the object position is not in the locked map area, informing the user that the map area outside the locked map area cannot be compiled, and if the object position is in the locked map area, allowing the user to compile;
step S7, after the map design work is completed, the design software receives a map command submitted by a user, and uploads the map information in the map locking area to the server;
step S8, the server receives the map information submitted by the design software, merges the received map content into the map of the server, and releases the map area locked by the user;
and step S9, finishing the collaborative plotting work.
Compared with the prior art, the invention has the following beneficial effects:
1. the information is shared through the server, so that the login function of designers, the judgment of a map locking area and the like are realized;
2. a user can lock a map area only by logging in a server through collaborative plotting software, and then submits information of a locked person and the area to a server for storage when selecting a box;
3. and encrypting and decrypting the whole dwg map: the system can realize the binary-level decryption and encryption operation on the currently operated GIS map file before opening the map and after closing the map through a reactor mechanism in the GIS secondary development objectarx technology, and can prevent a user from directly opening the file to modify by adopting a GIS client;
4. and (3) region locking:
4.1. defining a locking area: drawing a rectangular frame according to the specified coordinates of the locking area, identifying the locking area, and recording user information and area information for locking the area on the rectangular frame in an extended data mode in the objectarx technology;
4.2. inhibit any editing of the locked region: and judging before any drawing and editing command is executed through a reactor mechanism in the GIS secondary development objectarx technology, if the operation position coordinate is in any locking area range, locking user verification is carried out, and drawing and editing can be carried out only after the verification is passed. If the verification fails, the drawing and editing command is ended.
Detailed Description
The following specifically describes the technical means of the present invention.
The invention provides a multi-person collaborative plotting method, which comprises the following steps:
step S1, a user logs in design software, and the design software records user information;
step S2, the design software receives a map information downloading instruction of a user and downloads the collaborative plotting map data from the server;
step S3, the design software receives the instruction of locking the map area by the user, records the map area framed by the user, and uploads the map area framed by the user together with the user information to the server to lock the map area framed by the user;
step S4, the server receives the submitted locking information, judges the locking map area, if there is overlapping locking area, returns the failure information to the design software, and returns the locked map area to the design software; if no overlapping locking area exists, returning the locking success information to the design software;
step S5, after the locking is successful, the design software limits the locking user to only compile the locking map area, and can not edit the map area outside the locking map area, and the design software can accept the locking map area command again to change the locking map area;
s6, the design software receives a map editing instruction of a user and compares the compiled object position with a map locking area; if the object position is not in the locked map area, informing the user that the map area outside the locked map area cannot be compiled, and if the object position is in the locked map area, allowing the user to compile;
step S7, after the map design work is completed, the design software receives a map command submitted by a user, and uploads the map information in the map locking area to the server;
step S8, the server receives the map information submitted by the design software, merges the received map content into the map of the server, and releases the map area locked by the user;
and step S9, finishing the collaborative plotting work.
The invention is a specific application scenario.
The method comprises the following steps that two designers of a user A and a user B in the same unit jointly complete a GIS map collaborative plotting work, the user A logs in design software, downloads GIS map information, locks a plotting map area and performs the plotting work in the locking area; similarly, a user B logs in design software, downloads GIS map information, locks a design map area and performs plotting work in the locked area; the design work of both parties is carried out simultaneously without mutual interference. And finally, the user A and the user B respectively submit the map contents in the locked area, and the map contents are combined into a map to finish the plotting work. The plotting result has accuracy and uniqueness, and the design quality is obviously improved.
The above are preferred embodiments of the present invention, and all changes made according to the technical scheme of the present invention that produce functional effects do not exceed the scope of the technical scheme of the present invention belong to the protection scope of the present invention.