CN106202233B - Method and system for realizing self-adaptive superposition of sliced maps of industrial dynamic image layers - Google Patents

Method and system for realizing self-adaptive superposition of sliced maps of industrial dynamic image layers Download PDF

Info

Publication number
CN106202233B
CN106202233B CN201610495217.3A CN201610495217A CN106202233B CN 106202233 B CN106202233 B CN 106202233B CN 201610495217 A CN201610495217 A CN 201610495217A CN 106202233 B CN106202233 B CN 106202233B
Authority
CN
China
Prior art keywords
map
scale
unit
resolution
coordinate system
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
CN201610495217.3A
Other languages
Chinese (zh)
Other versions
CN106202233A (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.)
Taihua Wisdom Industry Group Co Ltd
Original Assignee
Taihua Wisdom Industry Group 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 Taihua Wisdom Industry Group Co Ltd filed Critical Taihua Wisdom Industry Group Co Ltd
Priority to CN201610495217.3A priority Critical patent/CN106202233B/en
Publication of CN106202233A publication Critical patent/CN106202233A/en
Application granted granted Critical
Publication of CN106202233B publication Critical patent/CN106202233B/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

Landscapes

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

Abstract

The invention discloses a method and a system for realizing self-adaptive superposition of slice maps of industrial dynamic image layers, which acquire dpi of equipment operated by a system as an algorithm parameter; acquiring a coordinate system of a map; obtaining a basic unit of the map according to a coordinate system of the map, wherein if the basic unit is a projection coordinate system, the unit is meter; if the coordinate system is a geographic coordinate system, the unit is degree; selecting a corresponding scale and a resolution conversion formula according to a basic unit of the map, and calculating the resolution of the corresponding scale; and after the resolution ratios of all levels of the scale scales are calculated, the scale structures of the map are reconfigured, and then the superposed map is loaded. The method can be applied to all geographic information systems, avoids the problem that map layer data is not displayed, reduces the rework rate, improves the development efficiency, improves the system reliability, and avoids serious bug of some functional modules caused by incomplete display of the map data.

Description

