CN104007970B - It is suitable to the character animation implementation method of the GIS command dispatching systems of various maps - Google Patents

It is suitable to the character animation implementation method of the GIS command dispatching systems of various maps Download PDF

Info

Publication number
CN104007970B
CN104007970B CN201410227186.4A CN201410227186A CN104007970B CN 104007970 B CN104007970 B CN 104007970B CN 201410227186 A CN201410227186 A CN 201410227186A CN 104007970 B CN104007970 B CN 104007970B
Authority
CN
China
Prior art keywords
map
personnel
latitude
longitude
pixel
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
CN201410227186.4A
Other languages
Chinese (zh)
Other versions
CN104007970A (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.)
Eastern Communication Co Ltd
Original Assignee
Eastern Communication 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 Eastern Communication Co Ltd filed Critical Eastern Communication Co Ltd
Priority to CN201410227186.4A priority Critical patent/CN104007970B/en
Publication of CN104007970A publication Critical patent/CN104007970A/en
Application granted granted Critical
Publication of CN104007970B publication Critical patent/CN104007970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The present invention relates to a kind of character animation implementation method for being suitable to the GIS command dispatching systems of various maps.It is characterized in that method is as follows:First, map is real-time corresponding with Group containers, i.e. (0,0) position of Group containers remains coordinate (minLong, the maxLat) correspondence with map;2nd, the latitude and longitude coordinates of each personnel are transformed into screen coordinate, it is corresponded with the coordinate in Group containers;3rd, different pictures are called according to personnel's direct of travel, forms animation effect.The present invention solves dependence of the realization of map layer interpolation data and corresponding function to map kit and API;Map remains corresponding with Group containers so that map is separated with figure layer data, reduces the dependence to map;Realize personage's motion animation effect in the map command dispatching system based on GIS.

Description

