CN112131323A - Map display method and device - Google Patents

Map display method and device Download PDF

Info

Publication number
CN112131323A
CN112131323A CN201910554326.1A CN201910554326A CN112131323A CN 112131323 A CN112131323 A CN 112131323A CN 201910554326 A CN201910554326 A CN 201910554326A CN 112131323 A CN112131323 A CN 112131323A
Authority
CN
China
Prior art keywords
building
roof
data
map
type
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
CN201910554326.1A
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.)
Shanghai Qinggan Intelligent Technology Co Ltd
Original Assignee
Shanghai Qinggan Intelligent Technology 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 Shanghai Qinggan Intelligent Technology Co Ltd filed Critical Shanghai Qinggan Intelligent Technology Co Ltd
Priority to CN201910554326.1A priority Critical patent/CN112131323A/en
Publication of CN112131323A publication Critical patent/CN112131323A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/36Input/output arrangements for on-board computers
    • G01C21/3667Display of a road map
    • G01C21/367Details, e.g. road map scale, orientation, zooming, illumination, level of detail, scrolling of road map or positioning of current position marker

Abstract

The present invention relates to map display technologies, and in particular, to a map display method, apparatus, and computer readable medium. The method comprises the following steps: obtaining map data, the map data comprising 2D data and type data of a building, the 2D data of the building indicating a 2D shape of the building; determining a roof type of the building from the building type data; generating a rooftop graph of the building from the 2D data of the building and the rooftop type; and displaying a roof graphic of the building. The invention can identify buildings of different types to inform users of the purposes of the buildings and beautify a map display interface to improve user experience.

Description

