CN106815359B - Vector map three-dimensional edge generation method based on mobile GIS platform - Google Patents

Vector map three-dimensional edge generation method based on mobile GIS platform Download PDF

Info

Publication number
CN106815359B
CN106815359B CN201710052324.3A CN201710052324A CN106815359B CN 106815359 B CN106815359 B CN 106815359B CN 201710052324 A CN201710052324 A CN 201710052324A CN 106815359 B CN106815359 B CN 106815359B
Authority
CN
China
Prior art keywords
dimensional
vector
sideline
map
data
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.)
Active
Application number
CN201710052324.3A
Other languages
Chinese (zh)
Other versions
CN106815359A (en
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.)
Shandong Luruan Digital Technology Co Ltd
Original Assignee
Shandong Luneng Software 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 Shandong Luneng Software Technology Co Ltd filed Critical Shandong Luneng Software Technology Co Ltd
Priority to CN201710052324.3A priority Critical patent/CN106815359B/en
Publication of CN106815359A publication Critical patent/CN106815359A/en
Application granted granted Critical
Publication of CN106815359B publication Critical patent/CN106815359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/56Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format

Abstract

The invention belongs to the technical field of geographic information systems used by mobile architectures, and particularly relates to a vector map solid sideline generation algorithm based on a mobile GIS. The vector map solid sideline generation method based on the mobile GIS comprises the following steps: the method comprises the steps of obtaining and processing GIS data, receiving vector surface data such as administrative districts, simplifying the vector surface data through a special tool, using a public peripheral outline of the vector surface data as a new layer in advance, judging whether a point sequence is clockwise or anticlockwise, determining the horizontal and longitudinal spans of a vector surface, determining the width of a generated three-dimensional edge line, generating a three-dimensional edge line surface group by offsetting an original edge line point and an original edge line point, filling a vector surface with a picture or a vector graph, filling the three-dimensional edge line with the edge line graph, and loading data to display by using a two-dimensional mobile GIS engine. The edge algorithm is simple and efficient, in the process of generating the edge, only the span of original vector data and the clockwise and anticlockwise trend of a point sequence are calculated, and the three-dimensional edge is generated in a point offset mode. Any vector map engine is supported; extra extension package support does not need to be added for the two-dimensional GIS component, the default behavior of the two-dimensional GIS component is not changed, and the original map display function of the two-dimensional GIS component is not affected; the three-dimensional sideline generation does not need the support of art designer, and is generated by code calculation completely, thereby being convenient for expansion.

Description

