CN113345048A - Geographic information image editing method and device and computer equipment - Google Patents

Geographic information image editing method and device and computer equipment Download PDF

Info

Publication number
CN113345048A
CN113345048A CN202110695713.4A CN202110695713A CN113345048A CN 113345048 A CN113345048 A CN 113345048A CN 202110695713 A CN202110695713 A CN 202110695713A CN 113345048 A CN113345048 A CN 113345048A
Authority
CN
China
Prior art keywords
geographic information
vertex
information image
editing
file
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
Application number
CN202110695713.4A
Other languages
Chinese (zh)
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.)
Aerial Photogrammetry and Remote Sensing Co Ltd
Original Assignee
Aerial Photogrammetry and Remote Sensing 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 Aerial Photogrammetry and Remote Sensing Co Ltd filed Critical Aerial Photogrammetry and Remote Sensing Co Ltd
Priority to CN202110695713.4A priority Critical patent/CN113345048A/en
Publication of CN113345048A publication Critical patent/CN113345048A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a method and a device for editing a geographic information image and computer equipment, wherein the method for editing the geographic information image comprises the following steps: the method comprises the steps of converting an acquired geographic information file into a preset format file, analyzing the preset format file to convert the preset format file into a geographic information image, further visualizing the geographic information image, determining all vertexes in the geographic information image according to the preset format file after the geographic information image is displayed, further generating a vertex editing tool at the position of each vertex in the geographic information image, and changing the coordinates of the vertexes corresponding to the vertex editing tools when any one vertex editing tool receives an image change instruction to update the geographic information image and change the preset format file corresponding to the geographic information image. Therefore, the technical threshold of editing the geographic information file/image by the user is reduced, and the editing experience of the user is improved.

Description