Method and system for realizing self-adaptive superposition of sliced maps of industrial dynamic image layers
Technical Field
The invention relates to the technical field of map superposition, in particular to a method and a system for realizing self-adaptive superposition of sliced maps of industrial dynamic image layers.
Background
The map is a graph which is drawn according to a certain mathematical rule and by using a drawing language and drawing and integrating on a certain carrier, and expresses the spatial distribution, the relation and the development and change state in time of various things on the earth. With the progress of science and technology, the concept of maps is constantly developed and changed, for example, a map is regarded as an image and a symbolic model reflecting natural and social phenomena, and the map is a carrier of spatial information, a transmission channel of the spatial information and the like.
The carriers of the traditional map are mostly paper, and various carriers such as an electronic map appear along with the development of science and technology. The geographic information system stores the geographic information into a computer to make an electronic map, so that people can quickly inquire a target through the computer. For example, when a city electronic map can be manufactured by applying the technology, when a bus route is inquired, only the names of a starting point and an end point are needed to be input, the related train number can be inquired, and geographic information such as roads passing along the route, transfer stations and the like can be acquired. The geographic information system has a huge practical value, can be widely applied to the fields of urban land planning, traffic rules, natural resource protection, water and gas pipelines, disaster monitoring and prevention and the like, and gradually becomes an important component of the information industry.
The most important of the geographic information system is map data, and different element data are displayed in a superposition mode on each map layer. The accuracy of the map data is the guarantee of the value embodiment of the geographic information system. Called in the system is a map service published by the gis platform.
The map service is a map creation service that creates a map using data having geospatial position information, in which the map is defined as a visual representation of geographic data, and the map itself is not data. Maps are usually expressed in image formats such as PNG, GIF or JPEG, and sometimes also in formats based on vector graphics such as Scalable Vector Graphics (SVG) or web computer graphics (W instead of CGM).
According to the OGC specification, the map service is a service exclusively providing shared map data, and is responsible for providing a map image, element information specifying a coordinate point, and function description information of the map service according to a request of a client program.
In order to improve the response speed of the map service, slice services are generally issued to layers with longer update periods. The slicing service adopts a strategy of map data slicing release, namely, map slices with a certain specification are pre-generated and cached in the server for responding to a map request of the client, so that the map display speed can be improved. But some data layers updated in real time need to be served by dynamic layers. The dynamic service is to render the map once by the server every time the map is requested to be provided, so that the dynamic service has higher flexibility. This inevitably leads to a situation where dynamic services are overlaid with slicing services.
The prior art is direct superposition, but has the following defects:
1. the dynamic layer and the slice map are overlaid in service, and the scale of the dynamic layer is limited by the scale of the slice map, so that the scale level is easily lost, and the data display of the layer is incomplete.
2. Under screens with different resolutions, such as computers, tablets and mobile phones, different DPIs can cause scale display errors and incomplete display of image layer data. The DPI, which is the number of pixels per inch, reflects the definition of the screen.
Disclosure of Invention
The invention discloses a method and a system for realizing self-adaptive superposition of slice maps of industrial dynamic map layers, aiming at solving the defects in the prior art.
In order to achieve the purpose, the invention adopts the following specific scheme:
a method for realizing self-adaptive overlapped slice maps of industrial dynamic map layers comprises the following steps:
obtaining dpi of equipment operated by the system as an algorithm parameter;
acquiring a coordinate system of a map;
acquiring a basic unit of the map according to a coordinate system of the map, wherein if the basic unit is a projection coordinate system, the unit is meter; if the coordinate system is a geographic coordinate system, the unit is degree;
different map units correspond to different resolution conversion formulas. If the unit is meter, the conversion formula is resolution 0.0254000508/dpi. If the unit is degree, the conversion formula is resolution 0.0254000508/dpi/111194.872221777. Selecting a corresponding scale and a resolution conversion formula according to a basic unit of the map, and calculating the resolution of the corresponding scale;
and after the resolution ratios of all levels of the scale scales are calculated, the scale structures of the map are reconfigured, and then the superposed map is loaded.
Further, dpi of the running device is a parameter of the conversion formula with the screen resolution and the map scale.
Further, the coordinate system of the map is obtained according to the control gis javascript API, and the coordinate system of the map called from the map service is obtained. A gis javascript api refers to a set of scripts that invoke a service interface implemented according to javascript technology. Each gis platform has its own javascript api, which is a development language toolkit provided to the geographic information system developer.
Further, the type of the coordinate system is judged according to the space reference parameters of the gis javascript API.
Further, if the unit is meter, the resolution of the corresponding scale is calculated according to a conversion formula of the scale and the resolution, wherein the conversion formula is as follows: resolution is scale 0.0254000508/dpi.
Further, if the unit is degree, the resolution of the corresponding scale is calculated according to a scale and resolution conversion formula, wherein the conversion formula is as follows: resolution is scale 0.0254000508/dpi/111194.872221777.
A system for implementing an industry dynamics map-level adaptive overlay tile map, comprising:
the Dpi acquiring unit acquires Dpi of equipment operated by the system as an algorithm parameter;
a coordinate system acquisition unit of the map, which acquires a coordinate system of the map;
the map basic unit judging unit acquires a basic unit of the map according to a coordinate system of the map, and if the basic unit is a projection coordinate system, the unit is meters; if the coordinate system is a geographic coordinate system, the unit is degree;
the resolution calculation unit is used for selecting a corresponding scale and a resolution conversion formula according to the basic unit of the map and calculating the resolution of the corresponding scale;
and the scale structure reconfiguration unit is used for reconfiguring the scale structure of the map after calculating the resolution of each level of scale, and then loading the superposed map.
Further, in the coordinate system obtaining unit of the map, the coordinate system of the map is obtained according to the control gisjavascript api, and the coordinate system of the map called from the map service is obtained.
Further, in the basic unit judgment unit of the map, the type of the coordinate system is judged according to the space reference parameter of the gis javascript API.
Further, in the resolution calculation unit, if the unit is meter, the resolution of the corresponding scale is calculated according to a scale and a resolution conversion formula, wherein the conversion formula is as follows: resolution is scale 0.0254000508/dpi.
Further, in the resolution calculation unit, if the unit is degree, the resolution of the corresponding scale is calculated according to a scale and a resolution conversion formula, wherein the conversion formula is as follows:
resolution is scale 0.0254000508/dpi/111194.872221777.
The invention has the beneficial effects that:
the method can be applied to all geographic information systems, avoids the problem that map layer data is not displayed, reduces the rework rate, improves the development efficiency, improves the system reliability, and avoids serious bug of some functional modules caused by incomplete display of the map data. Because the map is an important part of the geographic information system, and whether the accuracy of the map data directly relates to the value of the system, the map data display method is a technology for ensuring the reasonable display of the map data, and is an important technology for improving the reliability of the system.
Drawings
FIG. 1 is a flow chart of the present invention.
The specific implementation mode is as follows:
the invention is described in detail below with reference to the accompanying drawings:
the invention is embodied in a geographic information system and is realized by a tool type method.
Because DPI has a scaling relationship with resolution and map scale. If the unit is meter, the conversion formula is resolution 0.0254000508/dpi. If the unit is degree, the conversion formula is resolution 0.0254000508/dpi/111194.872221777. The proper display scale levels of the map corresponding to different DPIs are different, so that the map scale needs to be dynamically set according to different DPIs to ensure that the map data does not generate bug during display.
As shown in fig. 1, firstly, through a program algorithm, a program method provided by a windows API (if the mobile terminal is a mobile terminal, a method provided by a mobile terminal system API interface) is used to obtain dpi of a device (a computer or a mobile terminal) in which the system operates as a parameter of a conversion formula of dpi and screen resolution and a map scale. And then acquiring a coordinate system for calling the map from the map service according to the gis javascript API, and acquiring a map unit according to the coordinate system. Judging the type of the coordinate system according to the space reference parameters of the gis javascript API, wherein if the coordinate system is a projection coordinate system, the unit is meter; in the case of a geographic coordinate system, the units are degrees. And then calculating the resolution of the corresponding scale according to a scale and resolution conversion formula. If the unit is meter, the conversion formula is resolution 0.0254000508/dpi. If the unit is degree, the conversion formula is resolution 0.0254000508/dpi/111194.872221777. And then, reconfiguring the scale structure of the map after calculating the resolution of each level of the scale, and taking the scale level as a parameter of the map when the map is initialized by using the map class of the gis javascript API, so that the loaded map follows the set scale level. And then, the overlay map is loaded, so that the situation that the map layer data is not displayed due to the mismatch of the map scale can be avoided.
The invention also relates to a system for realizing the self-adaptive overlapped slice map of the industrial dynamic map layer, which comprises the following steps:
the Dpi acquiring unit acquires Dpi of equipment operated by the system as an algorithm parameter;
a coordinate system acquisition unit of the map, which acquires a coordinate system of the map;
the map basic unit judging unit acquires a basic unit of the map according to a coordinate system of the map, and if the basic unit is a projection coordinate system, the unit is meters; if the coordinate system is a geographic coordinate system, the unit is degree;
the resolution calculation unit is used for selecting a corresponding scale and a resolution conversion formula according to the basic unit of the map and calculating the resolution of the corresponding scale;
and the scale structure reconfiguration unit is used for reconfiguring the scale structure of the map after calculating the resolution of each level of scale, and then loading the superposed map.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (6)