Vector map three-dimensional edge generation method based on mobile GIS platform
(I) technical field
The invention relates to a mobile GIS technology, in particular to a simple vector map three-dimensional effect sideline generation method, which improves the attractiveness of a mobile GIS vector map.
(II) background of the invention
The method adds a three-dimensional sideline to the two-dimensional map, is a common two-dimensional map beautifying effect, can enable the map to be more visual and real, and has very wide application value and application prospect in various fields such as power grid resources, economic construction, scientific research, military operation and the like.
Modern maps represent various natural and social phenomena on the ground by using a symbol system according to a certain mathematical rule, and most of the graphs are two-dimensional. At present, a common mobile map engine supports the display of a two-dimensional vector map, and the map expression is performed by filling a rendering point, a rendering line and a rendering plane with pictures or colors. As a simple and effective two-dimensional map beautifying effect, a three-dimensional solid sideline is added to a map and is increasingly used in map expression. Because a common mobile map engine does not support three-dimensional GIS expression, the map effect graph with the three-dimensional sideline is usually completely manufactured by a designer under the traditional condition. Various interactive effects of the map are completed by switching pictures, so that the workload is increased, the map is not suitable for expansion, and the interactive convenience of the vector map is lost. Another possible implementation is to add a three-dimensional engine to the two-dimensional map engine, which greatly increases the difficulty of map development. Therefore, an algorithm which is simple and easy to implement is urgently needed for adding the three-dimensional edges to the vector map for the mobile GIS platform.
Disclosure of the invention
According to the self condition of the two-dimensional GIS engine at the mobile terminal, the invention adds the three-dimensional sideline to the vector two-dimensional map by using a simple algorithm, beautifies the two-dimensional map, ensures the quick realization and effect of beautification, and keeps the self two-dimensional map display interaction function of the two-dimensional GIS engine to be still fully exerted.
The invention is realized by the following technical scheme:
a method for generating a vector map three-dimensional edge of a mobile GIS platform is characterized by comprising the following steps: the method comprises the following steps:
(1) acquiring and processing GIS data, receiving vector surface data such as administrative districts and the like, simplifying the vector surface data through a special tool, and taking a public peripheral outline of the vector surface data as a new layer in advance, for example, for a district-county layer of a certain city, a city boundary of the map surface data is the public peripheral outline of the map surface data;
(2) judging whether the point sequence is clockwise or anticlockwise according to the received vector surface data;
(3) determining the distance between the outer boundary and the inner boundary of the generated three-dimensional sideline, namely the width of the three-dimensional sideline according to the transverse and longitudinal spans of the vector plane and the size of the map component;
(4) generating a three-dimensional sideline surface group by offsetting the original sideline and the original sideline point combination according to the point sequence of the vector surface and the width of the three-dimensional sideline to be generated;
(5) filling a vector plane by using the picture or the vector graph and filling a three-dimensional side line by using the side line graph;
(6) monitoring events of the GIS platform;
(7) and the GIS platform loads data for display.
Preferably, in step (4), according to the sequence of points of the vector graphics, it is not necessary to generate a three-dimensional edge line that matches the number of points of the external outline, but only a side line composed of the number of points that can be seen by the user needs to be generated, and particularly, for the adjacent side lines, the angles of the sides of the adjacent sides can be combined.
The invention has the beneficial effects that:
(1) the edge line algorithm is simple and efficient: in the process of generating the edge line, only the span of the original vector data and the clockwise and anticlockwise trend of the point sequence are calculated, and the three-dimensional edge line is generated in a point offset mode. Any vector map engine is supported;
(2) the three-dimensional sideline algorithm does not need to add extra extension package support to the two-dimensional GIS component, does not change the default behavior of the two-dimensional GIS component, and does not affect the original map display function of the two-dimensional GIS component;
(3) the three-dimensional sideline generation does not need the support of art designer, and is generated by code calculation completely, thereby being convenient for expansion.
Description of the drawings
The invention will be further described with reference to the accompanying drawings.
FIG. 1 is a flow chart of the present invention;
(II) detailed description of the preferred embodiments
The attached drawing is an embodiment of the invention. The method for generating the vector map stereo edge of the mobile GIS platform comprises the following steps:
(1) vector surface data are prepared, and thinning simplification is performed on the vector surface data to a certain degree, so that the generation speed can be accelerated under the condition that the display effect is not influenced;
(2) and extracting an external contour layer from the simplified vector surface data, and generating a stereo edge according to the external contour layer.
(3) Judging whether the point sequence is clockwise or anticlockwise according to the received vector surface data;
(4) calculating the width of the three-dimensional sideline according to the horizontal and vertical spans of the coordinates of the external outline and the size of the map component;
(5) generating another side of the three-dimensional side line according to the external contour vector data and the point of the three-dimensional side line with the width offset from the external contour, wherein a surface formed by every two adjacent points on the contour and the corresponding offset points is used as a fragment of the whole three-dimensional side line;
(6) according to the point sequence rotation trend of the contour vector data and the trend of the adjacent sidelines, the shielded points are simplified, and adjacent sideline broken parts which do not influence the sideline display effect are combined;
(7) filling the vector map and the three-dimensional sideline by using a two-dimensional map component engine, particularly filling the three-dimensional sideline by using a picture;
(8) adding events such as gesture clicking and the like to the vector data;
(9) and the GIS platform loads data for display.
A method for generating a vector map stereo edge of a mobile GIS platform further comprises the following steps:
(1) preparing vector surface data, thinning and simplifying the vector surface data to a certain extent, and accelerating the generation speed under the condition of not influencing the display effect;
(2) and extracting an external contour layer from the simplified vector surface data, and generating a stereo edge according to the external contour layer.
(3) Judging whether the point sequence is clockwise or anticlockwise according to the received vector surface data, and using the point sequence as a subsequent judgment basis for simplifying the fragment part;
(4) calculating the proper width of the three-dimensional sideline according to the transverse and longitudinal spans of the coordinates of the external contour and the resolution of the longitudinal and transverse directions, wherein the width unit is consistent with the longitudinal and transverse coordinate units;
(5) generating another side of the three-dimensional side line according to the external contour vector data and the point of the three-dimensional side line with the width offset from the external contour, wherein a surface formed by every two adjacent points on the contour and the corresponding offset points is used as a fragment of the whole three-dimensional side line;
(6) according to the point sequence rotation trend of the contour vector data and the trend of the adjacent sidelines, the shielded points are simplified, and adjacent sideline broken parts which do not influence the sideline display effect are combined;
(7) the vector map and the three-dimensional sideline are filled by using the two-dimensional map component engine, particularly, the three-dimensional sideline is filled by using the picture, and the sideline is more vivid due to the special effect of filling the picture by using the three-dimensional sideline;
(8) adding events such as gesture clicking and the like for the vector data, such as clicking and switching a map function and the like;
(9) and the GIS platform loads data for display.
The method for generating the vector map three-dimensional edge of the mobile GIS platform comprises the following two embodiments:
first, the theme map of seventeen places in Shandong province:
1. acquiring administrative region maps of seventeen cities in Shandong province, simplifying the administrative region maps by using a special tool, removing unimportant broken parts, and then combining all cities to form corresponding image layers of the whole Shandong province;
2. loading the processed map layer of seventeen city in Shandong province and the map layer of the whole province in Shandong province;
3. judging whether the loaded sequence of points of the Shandong province is clockwise or not, and taking the sequence as a judgment basis for subsequent simplification of the broken part;
4. calculating the appropriate width of the three-dimensional sideline according to the transverse and longitudinal spans of the loaded Shandong province's complete province map, the longitudinal and transverse coordinate spans and the size of the map component, wherein the width unit is longitude and latitude;
5. generating another edge of the three-dimensional edge line according to the loaded Shandong province image and the point on the three-dimensional edge line width offset loading Shandong province image, wherein a surface formed by every two adjacent points on the outline and the corresponding offset points is used as a broken part of the whole three-dimensional edge line;
6. according to the point sequence rotation walking direction of the outline vector data and the longitude size of adjacent points on the outline edge, the shielded points are simplified, and adjacent edge line fragmentation parts which do not influence the edge line display effect are combined;
7. the method comprises the steps that a two-dimensional map component engine is used for filling a seventeen city map, a complete province map and a three-dimensional sideline of Shandong province, particularly, the complete province map is subjected to complete transparent processing, the three-dimensional sideline is filled with pictures, and the sideline is more vivid due to the special effect of filling the pictures in the three-dimensional sideline;
8. adding events such as gesture clicking and the like for vector data, and clicking city to display thematic information;
9. and loading data by the GIS platform for displaying.
Secondly, a weather forecast map of each district and county in Jinan City:
1. acquiring a city map of the Jinan city, simplifying the city map by using a special tool, removing unimportant broken parts, and then combining the counties and the district to form a corresponding city map layer of the Jinan city;
2. loading the processed county map and the whole city map of the Jinan city;
3. judging whether the loaded whole-city map point sequence of the Jinan city is clockwise or not as a judgment basis for subsequent simplification of broken parts;
4. calculating the appropriate width of the three-dimensional sideline according to the transverse and longitudinal spans of the loaded whole city map of the Jinan city, the longitudinal and transverse coordinate spans and the size of the map component, wherein the width unit is longitude and latitude;
5. generating another edge of the three-dimensional edge line according to the loaded whole city map of the Jinan city and points on the whole city map of the Jinan city which are loaded by the width offset of the three-dimensional edge line, wherein a surface formed by every two adjacent points on the outline and the corresponding offset points is used as a broken part of the whole three-dimensional edge line;
6. according to the point sequence rotation walking direction of the outline vector data and the longitude size of adjacent points on the outline edge, the shielded points are simplified, and adjacent edge line fragmentation parts which do not influence the edge line display effect are combined;
7. filling a county and county map, a city map and a three-dimensional sideline of the Jinan city by using a two-dimensional map component engine, particularly performing complete transparent processing on the city map, and filling the three-dimensional sideline by using pictures, wherein the sideline is more vivid due to the special effect of filling the pictures by using the three-dimensional sideline;
8. adding weather information to the vector surface of each county;
9. and loading data by the GIS platform for displaying.
Wherein the content of the first and second substances,
the GIS is an english abbreviation of Geographic Information System (Geographic Information System). A GIS platform generally integrates functions of map display, query, positioning, zooming in, zooming out, and the like.
And a GIS platform persistent layer: on the system logic level, the patent is directed to a relatively independent field for realizing data persistence.