Geographic information image editing method and device and computer equipment
Technical Field
The invention relates to the technical field of geographic information, in particular to a method and a device for editing a geographic information image and computer equipment.
Background
Common geographic information files such as shx, adf, ain and the like need professional geographic information file editing software to be loaded for editing, such as ArcGIS.
The installation process of the geographic information file editing software is complicated, the file editing function is multiple and complex, and the geographic information file can be edited by professional personnel, so that a certain technical threshold exists, and the requirements of the public are difficult to meet.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus and a computer device for editing geographic information images, which are used to solve the problem that editing a geographic information file is too complicated.
In a first aspect, an embodiment of the present invention provides a geographic information image editing method, applied to a browser, including:
converting the obtained geographic information file into a preset format file;
analyzing the preset format file to convert the preset format file into a geographic information image and display the geographic information image;
determining all vertexes in the geographic information image according to the preset format file, and generating a vertex editing tool at the position of each vertex in the geographic information image;
and according to the received image change instruction based on the vertex editing tool, changing the coordinates of the vertex corresponding to the vertex editing tool so as to update the geographic information image and change the preset format file corresponding to the geographic information image.
In one implementation manner that can be achieved by the embodiment of the present invention, generating a vertex editing tool at a position of each vertex in a geographic information image includes:
generating a vertex labeling tool corresponding to each vertex in the geographic information image at the position of each vertex;
and setting and binding a tool dragging event aiming at each vertex marking tool, and converting the vertex marking tool into a vertex editing tool, wherein the vertex editing tool is used for changing the coordinates of the vertex corresponding to the vertex editing tool according to a dragging instruction of a user and the tool dragging event.
Further, in this embodiment, the method for editing geographic information images further includes:
generating a midpoint marking tool at the midpoint position of any two adjacent vertex editing tools;
and setting and binding a tool click event aiming at each midpoint marking tool, and converting the midpoint marking tool into a midpoint editing tool, wherein the midpoint editing tool is used for converting the midpoint editing tool into a vertex editing tool according to a user click instruction and the tool click event, and generating a new midpoint editing tool at the positions of the converted vertex editing tool and the midpoints of the adjacent vertex editing tools.
Optionally, in an implementation manner provided by the embodiment of the present invention, parsing the file in the preset format to convert the file in the preset format into the geographic information image and display the geographic information image includes:
and converting the obtained geographic information file into a preset format file through a format conversion plug-in.
Optionally, in an implementation manner provided by the embodiment of the present invention, parsing the file in the preset format to convert the file in the preset format into the geographic information image and display the geographic information image includes:
acquiring geographic element information and coordinate information in a preset format file;
and converting the preset format file into a geographic information image according to the geographic element information and the coordinate information and displaying the geographic information image.
Optionally, in an implementation manner provided by the embodiment of the present invention, determining all vertices in the geographic information image according to a preset format file includes:
and acquiring a vertex coordinate set in the preset format file, and determining all vertexes in the geographic information image according to the vertex coordinate set.
Optionally, in a feasible implementation manner provided by the embodiment of the present invention, the geographic information file includes a shapefile file, and the preset format file includes a geojson file.
In a second aspect, an embodiment of the present invention provides a geographic information image editing apparatus, applied to a browser, including:
the conversion module is used for converting the acquired geographic information file into a file with a preset format;
the display module is used for analyzing the file with the preset format so as to convert the file with the preset format into a geographic information image and display the geographic information image;
the generating module is used for determining all vertexes in the geographic information image according to the preset format file and generating a vertex editing tool at the position of each vertex in the geographic information image;
and the editing module is used for changing the coordinates of the vertex corresponding to the vertex editing tool according to the received image changing instruction based on the vertex editing tool so as to update the geographic information image and change the preset format file corresponding to the geographic information image.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes the geographic information image editing method as described in any one of the embodiments in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program runs on a processor, the geographic information image editing method according to any one of the embodiments in the first aspect is executed.
The geographic information image editing method applied to the browser provided by the embodiment of the invention comprises the steps of converting an acquired geographic information file into a preset format file, analyzing the preset format file to convert the preset format file into a geographic information image, further visualizing the geographic information image, determining all vertexes in the geographic information image according to the preset format file after the geographic information image is displayed, further generating a vertex editing tool at the position of each vertex in the geographic information image, and changing the coordinates of the vertex corresponding to the vertex editing tool when any vertex editing tool receives an image change instruction to update the geographic information image and change the preset format file corresponding to the geographic information image.
Therefore, the embodiment of the invention visualizes the geographic information file, realizes the editing of the visible geographic information image, avoids the condition that the user needs to install client software to finish the geographic information file, and improves the use experience of the user; moreover, the geographic information image editing method realized based on the browser/server architecture transfers the load of editing the geographic information image from the personal device to the browser, thereby reducing the hardware requirement of the user for editing the geographic information image; moreover, the embodiment of the invention is based on the vertex editing tool, simplifies the functions of the client software, so that when the browser executes the editing of the geographic information image according to the instruction, the operation load of the webpage is small, the user can simply and efficiently edit the geographic information image through the vertex editing tool, and the use experience of the user is further improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 is a schematic flow chart illustrating a method for editing a geographic information image according to an embodiment of the present invention;
FIG. 2 illustrates an image of geographic information provided by an embodiment of the present invention;
FIG. 3 illustrates a schematic diagram of a geographic information image provided by an embodiment of the present invention;
FIG. 4 is a diagram illustrating an edited geographic information image provided by an embodiment of the present invention;
FIG. 5 illustrates another schematic diagram of a geographic information image provided by an embodiment of the present invention;
fig. 6 is a schematic structural diagram illustrating a geographic information image editing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Example 1
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for editing a geographic information image according to an embodiment of the present invention, where the method for editing a geographic information image includes:
and S110, converting the acquired geographic information file into a preset format file.
It can be understood that the geographic information image editing method provided by the embodiment of the present invention is completed based on a browser/server architecture, and the subsequent steps of the embodiment of the present invention are all implemented in a browser, but the browser cannot directly process common geographic information files, such as gis files, shp files, adf files, and the like, and cannot be directly read by the browser. Therefore, before the user edits the geographic information image, the geographic information file needs to be converted into a preset format file which can be recognized by the browser.
Optionally, in a feasible implementation manner provided by the embodiment of the present invention, the geographic information file includes a shapefile file, and the preset format file includes a geojson file.
It is understood that the shape belongs to a vector graphic format, and the position and the related attribute of the geometric figure can be saved. geojson is a format for encoding various geographic data structures, following javascript syntax, while browsers support the running and reading of javascript. Therefore, after the shape file is converted into the geojson file which can be identified by the browser, the browser can complete the analysis of the geographic information file according to the geojson file and visualize the geographic information file.
And S120, analyzing the file with the preset format so as to convert the file with the preset format into a geographic information image and display the geographic information image.
It can be understood that the preset format file is parsed, that is, the data used for rendering the image in the file is read by the browser, such as coordinate data, name information, color information, and the like, so that the browser, that is, the web side, can convert the preset format file into the image and display the image according to the content in the preset format file, thereby implementing file visualization. Exemplarily, referring to fig. 2, fig. 2 shows a geographic information image 101 provided by an embodiment of the present invention, that is, in the embodiment of the present invention, a browser converts a preset format file into an image and then displays the image.
S130, determining all vertexes in the geographic information image according to the preset format file, and generating a vertex editing tool at the position of each vertex in the geographic information image.
It can be understood that the geographic information image can be generated by vertex coordinates, for example, one point is generated by displaying the point according to the coordinates of the point, while a straight line is generated by connecting two points according to the coordinates of the two points, and a polygon is generated by connecting the points according to the coordinates of the points.
Further, the editing of the image mostly involves the change of the vertex coordinates, so that in the embodiment of the present invention, a vertex editing tool is generated at the position of each vertex in the geographic information image, so that the user edits the geographic information image through the vertex editing tool, and further, the editing function of the geographic information image and the geographic information image file is realized.
Exemplarily, referring to fig. 3, fig. 3 shows a schematic diagram of a geographic information image provided by an embodiment of the present invention, which includes a geographic information image 101 and a vertex editing tool 102; it can also be understood that fig. 3 is added with the vertex editing tools 102 in addition to fig. 2, and thus, when the user performs drag/click/stay operations on the respective vertex editing tools 102, the editing of the geographic information image 101 can be completed.
And S140, changing the coordinates of the vertex corresponding to the vertex editing tool according to the received image change instruction based on the vertex editing tool so as to update the geographic information image and change the preset format file corresponding to the geographic information image.
It can be understood that the functions of the common geographic information file editing software are complex and cumbersome, but most users only need to use part of the functions of the geographic information file editing software when editing the geographic information file. When a user simply edits the geographic information file through the geographic information file editing software, a specific editing tool needs to be selected from the geographic information file editing software, and the file can be edited according to a specific editing method, so that the method is very complicated, a certain technical threshold exists, and the use experience of the user is greatly influenced.
Therefore, the embodiment of the invention simplifies the functions of the geographic information file editing software, and meets the simple editing requirements of users on the geographic information files through each vertex editing tool, namely after the vertex editing tools are displayed on the geographic information images by the browser, the users can edit the geographic information images when dragging/clicking/staying the vertex editing tools, so that the coordinates of the corresponding vertices are changed, the geographic information images are updated, and the file contents in the preset format files corresponding to the geographic information images are changed.
Therefore, the geographic information file is visualized, the editing based on the visible geographic information image is realized, the condition that the user can edit the geographic information file only by installing client software is avoided, and the user experience is improved; moreover, the geographic information image editing method realized based on the browser/server architecture transfers the load of editing the geographic information image to the browser, thereby reducing the hardware requirement of a user for editing the geographic information image; moreover, the embodiment of the invention is based on the vertex editing tool, the editing function of the client software is simplified, so that when the browser executes the editing of the geographic information image according to the instruction, the operation load of the browser is small, the user can simply and efficiently edit the geographic information image through the vertex editing tool, the technical threshold is reduced, and the use experience of the user is further improved.
Preferably, in an implementation manner that can be achieved by the embodiment of the present invention, the method for editing the geographic information image further includes:
converting the changed preset format file into a new geographic information file;
and sending the new geographic information file to the terminal equipment of the user according to the received geographic information file downloading instruction.
It can be understood that, after the user edits the geographic information image, the browser converts the preset format file corresponding to the edited geographic information image into the geographic information file, still taking the shp file and the geojson file as examples, and in this embodiment, the browser converts the changed geojson file into the shp file, so as to ensure that the shp file can be applied to an editing tool other than the browser.
As can be further understood, after the geographic information file uploaded by the user is acquired in S110, the browser sends the acquired geographic information file to the server; after the user edits the geographic information image, the browser sends the newly generated geographic information file to the server; and when the user needs to download the edited geographic information file, the browser sends the new geographic information file in the server to the terminal equipment of the user according to the geographic information file downloading instruction. Therefore, the geographic information file is updated and downloaded in real time.
In one implementation manner that can be implemented by the embodiment of the present invention, S130 includes:
generating a vertex labeling tool corresponding to each vertex in the geographic information image at the position of each vertex;
and setting and binding a tool dragging event aiming at each vertex marking tool, and converting the vertex marking tool into a vertex editing tool, wherein the vertex editing tool is used for changing the coordinates of the vertex corresponding to the vertex editing tool according to a dragging instruction of a user and the tool dragging event.
Exemplarily, still referring to fig. 2 and 3, fig. 2 may be regarded as the geographic information image 101 without generating the vertex editing tool, and fig. 3 may be regarded as the geographic information image 101 with generating the vertex editing tool 102. It is understood that in a two-dimensional plane, two points constitute a line, and three or more points constitute a two-dimensional figure, in other words, a figure/line segment constituted by points can be changed by editing the coordinates of each point in an image. And the generation of the geographic information image needs to generate at least one of a point, a line, a polygon and a complex polygon according to the coordinates of each vertex and the connection mode of the coordinates.
Therefore, in the embodiment of the invention, for each vertex, a vertex marking tool is firstly generated at the position of the vertex for highlighting the vertex, so that when a user edits, the user can accurately select the vertex editing tool to edit the image. Furthermore, after the vertex marking tools are generated, a tool dragging event is set and bound for each vertex marking tool, so that after any vertex marking tool is dragged, execution of a corresponding program function is triggered, namely execution of the tool dragging event is triggered, so that the coordinates of the vertex are changed, the geographic information image is changed and updated, and the preset format file corresponding to the geographic information image is changed.
It can also be understood that the embodiment of the present invention completes the editing of the image by setting the drag event, but in the actual design process, different event monitoring functions and different operation logics after the event is triggered can be set by triggering manners such as a click event, a flick event, a keyboard input event, and the like.
Exemplarily, referring to fig. 4, fig. 4 shows a schematic diagram of an edited geographic information image provided by an embodiment of the present invention, which includes a geographic information image 101 and a vertex editing tool 102, and fig. 4 is a geographic information image obtained after a user drags the vertex editing tool in the upper-right corner of fig. 3. If fig. 3 and fig. 4 are converted based on the geojson file, in the process that the user edits the fig. 3 to obtain the fig. 4, the browser changes the line segment and the graph formed by the vertex corresponding to the top editing tool 102 in real time according to the dragged position change condition of the top marking tool, updates and displays the geographic information image 101 which changes continuously in real time, and simultaneously, changes correspondingly to part of the content in the geojson file, such as the coordinate set stored in the feature array.
Further, in this embodiment, the method for editing geographic information images further includes:
generating a midpoint marking tool at the midpoint position of any two adjacent vertex editing tools;
and setting and binding a tool click event aiming at each midpoint marking tool, and converting the midpoint marking tool into a midpoint editing tool, wherein the midpoint editing tool is used for converting the midpoint editing tool into a vertex editing tool according to a user click instruction and the tool click event, and generating a new midpoint editing tool at the positions of the converted vertex editing tool and the midpoints of the adjacent vertex editing tools.
It can be understood that only the vertices in the image can be edited to complete the editing of the geographic information image, and the editing requirements of the user cannot be met well, so that the embodiment of the present invention further provides an implementation manner for generating a vertex editing tool, that is, a midpoint marking tool is generated at the midpoint position of any two vertex editing tools to indicate that the vertex editing tool can be generated at the midpoint position in the geographic information image. Exemplarily, referring to fig. 5, fig. 5 shows another schematic diagram of a geographic information image provided by an embodiment of the present invention, which includes a geographic information image 101, a vertex editing tool 102, and a midpoint editing tool 103. Optionally, in fig. 5, the vertex editing tool 102 is a circle, and the midpoint editing tool 103 is a diamond, but in an actual design link, the styles of the vertex editing tool 102 and the midpoint editing tool 103 may be changed according to requirements.
Further, after the midpoint marking tool is generated, a click event of the binding tool is set for each midpoint marking tool, and the midpoint marking tool is converted into the midpoint editing tool 103. Therefore, when the user clicks any one of the midpoint editing tools 103, the midpoint editing tool 103 is converted into the vertex editing tool 102, so that the user can complete image editing through the vertex editing tool 102 on the midpoint on the connecting line of any two vertices in the geographic information image. In other words, the implementation provided by the embodiment of the present invention can convert the midpoint on the connecting line of any two vertices into a vertex, so as to implement a more complex image editing function.
Furthermore, after the midpoint editing tool 103 is converted into the vertex editing tool 102, the midpoint editing tool 103 is generated again at the positions of the newly generated vertex editing tool 102 and the midpoint of the original vertex editing tool 102, so as to meet the relatively complex editing requirements of the user.
Optionally, in an implementation manner provided in the embodiment of the present invention, S110 includes:
and converting the obtained geographic information file into a preset format file through a format conversion plug-in.
It can be understood that, because a browser end, that is, a web end, cannot directly read a file format supported by conventional geographic information file editing software, the format of the obtained geographic information file is converted by the format conversion plug-in the embodiment of the present invention, so as to ensure that the web end can parse and load the geographic information file.
Exemplarily, since the browser supports the javascript script language, in an optional implementation manner, the embodiment of the present invention converts the geographic information file, such as the shp file, into the file of the geojson-format data realized based on the javascript script language based on the file conversion plug-in written by the javascript script language, thereby completing reading and visualization of the geographic information file.
Optionally, in an implementation manner provided in the embodiment of the present invention, S120 includes:
acquiring geographic element information and coordinate information in a preset format file;
and converting the preset format file into a geographic information image according to the geographic element information and the coordinate information and displaying the geographic information image.
It can be understood that, converting a preset format file corresponding to a geographic information file into a visual geographic information image, determining elements required to be rendered for the geographic information image, such as geographic element information, from the preset format file, that is, what image elements, such as one or more of points, line segments, polygons, complex polygons and other images, are included in the geographic information image; the coordinate information is used for determining coordinate points required to be utilized by various image elements.
It can also be understood that the loading of the geographic information image can be performed only by the geographic element information and the coordinate information, or by the geographic element information, the coordinate information, the style information, the identification information, and the like, that is, the content of the document stored in the preset format document. Taking the example of the visualization of the geojson file, the geojson file stores geographic element information, coordinate information, attribute information, and vertex information, and thus when the visualization is performed by the geojson file, the image can be rendered and generated according to the geographic element information, the coordinate information, the attribute information, and the vertex information.
Optionally, in an implementation manner provided in the embodiment of the present invention, S130 includes:
and acquiring a vertex coordinate set in the preset format file, and determining all vertexes in the geographic information image according to the vertex coordinate set.
It can be understood that, when the geographic information image is rendered and displayed, each vertex of the geographic element image can be determined according to the vertex coordinate set in the coordinate information stored in the preset format file, so that accurate generation of each vertex editing tool is ensured.
Further, in one embodiment of the present invention, the vertex coordinates include face vertex coordinates and hole vertex coordinates. The distinction between the face vertex coordinates and the hole vertex coordinates may be determined by the order stored in the set of vertex coordinates. Specifically, when the vertex coordinate group includes a plurality of vertex coordinate groups, and when the number of coordinates included in the vertex coordinate group is not 1, the first coordinates of the vertex coordinate groups are plane vertex coordinates, and the remaining coordinates are hole vertex coordinates. Therefore, the vertex coordinates and the hole coordinates can be determined by grouping according to the vertex coordinates in the vertex coordinate group, and then the corresponding vertex editing tool can be generated according to each vertex coordinate.
Therefore, based on the implementation mode, the embodiment of the invention can also enable the user to finish hole editing in the complex polygon through the vertex editing tool corresponding to the hole vertex, thereby further meeting the editing requirements of the user.
Example 2
Referring to fig. 6, fig. 6 is a schematic structural diagram illustrating a geographic information image editing apparatus according to an embodiment of the present invention, where the geographic information image editing apparatus 200 includes:
the conversion module 210 is configured to convert the obtained geographic information file into a preset format file;
the display module 220 is configured to parse the preset format file to convert the preset format file into a geographic information image and display the geographic information image;
the generating module 230 is configured to determine all vertices in the geographic information image according to the preset format file, and generate a vertex editing tool at a position of each vertex in the geographic information image;
and the editing module 240 is configured to change coordinates of a vertex corresponding to the vertex editing tool according to the received image change instruction based on the vertex editing tool, so as to update the geographic information image, and change a preset format file corresponding to the geographic information image.
It can be understood that, in the technical solution of the geographic information image editing apparatus disclosed in embodiment 1 of the present invention, through the synergistic effect of the functional modules, the method for editing the geographic information image disclosed in embodiment 1 is implemented, and the implementation and beneficial effects related to the method for editing the geographic information image are also applicable in this embodiment, and are not described herein again.
The embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes the geographic information image editing method according to any one of the embodiments in embodiment 1.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program runs on a processor, the method for editing a geographic information image according to any one of the embodiments in embodiment 1 is executed.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A geographic information image editing method is applied to a browser and comprises the following steps:
converting the obtained geographic information file into a preset format file;
analyzing the preset format file to convert the preset format file into a geographic information image and display the geographic information image;
determining all vertexes in the geographic information image according to the preset format file, and generating a vertex editing tool at the position of each vertex in the geographic information image;
and according to the received image change instruction based on the vertex editing tool, changing the coordinates of the vertex corresponding to the vertex editing tool so as to update the geographic information image and change the preset format file corresponding to the geographic information image.
2. The method of claim 1, wherein generating a vertex editing tool at the location of each vertex in the geographic information image comprises:
generating a vertex labeling tool corresponding to each vertex in the geographic information image at the position of each vertex;
and setting and binding a tool dragging event aiming at each vertex marking tool, and converting the vertex marking tool into a vertex editing tool, wherein the vertex editing tool is used for changing the coordinates of the vertex corresponding to the vertex editing tool according to a dragging instruction of a user and the tool dragging event.
3. The method of claim 2, further comprising:
generating a midpoint marking tool at the midpoint position of any two adjacent vertex editing tools;
and setting and binding a tool clicking event aiming at each midpoint marking tool, and converting the midpoint marking tool into a midpoint editing tool, wherein the midpoint editing tool is used for converting the midpoint editing tool into the vertex editing tool according to a user clicking instruction and the tool clicking event, and generating a new midpoint editing tool at the positions of the converted vertex editing tool and the midpoint of the adjacent vertex editing tool.
4. The method according to claim 1, wherein the converting the obtained geographic information file into a preset format file comprises:
and converting the obtained geographic information file into a preset format file through a format conversion plug-in.
5. The method according to claim 1, wherein the parsing the file of the preset format to convert the file of the preset format into a geographic information image and display the geographic information image comprises:
acquiring geographic element information and coordinate information in the preset format file;
and converting the preset format file into a geographic information image and displaying the geographic information image according to the geographic element information and the coordinate information.
6. The method of claim 1, wherein determining all vertices in the geographic information image according to the preset format file comprises:
and acquiring a vertex coordinate set in the preset format file, and determining all vertexes in the geographic information image according to the vertex coordinate set.
7. The editing method according to claim 1, wherein the geographic information file comprises a shapefile file, and the preset format file comprises a geojson file.
8. A geographic information image editing apparatus, applied to a browser, includes:
the conversion module is used for converting the acquired geographic information file into a file with a preset format;
the display module is used for analyzing the preset format file so as to convert the preset format file into a geographic information image and display the geographic information image;
the generating module is used for determining all vertexes in the geographic information image according to the preset format file and generating a vertex editing tool at the position of each vertex in the geographic information image;
and the editing module is used for changing the coordinates of the vertex corresponding to the vertex editing tool according to the received image changing instruction based on the vertex editing tool so as to update the geographic information image and change the preset format file corresponding to the geographic information image.
9. A computer device, characterized by comprising a memory and a processor, the memory storing a computer program which, when run on the processor, performs the geographical information image editing method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when run on a processor, performs the geographical information image editing method of any one of claims 1-7.
CN202110695713.4A 2021-06-23 2021-06-23 Geographic information image editing method and device and computer equipment Pending CN113345048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110695713.4A CN113345048A (en) 2021-06-23 2021-06-23 Geographic information image editing method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110695713.4A CN113345048A (en) 2021-06-23 2021-06-23 Geographic information image editing method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN113345048A true CN113345048A (en) 2021-09-03