Map display method and device
Technical Field
The present invention relates to map display technologies, and in particular, to a map display method, a map display apparatus, and a computer readable medium.
Background
The map is an image symbolic model which reflects objective reality in a certain mathematical rule (namely modeling), symbolization and abstraction manner or is called as a graphic mathematical model. The map uses map language to reflect the natural and human phenomena on the earth (or other stars) on the plane in a reduced way by drawing synthesis according to a certain mathematical rule, thereby reflecting the spatial distribution, combination, connection, quantity and quality characteristics of various phenomena and the development and change of the phenomena in time.
At present, with the benefit of the wide application of electronic devices such as computers and mobile phones in cartography, maps are no longer limited to being represented on paper (or similar media) by symbols and graphics, and can be stored on magnetic media in a digital form or visually processed and represented on a screen, so as to provide a route planning and guiding function for users who go out or are about to go out.
However, in current electronic map interfaces, all buildings are displayed monotonically in their 2D contour shape. Such a monotonous display mode is not only lack of aesthetic feeling, but also lack of basic identification function, which is not beneficial for users to identify different types of buildings.
Under the conditions that the urban road is complex and the high buildings are erected at present, it is not easy to quickly find the position of a destination in a complicated urban map. Particularly, in the case where the user does not know a specific address of a destination or the destination address is too complicated to find the destination, the act of finding the destination by referring to a paper or electronic map may seriously distract the user, thereby causing a traffic hazard.
Therefore, there is a need in the art for a map display technology for identifying different types of buildings to inform users of their purposes, and for beautifying the map display interface to enhance the user experience.
Disclosure of Invention
The following presents a simplified summary of one or more aspects in order to provide a basic understanding of such aspects. This summary is not an extensive overview of all contemplated aspects, and is intended to neither identify key or critical elements of all aspects nor delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed description that is presented later.
In order to identify different types of buildings to inform users of their purposes and simultaneously beautify a map display interface to enhance user experience, the present invention provides a map display method, a map display apparatus, and a computer-readable medium.
The map display method provided by the invention comprises the following steps:
obtaining map data, the map data comprising 2D data and type data of a building, the 2D data of the building indicating a 2D shape of the building;
determining a roof type of the building from the building type data;
generating a rooftop graph of the building from the 2D data of the building and the rooftop type; and
displaying a roof graphic of the building.
Preferably, in the above map display method provided by the present invention, the type data of the building may indicate that the building is a residential type building, a commercial type building, an industrial type building or a public utility type building,
the determining of the roof type of the building from the building type data may comprise the steps of:
determining, based on the type data of the building, that the roof type of the building is a residential, commercial, industrial, or utility type roof.
Preferably, the map display method provided by the present invention may further include:
the residential, commercial, industrial, and institutional roofs are assigned different roof patterns, which may include several of flat-topped, cove-topped, sloped, pyramid, curved, and semi-sloped roofs.
Optionally, in the above map display method provided by the present invention, the generating a roof graph of the building according to the 2D data of the building and the roof type may include:
determining a plane range covered by the building in the map according to the 2D data of the building;
extracting the outermost contour of a plane range covered by the building in the map as the contour of the building; and
generating a rooftop graphic of the building according to the outline of the building and the rooftop type.
Preferably, in the above map display method provided by the present invention, the 2D data of the building may include all points (x, y) covered in the map by the building,
the determining the plane range covered by the building in the map according to the 2D data of the building may include the steps of:
determining the plane range covered by the building in the map according to all points (x, y) covered by the building in the map.
Optionally, in the above map display method provided by the present invention, the generating a roof graph of a building according to an outline of the building and the roof type may include:
and directly using the outline graph of the building as the roof graph of the building with the flat roof.
Optionally, in the above map display method provided by the present invention, the generating a roof graph of a building according to an outline of the building and the roof type may include:
and the figure generated by inwards offsetting the outline of the building by a preset distance is used as the roof figure of the building with the concave edge roof.
Optionally, in the above map display method provided by the present invention, the generating a roof graph of a building according to an outline of the building and the roof type may include:
and calculating the gravity center of the outline of the building, drawing a line segment with a preset length through the gravity center, and connecting the line segment with each vertex of the outline of the building to generate a graph as the roof graph of the building with the slope roof.
Optionally, in the above map display method provided by the present invention, the generating a roof graph of a building according to an outline of the building and the roof type may include:
and calculating the gravity center of the outline of the building, and connecting the gravity center with each vertex of the outline of the building to generate a graph as the roof graph of the building with the pyramid roof.
Optionally, in the above map display method provided by the present invention, the generating a roof graph of a building according to an outline of the building and the roof type may include:
generating two opposite circular arcs on a pair of opposite sides of the outline of the building, and using the graph generated by connecting the two opposite circular arcs as the roof graph of the building with the arc roof.
Optionally, in the above map display method provided by the present invention, the generating a roof graph of a building according to an outline of the building and the roof type may include:
and inwards offsetting the outline of the building by a preset distance, and connecting the vertex of the offset generated graph with the corresponding vertex in the outline of the building to generate a graph which is used as the roof graph of the building with the semi-slope roof.
Optionally, in the above map display method provided by the present invention, the map data may further include height data of the building,
the generating a rooftop graph of the building from the 2D data of the building and the rooftop type may further include:
generating a stereoscopic model of the building in the map from the 2D data of the building and the height data of the building;
placing a roof graphic of the building on a top surface of the three-dimensional model according to the height data; and
and allocating a preset height to the roof graph of the building to generate a three-dimensional roof graph.
According to another aspect of the present invention, there is also provided a map display apparatus.
The map display device of the present invention includes:
a memory; and
a processor coupled to the memory and configured to:
obtaining map data, the map data comprising 2D data and type data of a building, the 2D data of the building indicating a 2D shape of the building;
determining a roof type of the building from the building type data;
generating a rooftop graph of the building from the 2D data of the building and the rooftop type; and
displaying a roof graphic of the building.
Preferably, in the above map display apparatus provided by the present invention, the type data of the building may indicate that the building is a residential type building, a commercial type building, an industrial type building or a public utility type building,
the processor may be further configured to:
determining, based on the type data of the building, that the roof type of the building is a residential, commercial, industrial, or utility type roof.
Preferably, in the above map display apparatus provided by the present invention, the processor may be further configured to:
the residential, commercial, industrial, and institutional roofs are assigned different roof patterns, which may include several of flat-topped, cove-topped, sloped, pyramid, curved, and semi-sloped roofs.
Optionally, in the above map display apparatus provided by the present invention, the processor may be further configured to:
determining a plane range covered by the building in the map according to the 2D data of the building;
extracting the outermost contour of a plane range covered by the building in the map as the contour of the building; and
generating a rooftop graphic of the building according to the outline of the building and the rooftop type.
Preferably, in the above map display apparatus provided by the present invention, the 2D data of the building may include all points (x, y) covered in the map by the building,
the processor may be further configured to:
determining the plane range covered by the building in the map according to all points (x, y) covered by the building in the map.
Optionally, in the above map display apparatus provided by the present invention, the processor may be further configured to:
and directly using the outline graph of the building as the roof graph of the building with the flat roof.
Optionally, in the above map display apparatus provided by the present invention, the processor may be further configured to:
and the figure generated by inwards offsetting the outline of the building by a preset distance is used as the roof figure of the building with the concave edge roof.
Optionally, in the above map display apparatus provided by the present invention, the processor may be further configured to:
and calculating the gravity center of the outline of the building, drawing a line segment with a preset length through the gravity center, and connecting the line segment with each vertex of the outline of the building to generate a graph as the roof graph of the building with the slope roof.
Optionally, in the above map display apparatus provided by the present invention, the processor may be further configured to:
and calculating the gravity center of the outline of the building, and connecting the gravity center with each vertex of the outline of the building to generate a graph as the roof graph of the building with the pyramid roof.
Optionally, in the above map display apparatus provided by the present invention, the processor may be further configured to:
generating two opposite circular arcs on a pair of opposite sides of the outline of the building, and using the graph generated by connecting the two opposite circular arcs as the roof graph of the building with the arc roof.
Optionally, in the above map display apparatus provided by the present invention, the processor may be further configured to:
and inwards offsetting the outline of the building by a preset distance, and connecting the vertex of the offset generated graph with the corresponding vertex in the outline of the building to generate a graph which is used as the roof graph of the building with the semi-slope roof.
Alternatively, in the above map display device provided by the present invention, the map data may further include height data of the building,
the processor may be further configured to:
generating a stereoscopic model of the building in the map from the 2D data of the building and the height data of the building;
placing a roof graphic of the building on a top surface of the three-dimensional model according to the height data; and
and allocating a preset height to the roof graph of the building to generate a three-dimensional roof graph.
According to another aspect of the present invention, a computer-readable medium is also provided herein.
The present invention provides the computer readable medium having stored thereon computer instructions, which when executed by a processor, can implement any of the above-described map display methods.
Drawings
The above features and advantages of the present disclosure will be better understood upon reading the detailed description of embodiments of the disclosure in conjunction with the following drawings. In the drawings, components are not necessarily drawn to scale, and components having similar relative characteristics or features may have the same or similar reference numerals.
Fig. 1 illustrates a flow chart of a map display method provided according to an aspect of the present invention.
FIG. 2A illustrates a schematic view of a flat roof design provided in accordance with one embodiment of the present invention.
FIG. 2B illustrates a schematic view of a cavity roof pattern provided in accordance with one embodiment of the present invention.
Fig. 2C shows a schematic view of a pitched roof pattern provided in accordance with one embodiment of the present invention.
FIG. 2D illustrates a schematic diagram of a pyramidal roof pattern provided in accordance with an embodiment of the present invention.
Figure 2E shows a schematic view of a cambered roof pattern provided in accordance with one embodiment of the present invention.
Fig. 2F illustrates a schematic diagram of a semi-sloping roof pattern provided in accordance with an embodiment of the present invention.
FIG. 3A illustrates a schematic view of a three-dimensional flat roof design provided in accordance with one embodiment of the present invention.
FIG. 3B illustrates a schematic view of a three-dimensional cove roof design provided in accordance with one embodiment of the present invention.
Fig. 3C illustrates a schematic diagram of a three-dimensional sloped roof pattern provided in accordance with an embodiment of the present invention.
Fig. 3D illustrates a schematic diagram of a three-dimensional pyramidal roof pattern provided in accordance with an embodiment of the present invention.
Figure 3E illustrates a schematic view of a steradian roof pattern provided according to one embodiment of the present invention.
Fig. 3F illustrates a schematic view of a three-dimensional semi-sloping roof pattern provided in accordance with an embodiment of the present invention.
Fig. 4 is a schematic view illustrating a structure of a map display apparatus provided according to another aspect of the present invention.
Reference numerals:
101-104 steps of a map display method;
40 a map display device;
41 a memory;
42 a processor;
43 user interface.
Detailed Description
The following description of the embodiments of the present invention is provided for illustrative purposes, and other advantages and effects of the present invention will become apparent to those skilled in the art from the present disclosure. While the invention will be described in connection with the preferred embodiments, there is no intent to limit its features to those embodiments. On the contrary, the invention is described in connection with the embodiments for the purpose of covering alternatives or modifications that may be extended based on the claims of the present invention. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. The invention may be practiced without these particulars. Moreover, some of the specific details have been left out of the description in order to avoid obscuring or obscuring the focus of the present invention.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Additionally, the terms "upper," "lower," "left," "right," "top," "bottom," "horizontal," "vertical" and the like as used in the following description are to be understood as referring to the segment and the associated drawings in the illustrated orientation. The relative terms are used for convenience of description only and do not imply that the described apparatus should be constructed or operated in a particular orientation and therefore should not be construed as limiting the invention.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, regions, layers and/or sections, these elements, regions, layers and/or sections should not be limited by these terms, but rather are used to distinguish one element, region, layer and/or section from another element, region, layer and/or section. Thus, a first component, region, layer or section discussed below could be termed a second component, region, layer or section without departing from some embodiments of the present invention.
In order to identify different types of buildings to inform users of their purposes, and to beautify a map display interface to enhance user experience, embodiments of a map display method, embodiments of a map display apparatus, and embodiments of a computer-readable medium are provided.
Referring to fig. 1, fig. 1 is a flow chart illustrating a map display method according to an aspect of the present invention.
As shown in fig. 1, the map display method provided in this embodiment may include the steps of:
101: map data is acquired.
In the map display method provided in the present embodiment, the map data may be map vector data. The map data includes, but is not limited to, 2D data of buildings and type data of the buildings.
It will be appreciated by those skilled in the art that the vector map is displayed in a zoomed-in or zoomed-out manner without distortion of the map information, as compared to an electronic map using grid data. In addition, the user can also edit each model on the map conveniently, and solve the spatial relationship among the models, which is beneficial to the browsing and output of the map.
The 2D data of the building described above may be used to indicate the 2D shape of the building, i.e. the projected shape of the building as overhead forward projected in the planar map.
In particular, the 2D data of the building may be a set of all points (x, y) covered by the building in the map. That is, the 2D data of a building may include all points (x, y) that the building covers in the map.
It will be understood by those skilled in the art that when there are multiple buildings in the map, the 2D data of the buildings may also be a set of all points (x, y) covered in the map by each building in the map. That is, the 2D data of the buildings may also include all points (x, y) covered in the map by each building.
In the map display method provided in the present embodiment, the type data of the building may be used to indicate that a building is any one of a residential building, a commercial building, an industrial building, or a public utility building. The map display apparatus may determine the type of each building by reading the value of the type data of each building in the map data.
Optionally, the map display device may obtain offline local map data from a local storage, or obtain online map data from a cloud server.
The map display device includes, but is not limited to, a mobile phone, a vehicle-mounted computer, and other electronic devices. Accordingly, the cloud server includes, but is not limited to, a cloud navigation server communicatively connected to the map display device.
It will be understood by those skilled in the art that, in the present embodiment, by using offline map data pre-stored in the local storage, a user can acquire map data within a desired map range at any time even in an environment without a network.
In another embodiment, the online map data obtained from the cloud server has better real-time performance than the offline map data. Therefore, by using the online map data acquired from the cloud server as described above, the user can acquire real-time map data, thereby more accurately determining the 2D shape and building type of each building in the map range.
It can be understood that the user can select whether to adopt the scheme of obtaining the offline local map data from the local memory or the scheme of obtaining the online map data from the cloud server by operating the user interface of the map display device.
As shown in fig. 1, in the map display method provided in this embodiment, the method may further include the steps of:
102: the roof type of the building is determined from the building type data.
In response to a specific arrangement in which the type data of the buildings indicates that one building is any one of a residential building, a commercial building, an industrial building, or a public utility building, the map display apparatus may determine that the roof type of each building is a residential roof, a commercial roof, an industrial roof, or a public utility roof based on the type data of each building in the map data.
After determining the roof type of each building, the map display apparatus may further assign different roof patterns to residential, commercial, industrial, and utility roofs. The allocation plan may be set in advance in the map display device, or may be randomly generated in the map display device.
With further reference to fig. 2A-2F, fig. 2A-2F illustrate various roof designs provided in accordance with various embodiments of the present invention.
As shown in fig. 2A-2F, the roof pattern includes, but is not limited to, several of flat roofs, concave roofs, sloped roofs, pyramidal roofs, curved roofs, and semi-sloped roofs. Each roof type can correspond to a determined roof pattern, so that a user can judge the specific type and use of each building in the map according to the roof pattern.
Preferably, in the navigation mode, the map display device may also assign a unique roof pattern (e.g., a curved roof) to the destination selected by the user according to the destination address input by the user, so that the user can quickly recognize the destination in the map navigation page of the complex road and high building standing.
As shown in fig. 1, in the map display method provided in this embodiment, the method may further include the steps of:
103: a rooftop graph of the building is generated from the 2D data and the rooftop type of the building.
Specifically, the map display device may first read the 2D data of the buildings to obtain the positions of all points (x, y) covered by each building in the map range, and then determine the plane range covered by the buildings in the map.
Then, the map display apparatus may extract an outermost contour of a plane range covered in the map by each building in the map range, and take the outermost contour as the contour of the buildings.
Then, the map display apparatus may generate a roof figure of each building according to the outlines of the buildings and the types of roofs of the buildings, respectively.
To put it differently, as shown in fig. 2A, in response to determining that the roof type of a building is a residential roof and that the roof pattern allocated to the residential roof in the above-described map display method provided in the present embodiment is a flat roof, the map display apparatus may directly use the outline pattern of the building as the roof pattern of the building.
As shown in fig. 2B, in response to determining that the roof type of a building is a commercial roof and that the roof pattern allocated to the commercial roof in the above-described map display method provided in the present embodiment is a concave-edged roof, the map display apparatus may shift the outline of the building integrally inward by a preset distance and take the generated pattern as the roof pattern of the building.
The preset distance may be set in advance in the map display device, may be determined by the map display device at a certain scale according to the outline size of the building, or may be determined by manual input by the user.
As shown in fig. 2C, in response to determining that the roof type of a building is an industrial roof and that the roof pattern allocated to the industrial roof in the map display method provided in this embodiment is a sloped roof, the map display apparatus may calculate the center of gravity of the outline of the building, make a line segment of a predetermined length through the center of gravity, connect the line segment to each vertex of the outline of the building, and use the generated graph as the roof pattern of the building.
The preset length may be set in advance in the map display device, may be determined by the map display device at a certain scale according to the outline size of the building, or may be determined by manual input by the user.
As shown in fig. 2D, in response to determining that the roof type of a building is a utility type roof and that the roof pattern allocated to the utility type roof in the above map display method provided in the present embodiment is a pyramid roof, the map display apparatus may calculate the center of gravity of the outline of the building, connect the center of gravity to the vertices of the outline of the building, and use the generated graph as the roof pattern of the building.
As shown in fig. 2E, in response to determining that a building is a destination selected by the user in the navigation mode and the roof pattern allocated to the destination building in the above-described map display method provided in the present embodiment is a curved roof, the map display apparatus may first generate two opposing arcs on a pair of opposing sides of the outline of the building, and then connect the two opposing arcs, and take the generated figure as the roof pattern of the destination building. The scheme of allocating the unique roof pattern to the destination selected by the user according to the destination address input by the user can facilitate the user to quickly identify the destination in the map navigation page with complex roads and standing high buildings.
As shown in fig. 2F, in response to determining that the type of the roof of a building does not conform to any of the above allocation manners, the map display method provided in the present embodiment may allocate a roof pattern of a half-slope roof to the roof of the building. The map display device may first shift the outline of the building inward by a predetermined distance, then connect the vertex of the generated graph shifted with the corresponding vertex in the outline of the building, and use the generated graph as the roof graph of the building.
It will be appreciated by those skilled in the art that the solution shown in fig. 2A-2F for assigning different roof designs to different types of buildings is only one specific solution provided by the present embodiment, and is mainly used to more clearly disclose the main idea of the present invention, so that the public can more clearly understand how to implement the technical solution of the present invention, and not to limit the protection scope of the present invention.
In other embodiments, those skilled in the art can assign other roof patterns to different types of buildings based on the concept of the present invention, so as to obtain the effect of distinguishing different types of buildings and beautifying the map interface.
As shown in fig. 1, in the map display method provided in this embodiment, the method may further include the steps of:
104: a roof graphic of a building is displayed.
After the roof graphics of each building in the map range are generated, the map display method provided by the embodiment can display the roof graphics of the buildings on the user interfaces of any map display devices such as a mobile phone, a vehicle end of a vehicle and the like, so that the purpose of identifying the buildings of different types is informed to a user, and meanwhile, the map display interface is beautified to improve the user experience effect.
In a map display method according to another embodiment of the present invention, the map data may preferably include height data of each building in a map range. The map display device may further display a stereoscopic 3D map in combination with the height data, and display a stereoscopic roof figure of the building.
In other words, the map display apparatus may generate the plane roof graph of each building within the map range according to the map display method provided in the above embodiment, and the specific process and steps thereof are not repeated herein.
Then, the map display apparatus may generate a three-dimensional model of each building in the 3D map based on the 2D data of each building and its corresponding height data within the map range.
Then, the map display apparatus may further place the flat roof figures of the buildings on top of the three-dimensional model thereof based on the height data of each building, and assign a preset height to the flat roof figure of each building to generate the three-dimensional roof figure.
The preset height may be set in advance in the map display device, or may be determined by the map display device at a certain scale according to the specific height of the three-dimensional model of the building, or may be determined by manual input by the user.
Referring further to fig. 3A-3F, fig. 3A-3F are schematic diagrams illustrating various three-dimensional roof patterns according to various embodiments of the present invention.
As shown in fig. 3A, in the map display method provided in this embodiment, the white top surface of the three-dimensional model of the flat-topped roof building may be directly used as the three-dimensional roof graph.
As shown in fig. 3B, in the map display method provided in this embodiment, the annular pattern sandwiched between the pattern obtained by inwardly offsetting the concave-sided roof building by a preset distance and the top contour of the three-dimensional model of the building may be lowered down by a preset height to generate a gray three-dimensional roof pattern.
As shown in fig. 3C, in the map display method provided in this embodiment, a line segment in the roof graph of the sloping roof building may be lifted up by a preset height to generate a gray stereoscopic roof graph.
As shown in fig. 3D, in the map display method provided in this embodiment, a center of gravity point in a roof graph of a pyramid roof building may be raised by a preset height to generate a gray stereoscopic roof graph.
As shown in fig. 3E, in the above map display method provided in this embodiment, two opposite circular arcs in the roof pattern of the arc roof building may be set to be upwardly raised by a preset height, and then the two opposite circular arcs may be connected to generate a gray stereoscopic roof pattern.
As shown in fig. 3F, in the above map display method provided in this embodiment, a plurality of vertices in the roof pattern of the half-slope roof building may be lowered by a preset height, and then the vertices of the pattern generated by the corresponding offset may be connected to generate a gray stereoscopic roof pattern.
It will be appreciated by those skilled in the art that the solution shown in fig. 3A-3F for assigning different three-dimensional roof patterns to different types of buildings is only one specific solution provided by the present embodiment, and is mainly used to more clearly disclose the main concept of the present invention, so that the public can more clearly understand how to implement the technical solution of the present invention, and not to limit the protection scope of the present invention.
In other embodiments, a person skilled in the art can assign other three-dimensional roof patterns to other different types of buildings based on the concept of the present invention, so as to obtain the effects of distinguishing different types of buildings and beautifying the map interface.
While, for purposes of simplicity of explanation, the methodologies are shown and described as a series of acts, it is to be understood and appreciated that the methodologies are not limited by the order of acts, as some acts may, in accordance with one or more embodiments, occur in different orders and/or concurrently with other acts from that shown and described herein or not shown and described herein, as would be understood by one skilled in the art.
According to another aspect of the present invention, there is also provided herein an embodiment of a map display apparatus.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a map display apparatus 40 according to another aspect of the present invention.
As shown in fig. 4, the map display apparatus 40 provided in the present embodiment may include a memory 41 and a processor 42 coupled to the memory 41.
The processor 42 is communicatively coupled to the user interface 43 and may be configured to implement the map display method provided in any of the embodiments described above, so as to identify different types of buildings to inform the user of their usage, and to enhance the map display interface to enhance the user experience.
According to another aspect of the invention, a computer-readable medium embodiment is also provided herein.
The computer readable medium provided by this embodiment may have stored thereon computer instructions, which when executed by the processor 42, may implement the map display method provided by any of the above embodiments, so as to identify different types of buildings to inform users of their purposes, and simultaneously beautify the map display interface to improve the user experience.
Those of skill in the art would understand that information, signals, and data may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits (bits), symbols, and chips that may be referenced throughout the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The various illustrative logical modules, and circuits described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software as a computer program product, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a web site, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk (disk) and disc (disc), as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk and blu-ray disc where disks (disks) usually reproduce data magnetically, while discs (discs) reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (25)