1. A method for realizing self-adaptive overlapped slice maps of industrial dynamic map layers is characterized by comprising the following steps:
obtaining dpi of equipment operated by the system as an algorithm parameter;
acquiring a coordinate system of a map;
acquiring a basic unit of the map according to a coordinate system of the map, wherein if the basic unit is a projection coordinate system, the unit is meter; if the coordinate system is a geographic coordinate system, the unit is degree;
selecting a corresponding scale and a resolution conversion formula according to a basic unit of the map, and calculating the resolution of the corresponding scale;
automatically adapting to the scale levels when the homologous sliced maps or different homologous sliced maps are superposed, reconfiguring the scale structure of the map after calculating the resolution of each level of scale, and when the map is initialized by using the map class of gis javascript API, taking the scale levels as the parameters of the map so that the loaded map follows the set scale levels, and then loading the superposed map, thereby avoiding serious bug of some functional modules caused by incomplete map data display;
the coordinate system of the map is obtained from the map service according to the control gis javascript API;
judging the type of a coordinate system according to the space reference parameters of the gis javascript API;
the proper display scale levels of the maps corresponding to different dpi are different, and the map scale is dynamically set according to different dpi.
2. The method as claimed in claim 1, wherein if the unit is meter, the resolution of the corresponding scale is calculated according to a scale and resolution conversion formula, wherein the conversion formula is: resolution is scale 0.0254000508/dpi.
3. The method as claimed in claim 2, wherein if the unit is degree, the resolution of the corresponding scale is calculated according to a scale and resolution conversion formula, wherein the conversion formula is: resolution is scale 0.0254000508/dpi/111194.872221777.
4. A system for realizing self-adaptive overlapped slice maps of industrial dynamic image layers is characterized by comprising the following steps:
the Dpi acquiring unit acquires Dpi of equipment operated by the system as an algorithm parameter;
a coordinate system acquisition unit of the map, which acquires a coordinate system of the map;
the map basic unit judging unit acquires a basic unit of the map according to a coordinate system of the map, and if the basic unit is a projection coordinate system, the unit is meters; if the coordinate system is a geographic coordinate system, the unit is degree;
the resolution calculation unit is used for selecting a corresponding scale and a resolution conversion formula according to the basic unit of the map and calculating the resolution of the corresponding scale;
the map display device comprises a scale structure reconfiguration unit, a map display unit and a map display unit, wherein the scale structure reconfiguration unit is used for automatically adapting to the scale levels when a same-source sliced map or different-source sliced maps are overlaid, calculating the resolution of each scale and then reconfiguring the scale structure of the map, and when the map is initialized by utilizing the maps of gisjavascript API, the scale levels are used as parameters of the maps, so that the loaded map follows the set scale levels, and then the overlaid map is loaded, thereby avoiding serious bug of some functional modules caused by incomplete map data display;
in a coordinate system obtaining unit of the map, obtaining a coordinate system of the map from the map service according to the control gis javascript API;
in a basic unit judgment unit of the map, judging the type of a coordinate system according to the space reference parameter of the gis javascript API;
the proper display scale levels of the maps corresponding to different dpi are different, and the map scale is dynamically set according to different dpi.
5. The system as claimed in claim 4, wherein if the unit of the resolution calculation unit is meter, the resolution of the corresponding scale is calculated according to a scale and a resolution conversion formula, wherein the conversion formula is: resolution is scale 0.0254000508/dpi.
6. The system as claimed in claim 5, wherein in the resolution calculation unit, if the unit is degree, the resolution of the corresponding scale is calculated according to a scale and a resolution conversion formula, wherein the conversion formula is:
resolution is scale 0.0254000508/dpi/111194.872221777.
CN201610495217.3A 2016-06-29 2016-06-29 Method and system for realizing self-adaptive superposition of sliced maps of industrial dynamic image layers Active CN106202233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610495217.3A CN106202233B (en) 2016-06-29 2016-06-29 Method and system for realizing self-adaptive superposition of sliced maps of industrial dynamic image layers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610495217.3A CN106202233B (en) 2016-06-29 2016-06-29 Method and system for realizing self-adaptive superposition of sliced maps of industrial dynamic image layers