It is suitable to the character animation implementation method of the GIS command dispatching systems of various maps
Technical field
The present invention relates to a kind of character animation implementation method for being suitable to the GIS command dispatching systems of various maps.
Background technology
At present, the map command dispatching system based on GIS is widely used in the government utilities such as government, public security, People's Armed Police neck Domain.This map command dispatching system is tracked to the staff of all kinds of love scenes, positions, and realizes that visual remote refers to Wave scheduling.
But, GIS command dispatching systems of main flow in the market, positioning and display to personnel are all relied on relatively Figure, when being developed using different map API, it is necessary to change respective logic and code, code can not be multiplexed so that development efficiency It is relatively low.And personnel's walking is mobile to be presented with plane 2D effects(Fig. 1), the motion in each direction only has a kind of effect, its reduction Consumer's Experience.
The content of the invention
For problems of the prior art, refer to it is an object of the invention to provide a kind of GIS for being suitable to various maps The technical scheme of the character animation implementation method of scheduling system is waved, the realization of figure layer interpolation data and corresponding function is solved over the ground The dependence of figure kit and API.
The described character animation implementation method for being suitable to the GIS command dispatching systems of various maps, it is characterised in that method It is as follows:
First, map is real-time corresponding with Group containers, i.e. (0,0) position of Group containers remains the seat with map Mark (minLong, maxLat) correspondence, defines the longitude and latitude scope of map:Longitude minLong-maxLong, latitude minLat- maxLat;
1)Obtain the maximum longitude and latitude and minimum longitude and latitude degrees of data when map is loaded;
2)Using maximum and minimum longitude and latitude data instance Location classes, Location instance objects are obtained;
3)Using step 2)Middle Location instance objects, instantiate Pixel classes;
4)Use Pixel case-based systems to map(minLong, maxLat)Corresponding pixel criterion value(x, y);
5)Make Group containers(0,0)The pixel value of position is step 4)In(x,y);
6)Above-mentioned steps 1 are carried out to each map operation)-5), to keep the pass corresponding all the time of map and Group containers System;
2nd, the latitude and longitude coordinates of each personnel are transformed into screen coordinate, make its with Group containers in a pair of coordinate 1 Should;Each personnel is added in father's container Group as a component or element;
A)Personnel as based in GIS map scheduling system by the object of command scheduling, by the terminal device that carries Report position is latitude and longitude information, and the longitude and latitude degrees of data of locating personnel is(long,lat), Location classes are then instantiated, then lead to Cross Pixel classes and obtain personnel horizontal level x in Group containers1With upright position y1, horizontal level x1With upright position y1 In units of pixel;
B)Each map operation, personnel's longitude and latitude are changed or new personnel are added in map, be carried out step A);
3rd, different pictures are called according to personnel's direct of travel, forms animation effect;
a)Current locations of the definition personnel Person in Group containers is(x0,y0), target location is(targetX, targetY);
b)Personnel's motion picture is deposited using two-dimensional array, is defined as Pictures [Direction] [Step], wherein Direction scopes are 0 to 7, represent eight directions, i.e. upper and lower, left and right, upper left, lower-left, upper right, bottom right;Step scopes are 0 and 1, represent the movement decomposition of personnel's walking;
c)The method for calculating Direction:
The direction of personnel's walking can be analyzed to X-direction and Y-direction, and X-direction is defined in it:sign(targetX- x0); Y-direction is:sign(targetY-y0), thus defining Direction=f (X, Y) is:
As X=1:
If Y=1, Direction=7
If Y=-1, Direction=5
If Y=0, Direction=6
As X=-1:
If Y=1, Direction=1
If Y=-1, Direction=3
If Y=0, Direction=2
As X=0:
If Y=1, Direction=0
If Y=-1, Direction=4
If Y=0, personnel do not walk, it is not necessary to load motion picture;
d)The stride of definition personnel movement is speed, and unit is pixel, i.e., the real time position of each personnel's movement (targetX1, targetY1)For:
targetX1 = x0 + X×speed;
targetY1 = y0 + Y×speed;
Now, corresponding picture is Pictrue [f (X, Y)] [step].
The main 2.5D character animations for realizing the GIS command dispatching systems suitable for various maps of the invention, its is beneficial Effect is as follows:
1)Solve dependence of the realization of map layer interpolation data and corresponding function to map kit and API;
2)Map remains corresponding with Group containers, i.e. (0,0) position of Group containers remains and map Minimum longitude and latitude point correspondence, will originally add the data of map layer, in being added to Group containers in the form of the component so that Map is separated with figure layer data, reduces the dependence to map;
3)Realize personage's motion animation effect in the map command dispatching system based on GIS.
Brief description of the drawings
Fig. 1 is presented figure for personnel's walking is mobile in the prior art with plane 2D effects;
Fig. 2 is the container Map schematic diagrames that the present invention loads map;
Fig. 3 is Consumer's Experience design sketch of the present invention;
Fig. 4 is the real-time corresponding schematic diagram of map of the present invention and Group containers;
Fig. 5 is that the latitude and longitude coordinates of each personnel of the invention are transformed into screen coordinate schematic diagram;
Fig. 6 is that the present invention staff's motion picture deposits schematic diagram using two-dimensional array;
Fig. 7 is personage's animation effect figure of the present invention.
Specific embodiment
With reference to Figure of description, the invention will be further described:
Map can include one or more figure layers, and each figure layer is made up of in each rank several segments, They cover the whole surface of the earth.For example in most maps commercial product see interior including street, school, park etc. It is exactly a figure layer that the map of appearance represents.Using this technology on each layer of map layer interpolation data and corresponding function.
Using the technical characterstic of figure layer, the map command dispatching system based on GIS is widely used in government, public security, force The government utility field such as alert.Such map command dispatching system is tracked to the staff in various love scenes, positions, Realize visual remote command scheduling.
Map command dispatching system based on GIS, the correlation map function of realization includes:
1st, map dragging, the dragging map with any direction checks effect;
2nd, map scaling, according to the demand for showing and check, can zoom in or out arbitrary levels by map, level it is big The small size corresponding to map scale;
3rd, personnel positioning, the GPS information that the terminal device carried according to personnel is reported, determines position of the personnel in map Put, dispatched for monitor in real time and visual command;
4th, personnel's real-time track is described, the real-time depiction movement locus on map of the GPS information according to personnel;
5th, personnel's historical track description, the history GPS information according to personnel reappears movement locus on map;
The class function of the above five, does not all depart from the operation and treatment to figure layer.
But manage all of personnel using map layer(Including vehicle, Unify legislation is behaved unless otherwise specified below Member), the realization and operation of function all rely on used engine map and map API;All of scheduled personnel are used as one Individual figure layer data are added on map.Such as Baidu map API adds figure by map.addTileLayer methods on map Layer, and add figure layer using map.addOverlay methods in Google Maps API.
Therefore when the map kit and API that use change, the figure layer of counterpart personnel will be sent out accordingly Raw to change, this is unfavorable for code reuse.
In order to improve development efficiency and reduce dependence of personnel's figure layer to map, Group components are used.Any map The realization of application, it is necessary to which map is loaded into a container, the container provides various components accordingly, and definition loads map Container is Map, and the container for defining loading personnel is Group, and map and Group containers are added as the daughter element of container Map To wherein, as shown in Figure 2.
At present, seeing that the map of the content such as including street, school, park represents in most maps commercial product makes Use figure layer technology, using this technology on each layer of map layer interpolation data and corresponding function.
Concrete methods of realizing of the invention is as follows:
First, map is real-time corresponding with Group containers, i.e. (0,0) position of Group containers remains the seat with map Mark (minLong, maxLat) correspondence, as shown in figure 4, define A points representing(minLong,maxLat), A ' expressions(0,0), it is fixed The longitude and latitude scope of free burial ground for the destitute figure:Longitude minLong-maxLong, latitude minLat-maxLat;
1)Obtain the maximum longitude and latitude and minimum longitude and latitude degrees of data when map is loaded;
2)Using maximum and minimum longitude and latitude data instance Location classes, Location instance objects are obtained;
3)Using step 2)Middle Location instance objects, instantiate Pixel classes;
4)Use Pixel case-based systems to map(minLong, maxLat)Corresponding pixel criterion value(x, y);
5)Make Group containers(0,0)The pixel value of position is step 4)In(x,y);
6)Above-mentioned steps 1 are carried out to each map operation)-5), to keep the pass corresponding all the time of map and Group containers System;
2nd, the latitude and longitude coordinates of each personnel are transformed into screen coordinate, make its with Group containers in a pair of coordinate 1 Should, as shown in Figure 5;Each personnel is added in father's container Group as a component or element;
A)Personnel as based in GIS map scheduling system by the object of command scheduling, by the terminal device that carries Report position is latitude and longitude information, and the longitude and latitude degrees of data of locating personnel is(long,lat), Location classes are then instantiated, then lead to Cross Pixel classes and obtain personnel horizontal level x in Group containers1With upright position y1, horizontal level x1With upright position y1 In units of pixel;
B)Each map operation, personnel's longitude and latitude are changed or new personnel are added in map, be carried out step A);
3rd, different pictures are called according to personnel's direct of travel, forms animation effect;
a)Current locations of the definition personnel Person in Group containers is(x0,y0), target location is(targetX, targetY);
b)Personnel's motion picture is deposited using two-dimensional array, as shown in fig. 6, being defined as Pictures [Direction] [Step], wherein Direction scopes are 0 to 7, represent eight directions, i.e. upper and lower, left and right, upper left, lower-left, upper right, the right side Under;Step scopes are 0 and 1, represent the movement decomposition of personnel's walking;
c)The method for calculating Direction:
The direction of personnel's walking can be analyzed to X-direction and Y-direction, and X-direction is defined in it:sign(targetX- x0); Y-direction is:sign(targetY-y0), thus defining Direction=f (X, Y) is:
As X=1:
If Y=1, Direction=7
If Y=-1, Direction=5
If Y=0, Direction=6
As X=-1:
If Y=1, Direction=1
If Y=-1, Direction=3
If Y=0, Direction=2
As X=0:
If Y=1, Direction=0
If Y=-1, Direction=4
If Y=0, personnel do not walk, it is not necessary to load motion picture;
d)The stride of definition personnel movement is speed, and unit is pixel, i.e., the real time position of each personnel's movement (targetX1, targetY1)For:
targetX1 = x0 + X×speed;
targetY1 = y0 + Y×speed;
Now, corresponding picture is Pictrue [f (X, Y)] [step].
As shown in figure -7, personnel move into place (w, z) place from position (x, y), then have:
w = x + X×speed;
z = y + Y×speed;
(x, y) is respectively Pictrue [Direction] [0], Pictrue with the corresponding personage's picture in (w, z) position [Direction][1]。
Map command scheduling based on GIS is used has more rich walking animation the invention enables scheduled personnel, from And improve the Consumer's Experience effect of the system(Such as Fig. 3).
Term is explained:
GIS:(Geographic Information System or Geo-Information system, GIS) be Under computer hardware and software system is supported, to earth top layer all or in part(Including atmosphere)Relevant geographical distribution in space Data are acquired, store, managing, computing, the technological system analyzing, be shown and described;
GPS:English Global Locationing System(Global positioning system)Abbreviation;
Screen coordinate:Screen coordinate is that, with the screen upper left corner as origin, trunnion axis is X-axis, wherein origin with the right side for just, with A left side is negative;Vertical axis is Y-axis, is wherein that just, the above is negative below origin;
Geographical coordinate:The spherical coordinate of ground point location is represented with longitude, latitude;
Sign functions:Sign function(General sgn (x) is represented)The symbol of function can be isolated out;In mathematics and In Computing, its function is the symbol for taking certain number(It is positive or negative):Work as x>0, sign (x)=1;Work as x=0, sign (x)=0; Work as x<0, sign (x)=- 1;
GIS command dispatching systems:The staff to all kinds of love scenes is realized using GIS and GPS technology(As People's Armed Police, Public security etc.)Track and localization, realizes visual remote command scheduling;
Location classes:Class in Openscales kits, position is
Org.openscales.geometry.basetypes.Location, implementing for such refer to Openscales kit handbooks;
Pixel classes:Class in Openscales kits, position is
Org.openscales.geometry.basetypes.Pixel, implementing for such refer to Openscales kit handbooks.

Claims (1)

1. the character animation implementation method of the GIS command dispatching systems of various maps is suitable to, it is characterised in that method is as follows:
First, map is real-time corresponding with Group containers, i.e. (0,0) position of Group containers remains the coordinate with map (minLong, maxLat) correspondence, defines the longitude and latitude scope of map:Longitude minLong-maxLong, latitude minLat- maxLat;
1)Obtain the maximum longitude and latitude and minimum longitude and latitude degrees of data when map is loaded;
2)Using maximum and minimum longitude and latitude data instance Location classes, Location instance objects are obtained;
3)Using step 2)Middle Location instance objects, instantiate Pixel classes;
4)Use Pixel case-based systems to map(minLong, maxLat)Corresponding pixel criterion value(x, y);
5)Make Group containers(0,0)The pixel value of position is step 4)In(x,y);
6)Above-mentioned steps 1 are carried out to each map operation)-5), to keep the corresponding relation all the time of map and Group containers;
2nd, the latitude and longitude coordinates of each personnel are transformed into screen coordinate, it is corresponded with the coordinate in Group containers;Often Individual personnel are added in father's container Group as a component or element;
A)Personnel in GIS map scheduling system used as based on by the object of command scheduling, position being reported by the terminal device for carrying I.e. latitude and longitude information is put, the longitude and latitude degrees of data of locating personnel is(long,lat), Location classes are then instantiated, then pass through Pixel classes obtain personnel horizontal level x in Group containers1With upright position y1, horizontal level x1With upright position y1With Pixel is unit;
B)Each map operation, personnel's longitude and latitude are changed or new personnel are added in map, be carried out step A);
3rd, different pictures are called according to personnel's direct of travel, forms animation effect;
a)Current locations of the definition personnel Person in Group containers is(x0,y0), target location is(targetX, targetY);
b)Personnel's motion picture is deposited using two-dimensional array, is defined as Pictures [Direction] [Step], wherein Direction scopes are 0 to 7, represent eight directions, i.e. upper and lower, left and right, upper left, lower-left, upper right, bottom right;Step scopes are 0 and 1, represent the movement decomposition of personnel's walking;
c)The method for calculating Direction:
The direction of personnel's walking can be analyzed to X-direction and Y-direction, and X-direction is defined in it:sign(targetX- x0);Y-direction For:sign(targetY-y0), thus defining Direction=f (X, Y) is:
As X=1:
If Y=1, Direction=7
If Y=-1, Direction=5
If Y=0, Direction=6
As X=-1:
If Y=1, Direction=1
If Y=-1, Direction=3
If Y=0, Direction=2
As X=0:
If Y=1, Direction=0
If Y=-1, Direction=4
If Y=0, personnel do not walk, it is not necessary to load motion picture;
d)The stride of definition personnel movement is speed, and unit is pixel, i.e., the real time position of each personnel's movement(targetX1, targetY1)For:
targetX1 = x0 + X×speed;
targetY1 = y0 + Y×speed;
Now, corresponding picture is Pictrue [f (X, Y)] [step].
CN201410227186.4A 2014-05-27 2014-05-27 It is suitable to the character animation implementation method of the GIS command dispatching systems of various maps Active CN104007970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410227186.4A CN104007970B (en) 2014-05-27 2014-05-27 It is suitable to the character animation implementation method of the GIS command dispatching systems of various maps

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410227186.4A CN104007970B (en) 2014-05-27 2014-05-27 It is suitable to the character animation implementation method of the GIS command dispatching systems of various maps