1. A map display method, comprising:
obtaining map data, the map data comprising 2D data and type data of a building, the 2D data of the building indicating a 2D shape of the building;
determining a roof type of the building from the building type data;
generating a rooftop graph of the building from the 2D data of the building and the rooftop type; and
displaying a roof graphic of the building.
2. The map display method according to claim 1, wherein the type data of the building indicates that the building is a residential type building, a commercial type building, an industrial type building, or a public utility type building,
the determining a roof type of the building from the building type data comprises:
determining, based on the type data of the building, that the roof type of the building is a residential, commercial, industrial, or utility type roof.
3. The map display method according to claim 2, further comprising:
the residential, commercial, industrial, and institutional roofs are assigned different roof patterns including several of flat-topped, cove-topped, sloped, pyramid, curved, and semi-sloped roofs.
4. The map display method of claim 1, wherein the generating the rooftop graphic of the building from the 2D data of the building and the rooftop type comprises:
determining a plane range covered by the building in the map according to the 2D data of the building;
extracting the outermost contour of a plane range covered by the building in the map as the contour of the building; and
generating a rooftop graphic of the building according to the outline of the building and the rooftop type.
5. The map display method of claim 4, wherein the 2D data of the building includes all points (x, y) covered by the building in the map,
the determining, from the 2D data of the building, a planar range covered by the building in the map comprises:
determining the plane range covered by the building in the map according to all points (x, y) covered by the building in the map.
6. The map display method of claim 4, wherein the generating the rooftop graphic of the building according to the outline of the building and the rooftop type comprises:
and directly using the outline graph of the building as the roof graph of the building with the flat roof.
7. The map display method of claim 4, wherein the generating the rooftop graphic of the building according to the outline of the building and the rooftop type comprises:
and the figure generated by inwards offsetting the outline of the building by a preset distance is used as the roof figure of the building with the concave edge roof.
8. The map display method of claim 4, wherein the generating the rooftop graphic of the building according to the outline of the building and the rooftop type comprises:
and calculating the gravity center of the outline of the building, drawing a line segment with a preset length through the gravity center, and connecting the line segment with each vertex of the outline of the building to generate a graph as the roof graph of the building with the slope roof.
9. The map display method of claim 4, wherein the generating the rooftop graphic of the building according to the outline of the building and the rooftop type comprises:
and calculating the gravity center of the outline of the building, and connecting the gravity center with each vertex of the outline of the building to generate a graph as the roof graph of the building with the pyramid roof.
10. The map display method of claim 4, wherein the generating the rooftop graphic of the building according to the outline of the building and the rooftop type comprises:
generating two opposite circular arcs on a pair of opposite sides of the outline of the building, and using the graph generated by connecting the two opposite circular arcs as the roof graph of the building with the arc roof.
11. The map display method of claim 4, wherein the generating the rooftop graphic of the building according to the outline of the building and the rooftop type comprises:
and inwards offsetting the outline of the building by a preset distance, and connecting the vertex of the offset generated graph with the corresponding vertex in the outline of the building to generate a graph which is used as the roof graph of the building with the semi-slope roof.
12. The map display method of claim 4, wherein the map data further includes height data of the building,
the generating a rooftop graph of the building from the 2D data of the building and the rooftop type further comprises:
generating a stereoscopic model of the building in the map from the 2D data of the building and the height data of the building;
placing a roof graphic of the building on a top surface of the three-dimensional model according to the height data; and
and allocating a preset height to the roof graph of the building to generate a three-dimensional roof graph.
13. A map display apparatus, comprising:
a memory; and
a processor coupled to the memory and configured to:
obtaining map data, the map data comprising 2D data and type data of a building, the 2D data of the building indicating a 2D shape of the building;
determining a roof type of the building from the building type data;
generating a rooftop graph of the building from the 2D data of the building and the rooftop type; and
displaying a roof graphic of the building.
14. The map display apparatus of claim 13, wherein the type data of the building indicates that the building is a residential type building, a commercial type building, an industrial type building, or a utility type building,
the processor is further configured to:
determining, based on the type data of the building, that the roof type of the building is a residential, commercial, industrial, or utility type roof.
15. The map display apparatus of claim 14, wherein the processor is further configured to:
the residential, commercial, industrial, and institutional roofs are assigned different roof patterns including several of flat-topped, cove-topped, sloped, pyramid, curved, and semi-sloped roofs.
16. The map display apparatus of claim 13, wherein the processor is further configured to:
determining a plane range covered by the building in the map according to the 2D data of the building;
extracting the outermost contour of a plane range covered by the building in the map as the contour of the building; and
generating a rooftop graphic of the building according to the outline of the building and the rooftop type.
17. The map display apparatus of claim 16, wherein the 2D data of the building includes all points (x, y) covered by the building in a map,
the processor is further configured to:
determining the plane range covered by the building in the map according to all points (x, y) covered by the building in the map.
18. The map display apparatus of claim 16, wherein the processor is further configured to:
and directly using the outline graph of the building as the roof graph of the building with the flat roof.
19. The map display apparatus of claim 16, wherein the processor is further configured to:
and the figure generated by inwards offsetting the outline of the building by a preset distance is used as the roof figure of the building with the concave edge roof.
20. The map display apparatus of claim 16, wherein the processor is further configured to:
and calculating the gravity center of the outline of the building, drawing a line segment with a preset length through the gravity center, and connecting the line segment with each vertex of the outline of the building to generate a graph as the roof graph of the building with the slope roof.
21. The map display apparatus of claim 16, wherein the processor is further configured to:
and calculating the gravity center of the outline of the building, and connecting the gravity center with each vertex of the outline of the building to generate a graph as the roof graph of the building with the pyramid roof.
22. The map display apparatus of claim 16, wherein the processor is further configured to:
generating two opposite circular arcs on a pair of opposite sides of the outline of the building, and using the graph generated by connecting the two opposite circular arcs as the roof graph of the building with the arc roof.
23. The map display apparatus of claim 16, wherein the processor is further configured to:
and inwards offsetting the outline of the building by a preset distance, and connecting the vertex of the offset generated graph with the corresponding vertex in the outline of the building to generate a graph which is used as the roof graph of the building with the semi-slope roof.
24. The map display apparatus of claim 16, wherein the map data further includes height data of the building,
the processor is further configured to:
generating a stereoscopic model of the building in the map from the 2D data of the building and the height data of the building;
placing a roof graphic of the building on a top surface of the three-dimensional model according to the height data; and
and allocating a preset height to the roof graph of the building to generate a three-dimensional roof graph.
25. A computer readable medium having stored thereon computer instructions which, when executed by a processor, implement the method of any one of claims 1-12.
CN201910554326.1A 2019-06-25 2019-06-25 Map display method and device Pending CN112131323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910554326.1A CN112131323A (en) 2019-06-25 2019-06-25 Map display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910554326.1A CN112131323A (en) 2019-06-25 2019-06-25 Map display method and device

