Base map processing method and device
By adjusting and fusion of tiles in the base map, the problem of insufficient flexibility and adaptability of the base map processing methods in the existing technology is solved, and the base map style conversion and the integration of multiple base maps is realized, which improves the flexibility of display and adaptability.
Patent Information
- Application Number
- CN202411237456.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-12-20
AI Technical Summary
The existing basemap processing methods cannot adapt to different display needs, lack flexibility and adaptability, and cannot load multiple basemap or achieve fusion between different basemap providers.
By obtaining the pixel data and index values of multiple original tiles in the initial base map, adjusting these tiles based on the image processing method selected by the user, generating target tiles, and drawing target base maps according to the index value, realizing the base map style Conversion and fusion of multiple basemaps.
Improves the flexibility and adaptability of basemap services, allowing users to customize the fusion of basemap style and different basemap providers to meet multiple display needs.
Smart Images

Figure CN119166843A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a base map processing method and device. Background Art
[0002] The base map is the basic layer in the visualization display, which is used to provide basic information and background reference for the top layer of the display. For example, in the field of map services, the base map is used to provide basic background information of the map, such as land, water, roads, boundaries, etc. Common base maps include satellite images, topographic maps, street maps, etc.
[0003] However, a visualization display instance can only load one basemap. If you want to load multiple basemaps or form a new display style, such as synchronizing the color of the display instance with the color of the current browsing page, you need to create multiple display instances. In addition, it is impossible to achieve basemap fusion between different basemap providers. In other words, the existing basemap processing method cannot adapt the basemap to different display requirements, making it lack flexibility and adaptability. Summary of the invention
[0004] In view of this, the embodiments of the present disclosure at least provide a base map processing method, device, electronic device and storage medium, which can adapt the base map to different display requirements and improve the flexibility and adaptability of the base map service.
[0005] In a first aspect, an embodiment of the present disclosure provides a base map processing method, comprising:
[0006] Get the pixel data and index values of multiple original tiles in the initial base map;
[0007] Based on the image processing method selected by the user, pixel data of the plurality of original tiles are adjusted to obtain a plurality of target tiles;
[0008] Based on the index value, an image corresponding to each target tile is drawn to obtain a target base map.
[0009] Optionally, when there are at least two initial base maps, before obtaining the multiple target tiles, the method further includes:
[0010] Based on the index value, determining the position information of each original tile in the corresponding initial base map;
[0011] According to the adjusted pixel data, original tiles with consistent position information in different initial base maps are fused to obtain a plurality of fused target tiles; wherein the number of the plurality of fused target tiles is equal to the number of original tiles in each initial base map.
[0012] Optionally, drawing an image corresponding to each of the target tiles to obtain a target base map includes:
[0013] The drawn image is converted into a character string, and the character string is assigned to the source attribute corresponding to the original tile image to obtain the target base map.
[0014] Optionally, before obtaining the pixel data and index values of the multiple original tiles in the initial base map, the method further includes:
[0015] A user-defined basemap service link is obtained, and an initial basemap corresponding to the basemap service link is called.
[0016] Optionally, the index value includes the horizontal index, vertical index and zoom level of the original tile.
[0017] Optionally, when there are at least two initial base images, the image processing method includes at least one of multiply, blend, overlay, filter and difference.
[0018] Optionally, the method further comprises:
[0019] The initial base map and the target base map are displayed in the base map setting page; the base map setting page also includes a processing method selection area to allow the user to select the image processing method.
[0020] In a second aspect, an embodiment of the present disclosure provides a base map processing device, including:
[0021] An acquisition module, used to acquire pixel data and index values of multiple original tiles in the initial base map;
[0022] An adjustment module, configured to adjust the pixel data of the plurality of original tiles based on an image processing method selected by a user to obtain a plurality of target tiles;
[0023] A drawing module is used to draw an image corresponding to each of the target tiles based on the index value to obtain a target base map.
[0024] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps in the above-mentioned first aspect, or any optional implementation of the first aspect are performed.
[0025] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect, or any optional implementation of the first aspect are executed.
[0026] In any one of the above aspects or any implementation of any one of the aspects, pixel data and index values of multiple original tiles in the initial base map are obtained; based on the image processing method selected by the user, the pixel data of the multiple original tiles are adjusted to obtain multiple target tiles; based on the index value, an image corresponding to each target tile is drawn to obtain the target base map. Thus, each original tile in the initial base map is processed according to the processing method selected by the user, and redrawn into the processed target base map, thereby realizing the style conversion of the base map and improving the flexibility and adaptability of the base map service.
[0027] In a further embodiment of the present disclosure, when there are at least two initial base maps, after adjusting the pixel data of the plurality of original tiles and before obtaining the plurality of target tiles, it further includes: determining the position information of each original tile in the corresponding initial base map based on the index value; fusing the original tiles with consistent position information in different initial base maps according to the adjusted pixel data to obtain the fused plurality of target tiles; wherein the number of the fused plurality of target tiles is equal to the number of the original tiles in each initial base map. This enables the fusion of multiple base maps, further improving the flexibility and adaptability of the base map service. In addition, the base map service link in the embodiment of the present disclosure can be defined by the user, thereby enabling the fusion of base maps between different base map providers.
[0028] The effects of the above-mentioned base map processing device, electronic device and storage medium can be found in the description of the above-mentioned base map processing method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0030] Figure 1 A flowchart of a base map processing method provided by an embodiment of the present disclosure is shown;
[0031] Figure 2A schematic diagram of a base map processing device provided by an embodiment of the present disclosure is shown;
[0032] Figure 3 An exemplary system architecture is shown in which embodiments of the present disclosure may be applied;
[0033] Figure 4 A schematic diagram of the structure of a computer system of a terminal device or a server used to implement an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0035] It should be noted that in the technical solution of the present invention, the collection, use, storage, sharing and transfer of user personal information involved are in compliance with the provisions of relevant laws and regulations, and it is necessary to inform the user and obtain the user's consent or authorization. When applicable, the user's personal information is de-identified and / or anonymized and / or encrypted.
[0036] Research has found that the base map is the basic layer in the visualization display, which is used to provide basic information and background reference for the top layer of the display, and is very important for visualization and information communication. For example, in the field of map services, the map base map is used to provide basic background information of the map, such as land, water, roads, boundaries, etc.; common map base maps include satellite images, topographic maps, street maps, etc. Base map loading can be achieved by using the service interface provided by the base map provider. Developers can call these interfaces to request base map images or vector data and display them on the application canvas to provide corresponding basic information and reference background.
[0037] However, a display instance can often only load one basemap. If you want to load a lock basemap or overlay multiple basemaps to form a new display style, you usually need to create multiple display instances. It is impossible to integrate multiple basemaps on one display instance, let alone integrate basemaps between different basemap providers. Moreover, the basemap loaded by a display instance can often only be of a fixed style and cannot be applied to the display styles of different pages. If you want to customize the basemap style or integrate multiple basemaps to form a new basemap, the existing technology usually requires obtaining the basemap data and then publishing a new basemap to achieve this. Not only can ordinary users not obtain the basemap data, but the new basemap obtained in this way is also of a fixed style and still cannot adapt to the switching of multiple display styles.
[0038] Based on the above research, the disclosed embodiment provides a base map processing method, which can obtain pixel data and index values of multiple original tiles in the initial base map; adjust the pixel data of multiple original tiles based on the image processing method selected by the user to obtain multiple target tiles; and draw an image corresponding to each target tile based on the index value to obtain a target base map. Thus, each original tile in the initial base map is processed corresponding to the processing method selected by the user, and redrawn into the processed target base map, thereby realizing the style conversion of the base map and improving the flexibility and adaptability of the base map service. In addition, when there are at least two initial base maps, after adjusting the pixel data of multiple original tiles and before obtaining multiple target tiles, it also includes: determining the position information of each original tile in the corresponding initial base map based on the index value; according to the adjusted pixel data, the original tiles with consistent position information in different initial base maps are merged to obtain multiple merged target tiles; wherein the number of the merged multiple target tiles is equal to the number of the original tiles in each initial base map. Thus, the fusion of multiple base maps can be realized, further improving the flexibility and adaptability of the base map service. In addition, the basemap service link in the embodiment of the present disclosure may be user-defined, thereby enabling basemap fusion between different basemap providers.
[0039] The raising of the above problems and the solutions are the results obtained by the inventor after practice and careful research. The discovery process of the above problems and the solutions proposed for the above problems should be the contributions made by the inventor to the present disclosure during the disclosure process.
[0040] The technical solutions in the present disclosure will be clearly and completely described below in conjunction with the drawings in the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0041] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0042] To facilitate understanding of this embodiment, a base map processing method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the base map processing method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the base map processing method can be implemented by a processor calling a computer-readable instruction stored in a memory.
[0043] See also Figure 1 As shown, it is a flow chart of the base map processing method provided in the embodiment of the present disclosure. It should be noted that the following description of the base map processing method provided in the embodiment of the present disclosure is described by taking the map base map service scenario as an example, which does not constitute an improper limitation on the present invention. The base map processing method provided by the present invention can be applied to any scenario such as map service, data visualization, computer graphics, etc.; the method includes S101~S103, wherein:
[0044] S101: Obtain pixel data and index values of multiple original tiles in the initial base map.
[0045] In the disclosed embodiment, the index value is a parameter used to identify and locate multiple tiles, which may include a horizontal index, a vertical index, and a zoom level. In a specific implementation, a combination of x, y, and z may be used as the index value of each tile; wherein x may be used to represent the index or column number in the horizontal direction, which may usually be counted from 0 in an incrementing manner from left to right; y may be used to represent the index or row number in the vertical direction, which may usually be counted from 0 in an incrementing manner from top to bottom; and z may be used to represent the zoom level or level of the tile, wherein a smaller z value may be used to represent a larger base map range, and a larger z value may represent a more detailed base map range.
[0046] In the embodiment of the present disclosure, the execution subject of the embodiment of the present disclosure may request a base map service from a base map provider, and then receive the base map returned by the base map provider. Specifically, if the requested base map exceeds the processing capacity of a single request or the limitation of network transmission, the base map provider, in response to the request, returns a plurality of slices corresponding to the initial base map to the execution subject of the embodiment of the present disclosure. Since the size and shape of the slices here may be divided according to the design and implementation method of the base map service provider, when the execution subject of the embodiment of the present disclosure receives the base map returned by the base map provider, it may re-divide it according to its own needs to obtain a plurality of original tiles.
[0047] In a specific implementation, when the received initial base map is a complete base map, the executing body of the embodiment of the present disclosure can segment it according to the needs, and the visualization capabilities and needs of the current display page, data transmission efficiency, base map boundaries and other aspects can be used as references when segmenting. When the received original base map is a base map segmented by the base map provider, it can be re-segmented to adapt it to the tile specifications required by the embodiment of the present disclosure. It should be noted that when the number of initial base maps is greater than or equal to two, due to the differences in size, data volume and other aspects of different base maps, in order to facilitate subsequent processing, multiple base maps can be standardized, and then each initial base map can be segmented into the same number of original tiles.
[0048] In the disclosed embodiment, before obtaining the pixel data and index values of the plurality of original tiles in the initial base map, the method further includes: obtaining a base map service link defined by a user, and calling the initial base map corresponding to the base map service link.
[0049] In a specific implementation, the user can customize the base map service link, where the base map service link can be one or more; when there is one base map service link, the base map can be subsequently subjected to operations such as saturation, brightness, contrast, hue and blur; when there are at least two base map service links, the base map can be subsequently subjected to operations such as overlay, superposition, blending and difference. It should be noted that the base map service link here can be provided by the user himself, or it can be provided by the execution subject of the embodiment of the present disclosure and selected by the user. In addition, when there are at least two base map service links, the user can also be instructed to select the service link corresponding to the primary initial base map and the service link corresponding to the secondary initial base map. This will help to adjust the corresponding degree of different initial base maps according to the primary and secondary levels during the subsequent specific processing.
[0050] S102: Based on the image processing method selected by the user, pixel data of the plurality of original tiles are adjusted to obtain a plurality of target tiles.
[0051] In this step, the user can select or input a processing method for the initial base map in the current display page to adjust the pixel data of the initial base map.
[0052] In an embodiment of the present disclosure, when the number of initial base maps is one, the user can choose to perform operations such as saturation, brightness, contrast, hue and blur. In a preferred implementation, multiple original tiles of the initial base map can be adjusted in parallel to improve processing efficiency. Several common situations are exemplified below. It should be noted that the modification of pixel data here can be based on a numerical value set by the user or based on the visualization effect of the currently displayed page; and the following processing method for the original tiles is only exemplified as a possible implementation method of the embodiment of the present disclosure, and does not constitute an improper limitation on the present invention.
[0053] Exemplarily, when the processing method selected by the user is to adjust the saturation, each original tile image can be converted from the RGB color space to the HSV (Hue, Saturation, Value) color space, and then the data of the saturation channel can be modified. After the modification is completed, the image can be converted back to the RGB color space.
[0054] For example, when the processing method selected by the user is to adjust the brightness, the pixel data of each original tile can be adjusted by linear transformation. Specifically, when the background brightness needs to be increased, the RGB channel corresponding to each pixel can be increased by a constant; otherwise, it can be reduced by a constant.
[0055] For example, when the processing method selected by the user is to adjust the saturation, the pixel data of each original tile can be adjusted by linear transformation. Specifically, when the contrast of the base map needs to be increased, the pixel value of each original tile can be stretched along the grayscale direction to increase the difference between adjacent pixel values; otherwise, the pixel value of each original tile can be compressed along the grayscale direction to reduce the difference between adjacent pixel values.
[0056] Exemplarily, when the processing method selected by the user is to adjust the hue, each original tile image can be converted from the RGB color space to the HSV color space, and then the data of the hue channel can be modified as required. After the modification is completed, the image can be converted back to the RGB color space.
[0057] Exemplarily, when the processing method selected by the user is blur, each original tile can be blurred according to a preset blur method, such as Gaussian blur, mean blur, median blur, etc. Taking Gaussian blur as an example, the size of the blur kernel can be adjusted according to the blur processing degree set by the user. After determining the size of the blur kernel, a Gaussian kernel can be constructed and applied to each original tile. For each pixel in the tile, the surrounding pixels are convolved with the Gaussian kernel to calculate the blurred pixel data. In this process, the boundary pixel processing method of the original tiles located at the boundary of the base map also needs to be considered, such as filling the boundary pixel value, using mirroring or copying the boundary pixels, etc., to ensure that the convolution operation can be correctly applied to the entire base map.
[0058] It should be noted that the processing of an initial base map may also include a variety of processing methods such as brightness, sharpening, color temperature, and hue, which will not be described in detail here.
[0059] In another possible implementation, when the number of initial base maps is greater than or equal to two, the user can choose to perform processing such as overlay, superposition, blending and difference. As described above, when processing at least two initial base maps, multiple original tiles of different base maps can also be processed in parallel to improve processing efficiency.
[0060] In an embodiment of the present disclosure, when there are at least two initial base maps, before obtaining multiple target tiles, it also includes: based on the index value, determining the position information of each original tile in the corresponding initial base map; according to the adjusted pixel data, merging the original tiles with consistent position information in different initial base maps to obtain multiple fused target tiles; wherein the number of the multiple fused target tiles is equal to the number of original tiles in each initial base map.
[0061] In a specific implementation, the correspondence between the original tiles in different base maps can be determined based on the index value before or after adjusting the pixel data of the original tiles according to the specific processing method. For example, when the processing method is positive overlay, the specific processing steps are to multiply the pixel values of the original tiles with the same position information in different base maps to achieve the effect of color mixing. In this case, it is necessary to determine the correspondence between the original tiles in different base maps before adjusting the pixel data. When the processing method is transparency overlay, the pixel data of each initial base map can be adjusted according to the set transparency, and then the corresponding tiles can be overlaid. In this case, the correspondence between the original tiles in different base maps can be determined after adjusting the pixel data.
[0062] It should be noted that, since the initial base map has been segmented according to standardized specifications when it is received, and an equal number of original tiles are obtained for each initial base map, the number of target tiles after fusion is also equal to the number of original tiles of each initial base map.
[0063] Exemplarily, when the processing method selected by the user is mixing, each corresponding pixel point in the corresponding multiple original tiles can be mixed according to a set weight to achieve a highlight or shadow effect.
[0064] In the embodiments of the present disclosure, the processing methods for at least two initial base maps may also include superposition, difference, screening, etc., which will not be described in detail below and do not constitute an improper limitation on the present invention. It should be emphasized that the above-mentioned specific processing methods, whether for one initial base map or at least two initial base maps, are all illustrated as a possible implementation method and do not constitute an improper limitation on the present invention. In addition to the implementation methods for different processing methods described above, any feasible method may be used for implementation. In actual applications, the method is based on the ability to achieve its functions, and the present invention does not make specific limitations on this.
[0065] S103: Based on the index value, draw an image corresponding to each of the target tiles to obtain a target base map.
[0066] In this step, after the corresponding target tile is obtained, the image corresponding to each target tile can be drawn on the canvas provided by the execution subject of the embodiment of the present disclosure according to the index value corresponding to each target tile to obtain the final target base map.
[0067] In the disclosed embodiment, drawing an image corresponding to each of the target tiles to obtain a target base map includes: converting the drawn image into a string, assigning the string to a source attribute corresponding to the original tile image to obtain the target base map.
[0068] In a specific implementation, the image in the canvas can be converted into a Base64-encoded string, and the string is assigned to the source attribute corresponding to the original tile image, so that the processed target base map can be displayed in the current visualization page.
[0069] In the disclosed embodiment, a base map setting page may also be provided, and the initial base map and the current target base map may be displayed in a partial area of the page to assist the user in previewing the style of the final target base map in real time.
[0070] According to a second aspect of the embodiment of the present disclosure, Figure 2 As shown, a base map processing device 200 is provided, comprising:
[0071] An acquisition module 201 is used to acquire pixel data and index values of a plurality of original tiles in an initial base map;
[0072] An adjustment module 202, configured to adjust the pixel data of the plurality of original tiles based on an image processing method selected by a user to obtain a plurality of target tiles;
[0073] The drawing module 203 is used to draw an image corresponding to each of the target tiles based on the index value to obtain a target base map.
[0074] Optionally, the adjustment module 202 is further configured to:
[0075] Based on the index value, determining the position information of each original tile in the corresponding initial base map;
[0076] According to the adjusted pixel data, original tiles with consistent position information in different initial base maps are fused to obtain a plurality of fused target tiles; wherein the number of the plurality of fused target tiles is equal to the number of original tiles in each initial base map.
[0077] Optionally, the drawing module 203 is specifically used for:
[0078] The drawn image is converted into a character string, and the character string is assigned to the source attribute corresponding to the original tile image to obtain the target base map.
[0079] Optionally, the acquisition module 201 is specifically used for:
[0080] A user-defined basemap service link is obtained, and an initial basemap corresponding to the basemap service link is called.
[0081] Optionally, the index value includes the horizontal index, vertical index and zoom level of the original tile.
[0082] Optionally, when there are at least two initial base images, the image processing method includes at least one of multiply, blend, overlay, filter and difference.
[0083] Optionally, the drawing module 202 is further used for:
[0084] The initial base map and the target base map are displayed in the base map setting page; the base map setting page also includes a processing method selection area to allow the user to select the image processing method.
[0085] According to the third aspect of an embodiment of the present disclosure, there is provided an electronic device for background map processing, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided by the first aspect of the embodiment of the present disclosure.
[0086] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present disclosure is implemented.
[0087] Figure 3 An exemplary system architecture 300 is shown to which the base map processing method or base map processing apparatus implemented by the present disclosure can be applied.
[0088] like Figure 3 As shown, the system architecture 300 may include terminal devices 301, 302, 303, a network 304 and a server 305. The network 304 is used to provide a medium for communication links between the terminal devices 301, 302, 303 and the server 305. The network 304 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0089] Users can use terminal devices 301, 302, 303 to interact with server 305 through network 304 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 301, 302, 303, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0090] The terminal devices 301 , 302 , and 303 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0091] The server 305 may be a server that provides various services, such as a background management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 301, 302, and 303. The background management server may process the received base map processing request and feed back the processing result (only an example) to the terminal device.
[0092] It should be noted that the base map processing method provided in the embodiment of the present invention is generally executed by the server 305, and accordingly, the base map processing device is generally set in the server 305. The base map processing method provided in the embodiment of the present invention can also be executed by the terminal devices 301, 302, and 303, and accordingly, the base map processing device can be set in the terminal devices 301, 302, and 303.
[0093] It should be understood that Figure 3 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0094] Reference below Figure 4 , which shows a schematic diagram of the structure of a computer system 400 of a terminal device suitable for implementing an embodiment of the present invention. Figure 4 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0095] like Figure 4 As shown, the computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the system 400 are also stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0096] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
[0097] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, the above-mentioned functions defined in the system of the present invention are executed.
[0098] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0099] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0100] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, a processor includes an acquisition module, an adjustment module, and a drawing module, wherein the names of these modules do not constitute a limitation on the modules themselves in certain cases. For example, the acquisition module may also be described as a "module for acquiring pixel data and index values of multiple original tiles in an initial base map".
[0101] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device implements the following method:
[0102] Get the pixel data and index values of multiple original tiles in the initial base map;
[0103] Based on the image processing method selected by the user, pixel data of the plurality of original tiles are adjusted to obtain a plurality of target tiles;
[0104] Based on the index value, an image corresponding to each target tile is drawn to obtain a target base map.
[0105] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be based on the protection scope of the claims.
Claims
1. A base map processing method, characterized in that: include: Get the pixel data and index values of multiple original tiles in the initial base map; Based on the image processing method selected by the user, pixel data of the plurality of original tiles are adjusted to obtain a plurality of target tiles; Based on the index value, an image corresponding to each target tile is drawn to obtain a target base map.
2. The method according to claim 1, characterized in that When there are at least two initial base maps, before obtaining multiple target tiles, the method further includes: Based on the index value, determining the position information of each original tile in the corresponding initial base map; According to the adjusted pixel data, original tiles with consistent position information in different initial base maps are fused to obtain a plurality of fused target tiles; wherein the number of the plurality of fused target tiles is equal to the number of original tiles in each initial base map.
3. The method according to claim 1, characterized in that Drawing an image corresponding to each of the target tiles to obtain a target base map includes: The drawn image is converted into a character string, and the character string is assigned to the source attribute corresponding to the original tile image to obtain the target base map.
4. The method according to claim 1 or 2, characterized in that: Before obtaining the pixel data and index values of multiple original tiles in the initial base map, it also includes: A user-defined basemap service link is obtained, and an initial basemap corresponding to the basemap service link is called.
5. The method according to claim 1, characterized in that The index value includes the horizontal index, vertical index and zoom level of the original tile.
6. The method according to claim 1, characterized in that When there are at least two initial base images, the image processing method includes at least one of multiply, blend, overlay, filter and difference.
7. The method according to claim 1, characterized in that The method further comprises: The initial base map and the target base map are displayed in the base map setting page; the base map setting page also includes a processing method selection area to allow the user to select the image processing method.
8. A base map processing device, characterized in that: include: An acquisition module, used to acquire pixel data and index values of multiple original tiles in the initial base map; An adjustment module, configured to adjust the pixel data of the plurality of original tiles based on an image processing method selected by a user to obtain a plurality of target tiles; A drawing module is used to draw an image corresponding to each of the target tiles based on the index value to obtain a target base map.
9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Fusion method of live-action hand-drawn map and electronic map
CN111833279A
Dynamic color matching method for online map tiles
CN116893871A