Publications (2)

Publication Number Publication Date
CN104007970A CN104007970A (en) 2014-08-27
CN104007970B true CN104007970B (en) 2017-06-06

Family

ID=51368637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410227186.4A Active CN104007970B (en) 2014-05-27 2014-05-27 It is suitable to the character animation implementation method of the GIS command dispatching systems of various maps

Country Status (1)

Country Link
CN (1) CN104007970B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753213B (en) * 2017-11-06 2020-07-10 北京仁光科技有限公司 Command instruction transmission method, device and equipment based on map and storage medium
CN109583514A (en) * 2018-12-19 2019-04-05 成都西纬科技有限公司 A kind of image processing method, device and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101573590A (en) * 2007-01-10 2009-11-04 通腾科技股份有限公司 Navigation device and method for displaying navigation information
JP4761581B2 (en) * 2008-03-11 2011-08-31 株式会社ナビタイムジャパン Map display system, map distribution device, map display device, and map display method
CN102819671A (en) * 2012-07-25 2012-12-12 深圳市网信联动技术有限公司 Method for carrying out data analysis by combining map
CN103345302A (en) * 2013-06-19 2013-10-09 北京邮电大学世纪学院 Virtual roaming system based on positioning and posture perception and achieving method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101573590A (en) * 2007-01-10 2009-11-04 通腾科技股份有限公司 Navigation device and method for displaying navigation information
JP4761581B2 (en) * 2008-03-11 2011-08-31 株式会社ナビタイムジャパン Map display system, map distribution device, map display device, and map display method
CN102819671A (en) * 2012-07-25 2012-12-12 深圳市网信联动技术有限公司 Method for carrying out data analysis by combining map
CN103345302A (en) * 2013-06-19 2013-10-09 北京邮电大学世纪学院 Virtual roaming system based on positioning and posture perception and achieving method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于ArcGIS Engine的车辆监控GIS系统开发";吴建华;《地球信息科学学报》;20110228;第13卷(第1期);第88-94页 *