Publications (1)

Publication Number Publication Date
CN112131323A true CN112131323A (en) 2020-12-25

Family

ID=73849135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910554326.1A Pending CN112131323A (en) 2019-06-25 2019-06-25 Map display method and device

Country Status (1)

Country Link
CN (1) CN112131323A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268558A (en) * 2021-07-19 2021-08-17 智广海联(天津)大数据技术有限公司 Public facility management system and method based on two-dimensional code and geographic space coordinate

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200533944A (en) * 2004-04-05 2005-10-16 Matsushita Electric Tw Co Ltd Method for displaying three dimensional diagram
CN1795478A (en) * 2003-12-18 2006-06-28 1626628安大略有限公司 System, apparatus and method for mapping
CN102200451A (en) * 2010-01-05 2011-09-28 罗伯特·博世有限公司 Stylized procedural modeling for 3D navigation
CN107845122A (en) * 2017-09-08 2018-03-27 百度在线网络技术(北京)有限公司 A kind of method and apparatus for the planar information for determining building

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1795478A (en) * 2003-12-18 2006-06-28 1626628安大略有限公司 System, apparatus and method for mapping
TW200533944A (en) * 2004-04-05 2005-10-16 Matsushita Electric Tw Co Ltd Method for displaying three dimensional diagram
CN102200451A (en) * 2010-01-05 2011-09-28 罗伯特·博世有限公司 Stylized procedural modeling for 3D navigation
CN107845122A (en) * 2017-09-08 2018-03-27 百度在线网络技术(北京)有限公司 A kind of method and apparatus for the planar information for determining building

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268558A (en) * 2021-07-19 2021-08-17 智广海联(天津)大数据技术有限公司 Public facility management system and method based on two-dimensional code and geographic space coordinate
CN113268558B (en) * 2021-07-19 2021-09-24 智广海联(天津)大数据技术有限公司 Public facility management system and method based on two-dimensional code and geographic space coordinate