Claims (1)

1. A vector map three-dimensional sideline generation method based on a mobile GIS is characterized by comprising the following steps: the method comprises the following steps:
(1) preparing vector surface data, thinning and simplifying the vector surface data to a certain extent, and accelerating the generation speed under the condition of not influencing the display effect;
(2) extracting an external contour layer from the simplified vector surface data, and generating a three-dimensional edge line according to the external contour layer;
(3) judging whether the sequence of the point is clockwise or anticlockwise according to the prepared vector surface data, and taking the sequence as a judgment basis for simplifying the subsequent fragmental part;
(4) calculating the proper width of the three-dimensional sideline according to the transverse and longitudinal spans of the coordinates of the external contour and the resolution of the longitudinal and transverse directions, wherein the width unit is consistent with the longitudinal and transverse coordinate units;
(5) generating another side of the three-dimensional side line according to the external contour vector data and the point of the three-dimensional side line with the width offset from the external contour, wherein a surface formed by every two adjacent points on the contour and the corresponding offset points is used as a fragment of the whole three-dimensional side line;
(6) according to the point sequence rotation trend of the external contour vector data and the trend of the adjacent sidelines, the shielded points are simplified, and adjacent sideline broken parts which do not influence the sideline display effect are combined;
(7) filling the vector map and the three-dimensional sideline by using a two-dimensional map component engine, and filling the three-dimensional sideline by using a picture, wherein the sideline is more vivid due to the special effect of filling the picture by using the three-dimensional sideline;
(8) adding gesture click events to the vector data;
(9) and the GIS platform loads data for display.
CN201710052324.3A 2017-01-22 2017-01-22 Vector map three-dimensional edge generation method based on mobile GIS platform Active CN106815359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710052324.3A CN106815359B (en) 2017-01-22 2017-01-22 Vector map three-dimensional edge generation method based on mobile GIS platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710052324.3A CN106815359B (en) 2017-01-22 2017-01-22 Vector map three-dimensional edge generation method based on mobile GIS platform

