Supercharge Your Innovation With Domain-Expert AI Agents!

Method of controlling map zoom through mouse wheel based on sharpmap

A technology of map zooming and mouse, which is applied in the direction of program control device, graphics and image conversion, image data processing, etc. It can solve the problems of uncontrollable zoom range, offset of the center of gravity of the mouse cursor, and high price, so as to improve the convenience of map operation performance, achieve stable and reliable functions, and reduce development costs

Active Publication Date: 2017-02-22
珞珈浩景数字科技(湖北)有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since SharpMap was born in 2006, its performance and functions have been greatly improved under the improvement of researchers or GIS system developers from all over the world. It is done by the left button of the single mouse or by pulling the frame. Every time the map is zoomed, you need to click the toolbar button and the zoom range cannot be controlled by yourself. It lacks the function of controlling the zoom in and zoom out of the map by scrolling the mouse, which is necessary for the actual operation. brought great inconvenience
Commercial software such as ArcGIS, MapGIS, and AutoCAD all realize the function of controlling map zoom through the mouse wheel, but excellent open source GIS software such as QGIS, GeoServer, and Mapserver, some do not have this function, and some have this function. The effect of zooming on the map cannot be well adapted to the visual needs of the human eye. During the zooming process, the position of the center of gravity of the mouse cursor is prone to shift, resulting in visual difficulties. However, large-scale commercial GIS software systems are huge and expensive, and most of the functions are in professional models. GIS system does not need

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method of controlling map zoom through mouse wheel based on sharpmap
  • Method of controlling map zoom through mouse wheel based on sharpmap
  • Method of controlling map zoom through mouse wheel based on sharpmap

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0031] Below in conjunction with accompanying drawing, the present invention is described in further detail, and method of the present invention relates to two preliminary steps, namely:

[0032] 1. Preliminary step 1, define variables.

[0033] according to figure 1 It can be seen that the variables involved in a SharpMap-based mouse wheel control map zoom are:

[0034] 1. The field of view M of the map before zooming: M is defined in SharpMap as the Envelope of the SharpMap map control MapView, and the essence of Envelope is the BoundingBox object in SharpMap; BoundingBox is a class that defines the zoom area in SharpMap, expressed as: BoundingBox(double minX, double minY, doublemaxX, double maxY), where minX, maxX, minY and maxY are the coordinate values ​​controlling the horizontal and vertical axes of the four boundaries of the rectangular box. as attached figure 1 As shown in , the point C (x c ,y c ) is the center point coordinates of M, L w is the width of M in t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for controlling map scaling through a mouse wheel based on a Sharpmap. The method comprises the steps that firstly, a Sharpmap library function is called to load a map to obtain Envelope of the current field of view; then a mouse wheel event is established to obtain a current screen position coordinate of a mouse cursor, and a Sharpmap coordinate transfer function is called to transfer the screen position coordinate into a geographical coordinate of the Sharpmap; then a scaling range of every time mouse rolling is determined and put into an idler wheel scaling formula to obtain a new field of view of the map; finally the Sharpmap library function is called to zoom the map into the new field of view to complete the scaling of the map. The method for controlling the map scaling through the mouse wheel based on the Sharpmap is simple, and fills up the blank that the Sharpmap lacks of mouse wheel scaling innovatively based on human vision needs, the display functions of the Sharpmap are improved greatly, and convenience and fluency of map operation are improved.

Description

technical field [0001] The invention relates to a technical field of GIS system development map zooming, and more specifically relates to a method for controlling map zooming through a mouse wheel based on Sharpmap, and its algorithm principle is adapted to the method for controlling map zooming through a mouse wheel developed by GIS. Background technique [0002] At present, the research and application of GIS in the fields of mineral resources development, environmental protection, transportation, geological disasters, medical and health, and national defense and military affairs continue to expand, and the demand for GIS-based system development in various fields continues to increase. At present, the mainstream GIS development methods include secondary development based on mature commercial software (such as ARCGIS, MapGIS, etc.), development based on open source GIS, and development from the bottom. Secondary development based on commercial software is expensive, the sy...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T3/40G06F9/44
Inventor 张万顺王永桂彭虹
Owner 珞珈浩景数字科技(湖北)有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More