Family

ID=77477940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110695713.4A Pending CN113345048A (en) 2021-06-23 2021-06-23 Geographic information image editing method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN113345048A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489829A (en) * 2021-12-22 2022-05-13 北京市遥感信息研究所 ArcMap-based remote sensing image sample labeling method
CN115766845A (en) * 2022-11-21 2023-03-07 中国联合网络通信集团有限公司 Image updating processing method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677680A (en) * 2014-11-20 2016-06-15 国家电网公司 Networked synchronization and conversion method for geographical wiring diagrams
CN107909541A (en) * 2017-11-13 2018-04-13 杭州电魂网络科技股份有限公司 Map conversion method and device
CN110347769A (en) * 2019-07-09 2019-10-18 东方网力科技股份有限公司 Processing method, device, equipment and the storage medium of multi-layer map tile
CN112883065A (en) * 2021-03-03 2021-06-01 中煤航测遥感集团有限公司 Data storage method and device and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677680A (en) * 2014-11-20 2016-06-15 国家电网公司 Networked synchronization and conversion method for geographical wiring diagrams
CN107909541A (en) * 2017-11-13 2018-04-13 杭州电魂网络科技股份有限公司 Map conversion method and device
CN110347769A (en) * 2019-07-09 2019-10-18 东方网力科技股份有限公司 Processing method, device, equipment and the storage medium of multi-layer map tile
CN112883065A (en) * 2021-03-03 2021-06-01 中煤航测遥感集团有限公司 Data storage method and device and computer equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘峰 等: "SHP文件格式的研究与应用", 《测绘科学》 *
袁轶 等: "基于GeoServer 的WebGIS 开发", 《软件导刊》 *
袁轶 等: "基于GeoServer的WebGIS 开发", 《软件导刊》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489829A (en) * 2021-12-22 2022-05-13 北京市遥感信息研究所 ArcMap-based remote sensing image sample labeling method
CN114489829B (en) * 2021-12-22 2023-04-18 北京市遥感信息研究所 Remote sensing image sample labeling method based on ArcMap
CN115766845A (en) * 2022-11-21 2023-03-07 中国联合网络通信集团有限公司 Image updating processing method and device and storage medium