Publications (2)

Publication Number Publication Date
CN106815359A CN106815359A (en) 2017-06-09
CN106815359B true CN106815359B (en) 2020-06-09

Family

ID=59111321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710052324.3A Active CN106815359B (en) 2017-01-22 2017-01-22 Vector map three-dimensional edge generation method based on mobile GIS platform

Country Status (1)

Country Link
CN (1) CN106815359B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109712516B (en) * 2018-12-20 2021-08-24 成都路行通信息技术有限公司 GNSS (Global navigation satellite System) equipment-based vehicle distribution thermodynamic diagram construction method and display system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5363476A (en) * 1992-01-28 1994-11-08 Sony Corporation Image converter for mapping a two-dimensional image onto a three dimensional curved surface created from two-dimensional image data
CN103384897A (en) * 2011-02-25 2013-11-06 三菱电机株式会社 Map rendering device
CN104766058A (en) * 2015-03-31 2015-07-08 百度在线网络技术(北京)有限公司 Method and device for obtaining lane line

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2378337B (en) * 2001-06-11 2005-04-13 Canon Kk 3D Computer modelling apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5363476A (en) * 1992-01-28 1994-11-08 Sony Corporation Image converter for mapping a two-dimensional image onto a three dimensional curved surface created from two-dimensional image data
CN103384897A (en) * 2011-02-25 2013-11-06 三菱电机株式会社 Map rendering device
CN104766058A (en) * 2015-03-31 2015-07-08 百度在线网络技术(北京)有限公司 Method and device for obtaining lane line

Also Published As

Publication number Publication date
CN106815359A (en) 2017-06-09

Similar Documents

Publication Publication Date Title
US11585675B2 (en) Map data processing method, computer device and storage medium
CN111784833B (en) Flood evolution situation three-dimensional dynamic visualization display method based on WebGL
CN107358649B (en) Processing method and device of terrain file
Ruzinoor et al. A review on 3D terrain visualization of GIS data: techniques and software
CN105528207A (en) Virtual reality system, and method and apparatus for displaying Android application images therein
CN112055216B (en) Method and device for rapidly loading mass of oblique photography based on Unity
CN103606184A (en) Device based on two-dimensional and three-dimensional integrated vector render engine
CN114820990B (en) Digital twin-based river basin flood control visualization method and system
CN106383828A (en) Drawing method and electronic equipment
CN114756937A (en) Visualization system and method based on UE4 engine and Cesium framework
US20160307294A1 (en) Systems and Methods for Displaying Patterns of Recurring Graphics on Digital Maps
US20230059277A1 (en) Map data processing method and apparatus, and storage medium
CN112700547B (en) Map making method and related equipment
CN108375806A (en) The acquisition methods and device of weather-map
CN106815359B (en) Vector map three-dimensional edge generation method based on mobile GIS platform
CN102364522B (en) Large-scale weather volume data drawing method based on global division
US9092907B2 (en) Image shader using two-tiered lookup table for implementing style attribute references
WO2023138199A1 (en) Route drawing method and apparatus, computer device, storage medium and program product
Ruzínoor et al. 3D terrain visualisation for GIS: A comparison of different techniques
KR20200065797A (en) 3D spatial information visualization system and method
CN114742931A (en) Method and device for rendering image, electronic equipment and storage medium
CN107154874A (en) A kind of network synthesis situation rendering method based on three-dimensional geographic information system
CN113592999B (en) Rendering method of virtual luminous body and related equipment
CN111369676A (en) Map image processing method and device and vehicle-mounted equipment
Liu et al. Fusing multiscale charts into 3D ENC systems based on underwater topography and remote sensing image

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 250101 5th floor, block B, Yinhe building, 2008 Xinluo street, high tech Zone, Jinan City, Shandong Province

Patentee after: Shandong luruan Digital Technology Co.,Ltd.

Address before: 250101 5th floor, block B, Yinhe building, 2008 Xinluo street, high tech Zone, Jinan City, Shandong Province

Patentee before: SHANDONG LUNENG SOFTWARE TECHNOLOGY Co.,Ltd.