CN109189304A - A kind of map edit method and device - Google Patents
A kind of map edit method and device Download PDFInfo
- Publication number
- CN109189304A CN109189304A CN201811053241.7A CN201811053241A CN109189304A CN 109189304 A CN109189304 A CN 109189304A CN 201811053241 A CN201811053241 A CN 201811053241A CN 109189304 A CN109189304 A CN 109189304A
- Authority
- CN
- China
- Prior art keywords
- edited
- data
- map
- map datum
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B29/00—Maps; Plans; Charts; Diagrams, e.g. route diagram
- G09B29/003—Maps
- G09B29/005—Map projections or methods associated specifically therewith
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Mathematical Physics (AREA)
- Business, Economics & Management (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of map edit method and devices, belong to computer field, this method comprises: obtaining map datum to be edited, wherein, the map datum to be edited is to mark off to come from all data that default map includes, the corresponding data of the map datum to be edited are less than the corresponding data of map sheet, in response to the edit operation of user, the map datum to be edited is edited, the data edited are obtained.Due to the size of data for the map datum that user edits, less than the size of data of map sheet in the prior art, the map datum the space occupied marked off is reduced.
Description
Technical field
The present invention relates to computer fields, and in particular to a kind of map edit method and device.
Background technique
In the prior art, staff can generally draw entire map according to default granularity of division in edit map
It is divided at least two map sheets.Wherein, granularity of division is preset, is all in the vertical direction in the regional scope of preset level face
The data of data Layer.It should be noted that all data in map, including at least two data Layers, wrapped in each data Layer
The data included are different.For example, bottom data Layer is road, upper layer data layer is the lane line on road, then upper one layer
Data Layer is building etc..
But in the prior art, the map datum marked off the i.e. size of data of map sheet is larger.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of map edit method and device, to solve in the prior art
The larger problem of map sheet data.
To achieve the above object, the embodiment of the present invention provides following technical proposals:
The embodiment of the present invention provides a kind of map edit method, which comprises
Obtain map datum to be edited, wherein the map datum to be edited is all numbers for including from default map
It marks off and in, the corresponding data of the map datum to be edited are less than the corresponding data of map sheet;
In response to the edit operation of user, the map datum to be edited is edited, the data edited are obtained.
Further, after obtaining map datum to be edited, in response to the edit operation of the user, editor it is described to
Edit map data, before obtaining the data edited, the method also includes:
The map datum to be edited is locked by Pessimistic Locking.
Further, in response to the edit operation of user, the map datum to be edited is edited, the number edited is obtained
According to later, the method also includes:
In response to the submission operation of the user, the data edited are submitted in raw data.
Further, the method also includes:
Record editor's log.
Further, it is operated in response to the submission of the user, the data edited is submitted to raw data
In, it specifically includes:
In response to the user submission operation, judge the data edited parameter information and the editor
Whether the incidence relation of the data in complete data is correct;
If judging result is to be, the data edited are submitted in raw data;
If judging result is not, by the data rewind edited.
Further, it is operated in response to the submission of the user, the data edited is submitted to raw data
In after, the method also includes:
The map datum to be edited that will be saved in the raw data, is updated to the data edited.
The embodiment of the present invention also provides a kind of map edit device, and described device includes:
Module is obtained, for obtaining map datum to be edited, wherein the map datum to be edited is from default map
Including all data in mark off, the corresponding data of the map datum to be edited are less than the corresponding data of map sheet;
Editor module edits the map datum to be edited, obtains having edited for the edit operation in response to user
Data.
Further, described device further include:
Locking module, for being responded in the editor module after the acquisition module obtains map datum to be edited
In the edit operation of the user, edits the map datum to be edited and pass through Pessimistic Locking before obtaining the data edited
The map datum to be edited is locked.
The embodiment of the present invention has the advantages that
In embodiments of the present invention, the size of data for the map datum edited due to user is less than figure in the prior art
The size of data of width reduces the map datum the space occupied marked off.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of map edit method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of map edit device provided in an embodiment of the present invention.
Specific embodiment
The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention..
Embodiment 1
The embodiment of the present invention 1 provides a kind of map edit method, and the executing subject of this method can be, but not limited to as hand
It is run on the user terminals such as machine, tablet computer or PC (Personal Computer, PC) or those user terminals
Application (Application, APP), alternatively, can also be the equipment such as server.For purposes of illustration only, hereafter using APP as holding
Row main body is illustrated.
The flow diagram of this method can be found in Fig. 1, and in Fig. 1, this method includes the following steps:
Step 101, map datum to be edited is obtained.
Wherein, the map datum to be edited is to mark off to come from all data that default map includes, described
The corresponding data of map datum to be edited are less than the corresponding data of map sheet.
Above-mentioned default granularity of division can be the data in all data Layers in preset level regional scope, can also be with
It is at least one data at least one data Layer in all data Layers in preset level regional scope, can also be
The dimension information of at least one data at least one data Layer in all data Layers in preset level regional scope
Deng.
Wherein, above-mentioned horizontal surface areas range can be a certain block in horizontal plane, for example, can be a road, one
Crossing, a viaduct, a garden, a village or an administrative area etc.;Vertical area range can be road, lane
Line, point of interest (point of interesting, POI), greenery patches or building block etc..
Above-mentioned data Layer, be from vertical direction for, default map includes at least one data Layer, preset map
In all data be stacked up in layer, for example, building is on the ground or overpass is on a certain road
Deng, then, above-mentioned data Layer can be road, lane line, point of interest, greenery patches or building block etc..
Each data in above-mentioned data Layer, can be the building for including or object etc. in the data Layer, for example, can be with
For a road, a crossing, a traffic lights, a guideboard, a steering, a traffic rules or a connected relation etc..
The dimension information of above-mentioned each data, can for length, width and the road number of road, the color of lane line or
Actual situation attribute of lane line etc..
Can be in advance according to above-mentioned default granularity of division, all data for including by map are divided at least two map numbers
According to the operation such as clicking or double-click for any map datum then in response to user, select user's execution aforesaid operations
The map datum is determined as map datum to be edited by map datum.
Step 102, in response to the edit operation of user, the map datum to be edited is edited, the number edited is obtained
According to.
User can treat edit map data and carry out the addition of an at least step, be deleted or modified according to the actual situation or demand
Equal edit operations, obtain the data edited.
In embodiments of the present invention, the size of data for the map datum edited due to user is less than figure in the prior art
The size of data of width reduces the map datum the space occupied marked off.
In addition, the size of data due to the map datum marked off is less than the size of data of map sheet, then for samely
Figure, compared to the prior art for, more numbers can be marked off, can be edited simultaneously for more people, improve map edit
Efficiency.
In a kind of implement scene, after executing step 101, before executing step 102, operations described below can also carry out:
The map datum to be edited is locked by Pessimistic Locking.
In the prior art, the case where there are data collisions, i.e. different people can be edited for same map datum simultaneously
The case where, and in the embodiment of the present invention, map datum to be edited can be locked by Pessimistic Locking, then other people are just not
The generation for the case where map datum to be edited can be edited simultaneously, avoid data collision, this just makes map number to be edited
According to the isolation for having db transaction.
In a kind of implement scene, after executing step 102, operations described below can also carry out:
In response to the submission operation of the user, the data edited are submitted in raw data.
In user's editing interface, settable submission control, user operates for clicking or double-clicks etc. for the submission control,
It can be operated for the submission of user.
Raw data is the database for saving all data that map includes, wherein the institute in the raw data
There are data, is newest edited map datum.
In the embodiment of the present invention, work data library also may be present, user can edit map to be edited in work data library
After editor, the data edited are submitted in raw data for data.
In the prior art, map datum to be edited is usually edited in raw data, wherein edit operation is not
It is revocable, if editing process malfunction, user can be performed faulty operation reverse operating, by data correction, if but user forget
Note has carried out edit operation how just now, just can not be modified, just leading to entire raw data, there are mistakes.
And in the embodiment of the present invention, not edited in raw data, but after having edited, then will editor
Complete data are submitted in raw data, this just avoids the generation of above situation existing in the prior art.
In a kind of implement scene, also recordable editor's log.Wherein, editor's log may include map datum to be edited
And user executes the information such as time, process and the result of all edit operations for data to be edited, in addition, also recordable
After one step edit operation of the lower every execution of user, the version number of obtained data.It should be noted that including compiling in editor's log
The data collected.
In the prior art, edit operation is irrevocable, if editing process malfunctions, the anti-of faulty operation is can be performed in user
To operation, by data correction, in the prior art record editor log, if it is what that user, which has forgotten faulty operation, just without
Method is modified.
And in the embodiment of the present invention, it will record editor's log, if malfunctioning in editing process, even if user forgets mistake
What operation is, can check that faulty operation is according to editor's log, carry out reverse operating, correct data.
In response to the submission operation of the user, the data edited are submitted to specific in raw data
Implementation can be as described below:
In response to the submission operation of user, judge the parameter information for the data edited and the data edited in
Whether the incidence relation of data is correct, if judging result is to be, the data edited are submitted in raw data;
If judging result is not, data rewind that will edit.Wherein, above-mentioned parameter information refers to length, the width of road
The information such as degree, lane quantity, direction or spatial position.Rollback refers to that, according to editor's log, the data that will have been edited are restored
To initial conditions.Specifically, parameter preset information can be obtained, by the parameter information of parameter preset information and the data edited
It compares, if it is different, then thinking incorrect, and thinks that judging result is not to be;If they are the same, then incidence relation is obtained, with
The incidence relations of the data in data edited compares, if not identical, then it is assumed that incorrect, it is believed that judging result is not
It is, if they are the same, then it is assumed that correct, it is believed that judging result is to be.
In another implement scene, when whether the incidence relation of the data in the data for judging to have edited is correct, may be used also
According to map datum to be edited and the data edited, the initial data that judges to be mutually related in map datum to be edited is
It is no all accordingly to be modified and/or deleted, if the determination result is YES, it is believed that the incidence relation for the data in data edited
Correctly, otherwise, then it is assumed that incorrect.
In practical application, urban road is topological structure, has complicated network characteristic, is connected with each other close, map
The deletion of road in data influences whether to hang on the incidence relation, road and crossing connection relationship, road of road and node
The navigation rule etc. on facility and road connect, then the initial data that is mutually related in map to be edited can be road
With the navigation rule etc. on the facility and road that are mounted on the incidence relation, road and crossing connection relationship, road of node.
Wherein, when deleting a certain road, operations described below need to be executed together: the deletion of road, the maintenance of road and crossing relationship, road
The deletion and the maintenance of road guide rule etc. of facility in the maintenance of road and road connection relationship, road.Wherein, node is
The starting point and/or end point or road on road and the tie point of road.
Due to there are the data that are mutually related in map datum to be edited, if user carries out only for a data
The data that are mutually related accordingly are not modified and/or are deleted by modification, just may cause map datum to be edited and occur
Mistake.Therefore, in embodiments of the present invention, before the data edited are submitted to raw data, need to carry out above-mentioned to sentence
The data edited if the determination result is YES, then are submitted to raw data, avoid being submitted to raw data by disconnected operation
In data there are mistakes, so as to cause raw data, there are mistakes.
After executing step 102, due to including the data edited in editor's log, then can be according to editor's log, inspection
It looks into and submits the data of front and back edited whether identical, if it is different, 102 are then re-execute the steps, until submitting the editor of front and back
Until complete data are identical, in addition, it is necessary to explanation, when submitting, all the elements in data for needing to have edited are equal
It submits, this can make map datum to be edited to have the atomicity of db transaction, consistency.
After executing step 102, the map datum to be edited that can will also save in the raw data is updated to
The data edited, even if the subsequent data for what problem occur, remaining in achievement database of raw data,
For newest edited version, this can make the data edited to have the persistence of db transaction.
In embodiments of the present invention, when carrying out map datum editor, be utilized isolation that db transaction has,
Atomicity, consistency and persistence are not in the thing of editor's conflict so that when map edit, during map edit,
Data have integrality, are submitted to the data of achievement, will not lose, after submitting data, the corresponding data meeting in raw data
It automatically updates.
Embodiment 2
The embodiment of the present invention 2 also provides a kind of accuracy of map determining device, and the structural schematic diagram of the device can be found in Fig. 2,
In Fig. 2, which includes:
Module 201 is obtained, for obtaining map datum to be edited, wherein the map datum to be edited is from default
It marks off and in all data that map includes, the corresponding size of data of the map datum to be edited is less than map sheet corresponding
Size of data;
Editor module 202 is edited the map datum to be edited, is edited for the edit operation in response to user
Complete data.
Further, described device further include:
Locking module, for being responded in the editor module after the acquisition module obtains map datum to be edited
In the edit operation of the user, edits the map datum to be edited and pass through Pessimistic Locking before obtaining the data edited
The map datum to be edited is locked.
Each technical characteristic can be freely combined in above-described embodiment 1 and 2, and the present invention is to this without any restriction.
Although above having used general explanation and specific embodiment, the present invention is described in detail, at this
On the basis of invention, it can be made some modifications or improvements, this will be apparent to those skilled in the art.Therefore,
These modifications or improvements without departing from theon the basis of the spirit of the present invention are fallen within the scope of the claimed invention.
Claims (8)
1. a kind of map edit method, which is characterized in that the described method includes:
Obtain map datum to be edited, wherein the map datum to be edited is drawn from all data that default map includes
It branches away, the corresponding data of the map datum to be edited are less than the corresponding data of map sheet;
In response to the edit operation of user, the map datum to be edited is edited, the data edited are obtained.
2. the method as described in claim 1, which is characterized in that after obtaining map datum to be edited, in response to the user
Edit operation, edit the map datum to be edited, before obtaining the data edited, the method also includes:
The map datum to be edited is locked by Pessimistic Locking.
3. the method as described in claim 1, which is characterized in that in response to the edit operation of user, editor is described to be editedly
Diagram data, after obtaining the data edited, the method also includes:
In response to the submission operation of the user, the data edited are submitted in raw data.
4. method as claimed in claim 3, which is characterized in that the method also includes:
Record editor's log.
5. method as claimed in claim 4, which is characterized in that the submission in response to the user operates, and has edited described
Data be submitted in raw data, specifically include:
In response to the submission operation of the user, the parameter information and the number edited of the data edited are judged
Whether the incidence relation of the data in is correct;
If judging result is to be, the data edited are submitted in raw data;
If judging result is not, by the data rewind edited.
6. the method as described in claim 1, which is characterized in that the submission in response to the user operates, and has edited described
Data be submitted in raw data after, the method also includes:
The map datum to be edited that will be saved in the raw data, is updated to the data edited.
7. a kind of map edit device, which is characterized in that described device includes:
Module is obtained, for obtaining map datum to be edited, wherein the map datum to be edited is to include from default map
All data in mark off, the corresponding data of the map datum to be edited are less than the corresponding data of map sheet;
Editor module edits the map datum to be edited, obtains the number edited for the edit operation in response to user
According to.
8. device as claimed in claim 7, which is characterized in that described device further include:
Locking module is used for after the acquisition module obtains map datum to be edited, in the editor module in response to institute
The edit operation of user is stated, the map datum to be edited is edited, it, will be described by Pessimistic Locking before obtaining the data edited
Map datum locking to be edited.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811053241.7A CN109189304A (en) | 2018-09-10 | 2018-09-10 | A kind of map edit method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811053241.7A CN109189304A (en) | 2018-09-10 | 2018-09-10 | A kind of map edit method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109189304A true CN109189304A (en) | 2019-01-11 |
Family
ID=64915848
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811053241.7A Pending CN109189304A (en) | 2018-09-10 | 2018-09-10 | A kind of map edit method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189304A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112596923A (en) * | 2020-12-22 | 2021-04-02 | 北京山海经纬信息技术有限公司 | Map editing method, device and system |
CN113918666A (en) * | 2020-07-09 | 2022-01-11 | 北京四维图新科技股份有限公司 | Map data processing method, device, system and storage medium |
WO2022267346A1 (en) * | 2021-06-22 | 2022-12-29 | 北京百度网讯科技有限公司 | Map data updating method and apparatus, and electronic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102080961A (en) * | 2009-11-30 | 2011-06-01 | 现代自动车株式会社 | Navigation system for updating partly map layers, and method for the same |
CN104537031A (en) * | 2014-12-19 | 2015-04-22 | 百度在线网络技术(北京)有限公司 | Method and device for modifying map data |
CN106682143A (en) * | 2016-12-20 | 2017-05-17 | 武汉大学 | Conflict resolution method for performing networked GIS data production based on relational database |
KR20170091559A (en) * | 2017-07-30 | 2017-08-09 | 신윤성 | 'Information medium by region' using map and editing method or information providing method |
-
2018
- 2018-09-10 CN CN201811053241.7A patent/CN109189304A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102080961A (en) * | 2009-11-30 | 2011-06-01 | 现代自动车株式会社 | Navigation system for updating partly map layers, and method for the same |
CN104537031A (en) * | 2014-12-19 | 2015-04-22 | 百度在线网络技术(北京)有限公司 | Method and device for modifying map data |
CN106682143A (en) * | 2016-12-20 | 2017-05-17 | 武汉大学 | Conflict resolution method for performing networked GIS data production based on relational database |
KR20170091559A (en) * | 2017-07-30 | 2017-08-09 | 신윤성 | 'Information medium by region' using map and editing method or information providing method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113918666A (en) * | 2020-07-09 | 2022-01-11 | 北京四维图新科技股份有限公司 | Map data processing method, device, system and storage medium |
CN112596923A (en) * | 2020-12-22 | 2021-04-02 | 北京山海经纬信息技术有限公司 | Map editing method, device and system |
WO2022267346A1 (en) * | 2021-06-22 | 2022-12-29 | 北京百度网讯科技有限公司 | Map data updating method and apparatus, and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106202447B (en) | A kind of digital cartography system having production and management integration | |
CN101981575B (en) | Method and apparatus for copying objects in an object-oriented environment using a multiple-transaction technique | |
CN109189304A (en) | A kind of map edit method and device | |
CN104318481A (en) | Power-grid-operation-oriented holographic time scale measurement data extraction conversion method | |
CN103914564A (en) | Method and system for updating and warehousing urban pipelines on basis of ArcGIS (geographic information system) | |
CN106897445A (en) | It is a kind of that the novel method that operation delimited on border is improved based on ArcGIS | |
CN102439598A (en) | Document template management method and system | |
CN104820733A (en) | A high-speed train requirement meta model establishing method and device | |
CN104748757B (en) | A kind of data in navigation electronic map update method and device | |
CN110083668B (en) | Data management system, management method, terminal and storage medium for high-precision map | |
CN103971211A (en) | Information processing method and device | |
CN110599116A (en) | Power grid decentralized collaborative design method and system based on cloud data center | |
CN104573083B (en) | A kind of cache map services automatic update method | |
CN102880500B (en) | The optimization method of a kind of task tree and device | |
CN106951593B (en) | Method and device for generating configuration file of protection measurement and control device | |
EP4083965A1 (en) | Taxi route generator | |
CN115239281A (en) | BIM + GIS-based road migration management system, method and storage medium | |
CN113312736B (en) | River network hydrodynamic simulation implementation method and system based on cloud platform | |
CN105279181A (en) | Quick updating method and system of electronic map of house | |
KR101928817B1 (en) | Combat simulation systems based spatial dbms | |
CN107480242A (en) | A kind of method and system of establishment file system snapshot tree | |
CN116049206B (en) | Space planning business library updating method | |
CN106933987B (en) | A kind of dynamic updating method and device of " more rule unifications " " figure " | |
CN102663029A (en) | Electronic construction engineering drawing searching device | |
CN112612840A (en) | Heterogeneous data processing method, device, equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190111 |
|
RJ01 | Rejection of invention patent application after publication |