Also Published As

Publication number Publication date
CN104007970A (en) 2014-08-27

Similar Documents

Publication Publication Date Title
CN111882977B (en) High-precision map construction method and system
CN106462997B (en) Mixing between street view and earth view
EP2954468B1 (en) Providing indoor facility information on a digital map
US8660316B2 (en) Navigating on images
WO2020257723A1 (en) Lidar-based detection of traffic signs for navigation of autonomous vehicles
CN108474666A (en) System and method for positioning user in map denotation
Kobayashi et al. Visualizing diurnal population change in urban areas for emergency management
CA2949543A1 (en) Platform for constructing and consuming realm and object feature clouds
US11140510B2 (en) Contextual map view
US11402232B2 (en) Off-viewport location indications for digital mapping
US20140340405A1 (en) Crowd movement prediction using optical flow algorithm
US20190051029A1 (en) Annotation Generation for an Image Network
US11922582B2 (en) Location-specific three-dimensional models responsive to location-related queries
Dou et al. Research on construction of spatio-temporal data visualization platform for GIS and BIM fusion
WO2020055391A1 (en) Map feature identification using motion data and surfel data
CN111275807A (en) 3D road modeling method and system
Shekhar et al. From GPS and virtual globes to spatial computing-2020
CN104007970B (en) It is suitable to the character animation implementation method of the GIS command dispatching systems of various maps
Malliri et al. The enhancement of underwater cultural heritage assets using augmented reality (AR)
Faramondi et al. Hybrid map building for personal indoor navigation systems
US20220244056A1 (en) Worldwide Coordinate Frame Defined by Data Set Correspondences
CN108885118A (en) For providing the system and method for multi-modal visual temporal perception graphical display
Agouris et al. From GPS and virtual globes to spatial computing-2020
US9196151B2 (en) Encoding location-based reminders
Zakhor et al. Next Generation, 4-D Distributed Modelling and Visualization of Battlefield

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