Similar Documents

Publication Publication Date Title
CN105989198B (en) Highway parametrization method for automatic modeling and system based on BIM
CN104299541B (en) Intelligent guide system and method based on mobile Internet platform
JP4964762B2 (en) Map display device and map display method
EP2546821A1 (en) Three-dimensional map drawing system
CN104867174A (en) Three-dimensional map rendering and display method and system
CN102183262A (en) Personalized and context-sensitive 3D route guidance
JPH11232484A (en) Method for generating three-dimensional city data, its device and measuring instrument for surveying three-dimensional city data
CN103309944A (en) Surface feature symbolization method for realizing map library integration
CN103177649A (en) Method and device for converging pixel coordinates
CN109121070A (en) A kind of underground parking bluetooth layout and localization method
JP6896411B2 (en) Information processing system, information processing program, information processing device and information processing method
CN112129310A (en) Map display method and device
CN113593020B (en) ArcGIS-based large-scale three-dimensional urban scene generation method
CN112131323A (en) Map display method and device
CN110390703A (en) Generation method, device and the electronic equipment of venue seating maps
JP6533075B2 (en) Map image display device, navigation device, map image display program, and map image display method
CN112131324A (en) Map display method and device
CN105910613A (en) Self-adaptive navigation method and system for walking based on virtual reality
CN115588086A (en) Map dividing method, map dividing device, computer readable storage medium and processor
CN112129312A (en) Map display method and device
CN111369676B (en) Map image processing method and device and vehicle-mounted equipment
KR101344756B1 (en) Generating system using method of generating coordinate information of specific facility according to city planning information
JP4539228B2 (en) Map display device and navigation device
CN112129314A (en) Map display method and device
JP4117279B2 (en) Route price evaluation program and route price evaluation system

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