Similar Documents

Publication Publication Date Title
US11042278B2 (en) Providing graphical indication of label boundaries in digital maps
CN109801347B (en) Method, device, equipment and medium for generating editable image template
KR102101915B1 (en) Rendering map images using modifications of non-raster map data
KR101494844B1 (en) System for Transforming Chart Using Metadata and Method thereof
CN107239491A (en) For realizing method, equipment, browser and electronic equipment that user behavior is followed the trail of
US11281742B2 (en) Interactive and selective coloring of digital vector glyphs
CN113345048A (en) Geographic information image editing method and device and computer equipment
CN111399831A (en) Page display method and device, storage medium and electronic device
Ritsos et al. Synthetic visualizations in web-based mixed reality
US20090199081A1 (en) Web-based visualization, refresh, and consumption of data-linked diagrams
CN113254016A (en) Interface generation method, interface information processing method, equipment and storage medium
CN114756228A (en) Page processing method, device, equipment and storage medium
CN108133029B (en) Map element adjusting method, device and equipment and computer-readable storage medium
CN114675925B (en) Configuration image processing method and device, computer equipment and storage medium
EP3340042A1 (en) Page construction method, apparatus and device, and nonvolatile computer storage medium
CN116245052A (en) Drawing migration method, device, equipment and storage medium
CN115964037A (en) Engineering data visualization low code configuration method and system
CN115904167A (en) Processing method and device of webpage icon, storage medium and electronic equipment
CN114862999A (en) Dotting rendering method, dotting rendering device, dotting rendering equipment and storage medium
CN115375812A (en) CAD data rendering method and device, electronic equipment and storage medium
CN114817379A (en) Qunee-based configuration item relation visualization method, system, equipment and medium
CN112418902A (en) Multimedia synthesis method and system based on webpage
CN110990104A (en) Unity 3D-based texture rendering method and device
CN116383545B (en) Webpage report template generation method, device, equipment and medium
CN103593532A (en) Data processing method and device for charting

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