Publications (2)

Publication Number Publication Date
CN106202233A CN106202233A (en) 2016-12-07
CN106202233B true CN106202233B (en) 2020-04-07

Family

ID=57461528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610495217.3A Active CN106202233B (en) 2016-06-29 2016-06-29 Method and system for realizing self-adaptive superposition of sliced maps of industrial dynamic image layers

Country Status (1)

Country Link
CN (1) CN106202233B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699641A (en) * 2013-12-24 2014-04-02 北京易华录信息技术股份有限公司 Method for accessing different raster map services
CN103927933A (en) * 2013-01-14 2014-07-16 北京中交兴路信息科技有限公司 Method and device for rendering mass moving targets

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5605186B2 (en) * 2010-11-23 2014-10-15 アイシン・エィ・ダブリュ株式会社 Control device, control method of control device, and computer program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927933A (en) * 2013-01-14 2014-07-16 北京中交兴路信息科技有限公司 Method and device for rendering mass moving targets
CN103699641A (en) * 2013-12-24 2014-04-02 北京易华录信息技术股份有限公司 Method for accessing different raster map services

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
异构GIS瓦片地图转换共享模式研究;戴侃等;《地理信息世界》;20140430;第21卷(第2期);文章第2.3节 *

Also Published As

Publication number Publication date
CN106202233A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN110347769B (en) Processing method, device, equipment and storage medium for multi-level map tiles
US8560600B2 (en) Managing map elements using aggregate feature identifiers
US9052199B2 (en) System and method for indicating user location and facing direction on a digital map
US9830064B2 (en) Rendering map images using modifications of non-raster map data
US9134886B2 (en) Providing indoor facility information on a digital map
US8823734B1 (en) Indicating availability of indoor content on a digital map
US20180089791A1 (en) Rendering map data using descriptions of raster differences
CN108597021B (en) Integrated display method and system for three-dimensional models above and below ground
CN113014824A (en) Video picture processing method and device and electronic equipment
CN112115226B (en) Map rendering method and map rendering device
CN106202233B (en) Method and system for realizing self-adaptive superposition of sliced maps of industrial dynamic image layers
WO2023138199A1 (en) Route drawing method and apparatus, computer device, storage medium and program product
CN104346771B (en) A kind of electronic map tiered management approach
US9275481B2 (en) Viewport-based contrast adjustment for map features
US20240037823A1 (en) Distributed computing system and method for generating a vector tile of a selected squared map area
CN113538468B (en) Method and device for constructing high-definition satellite map vector slice based on svg format
CN116257599A (en) Electronic map display method and device, electronic equipment and storage medium
CN106464735B (en) Implementation of third-party services in digital service platform
CN111767295B (en) Map data processing method, device, computing equipment and medium
CN103092968A (en) Method and system for three-dimensional cadastre panorama show
CN118092751A (en) Data presentation method, device, equipment and storage medium
Hu et al. A Method to Build Web Raster Chart System
Leng et al. Research and Application on Organization Method Used in 3D Basic Geographic Data
Lei et al. The research and implementation of SOA-based Multi-resolution elevation data visualization
CN105320692A (en) Method, device and system for presenting mass data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant