CN102930777B - System and method for representing world map weather based on embedded-type device - Google Patents
System and method for representing world map weather based on embedded-type device Download PDFInfo
- Publication number
- CN102930777B CN102930777B CN201210371115.2A CN201210371115A CN102930777B CN 102930777 B CN102930777 B CN 102930777B CN 201210371115 A CN201210371115 A CN 201210371115A CN 102930777 B CN102930777 B CN 102930777B
- Authority
- CN
- China
- Prior art keywords
- city
- weather
- screen
- draw
- information
- 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.)
- Expired - Fee Related
Links
Landscapes
- Processing Or Creating Images (AREA)
- Electric Clocks (AREA)
Abstract
The invention discloses a system for representing the world map weather based on an embedded-type device. The system for representing the world map weather based on the embedded-type device comprises an analyzing unit, a drawing unit, a calculating unit, an acquiring unit and a processing unit which are connected in sequence, wherein the analyzing unit analyzes map information; the drawing unit draws information on a map; the calculating unit calculates coordinate points; the acquiring unit acquires the urban information of the coordinate points; and the processing unit is used for representing. According to the system and a method for representing the world map weather based on the embedded-type device, the weather of the embedded-type device on the world map can be represented intuitively and accurately.
Description
Technical field
The present invention relates to a kind of system and method for the performance world map weather based on embedded device.
Background technology
At present, the weather application on market is select the Weather information of just display current city behind city mostly, can not the universal geography position in direct this city of locating and displaying.For map application, be also show all Weather informations on whole map, for mobile device, be subject to quantity of information with display area in limited time, good Consumer's Experience can not be brought.As a world weather software of forecasting for mobile device customization, the Weather information that intuitively can show all interpolation cities accurately just seems important.
Summary of the invention
In order to solve technical matters existing in background technology, the present invention proposes a kind of system and method for the performance world map weather based on embedded device, intuitively showing the weather of embedded device accurately on world map.
Technical solution of the present invention is: a kind of system of the performance world map weather based on embedded device, it is characterized in that: described system comprises the analytic unit to map information analysis, the image-drawing unit that map is drawn information, the computing unit of coordinates computed point, the acquiring unit obtaining coordinate points urban information and the processing unit showed, and described analytic unit, image-drawing unit, computing unit, acquiring unit and processing unit connect successively.
The information that above-mentioned image-drawing unit is drawn shows with nine grids form.
Above-mentioned acquiring unit is the concrete Weather information being obtained city by API.
Based on a method for the performance world map weather of embedded device, comprise the following steps:
1) the time dense fog of the information round the clock that indicates is drawn;
2) city list coordinate is obtained;
3) obtain city list Weather information and show weather detail.
Above-mentioned steps 1) concrete steps be:
1.1) current host time is obtained;
1.2) the X-axis coordinate of the screen in the time zone of 0:00 is obtained;
1.3) calculate (X-5* time zone is interval) and whether be less than 0, if so, then continue step 1.4);
1.4) draw to the left to screen left-hand end, continue to draw time dense fog left from screen right-hand member;
1.5) calculate (X+6* time zone is interval) and whether be greater than screen width, if so, continue step 1.6);
1.6) draw to the right to screen right-hand end, continue to draw time dense fog to the right from screen left end.
Above-mentioned steps 1.3) if (X-5* time zone is interval) is not less than 0, then on the left of screen, draw time dense fog.
Above-mentioned steps 1.5) if (X+6* time zone is interval) is not more than screen width, then on the right side of screen, draw time dense fog.
Above-mentioned steps 2) concrete steps be:
2.1) city list needing display is obtained;
2.2) next urban information is obtained;
2.3) longitude and latitude of current city is obtained;
2.4) current city the country one belongs to capital coordinate points on map is obtained;
2.5) offset according to the position of engineer's scale calculating current city and capital city;
2.6) judge whether there is step 2.5 in stored record) (X, Y) coordinate, carry out (X, Y) coordinate offset if having;
2.7) city list of coordinates is stored.
Above-mentioned steps 3) concrete steps be:
3.1) city list needing display is obtained;
3.2) next urban information is obtained;
3.3) weather condition of current city is obtained;
3.4) figure coordinate representing this weather is obtained;
3.5) on map, draw the coordinate points in this city;
3.6) draw and show the simple frame representing this urban weather information.
The invention provides the directly perceived accurately technique of expression of a kind of weather based on embedded device on world map, there is following characteristics: selected city coordinate position on display world map; Urban weather information uses the round dot of particular color to represent; There is time dense fog effect and represent that the earth converts round the clock, utilize the planar world map that is launched, the concrete coordinate of this city on map is located according to the latitude and longitude information in city, and according to the difference of current weather, display has the coordinate points of the different colours of particular weather Meaning of Information, and provide one to close on current real-time weather information that prompting frame comes display-object city.
In order to provide Consumer's Experience more intuitively, according to current time, add a kind of state of similar time dense fog to whole map, show the information round the clock in the whole world at present, dark part represents night, and bright part represents daytime, enriches Consumer's Experience.
The present invention is little of features such as network service restrictions mainly for embedded device screen, the form of expression of a kind of weather on world map is provided, utilize the planar world map that is launched, the latitude and longitude information in city is utilized to calculate the coordinate of city on screen, the coordinate points becoming to have weather implication according to the State Transferring of weather is presented on screen, shows a text box that can shrink expansion to represent detailed Weather information near the coordinate points that this is small-sized.Further, according to the temporal information on subscriber equipment, on world map, show situation round the clock intuitively, the Weather information needed for understanding that user prepares fast can be helped.In addition, this technique of expression user that also can help sets up universal geography information intuitively, and study is to some geographical knowledges.
Accompanying drawing explanation
Fig. 1 is structural representation of the present invention;
Fig. 2 is coordinate points of the present invention skew schematic diagram;
Fig. 3 is method flow diagram of the present invention;
Fig. 4 be the present invention round the clock information time dense fog draw process flow diagram;
Fig. 5 is city of the present invention coordinate points calculation flow chart;
Fig. 6 is urban weather details process flow diagram of the present invention;
Fig. 7 .1-Fig. 7 .4 is the specific embodiment of the present invention schematic diagram;
Embodiment
See Fig. 1, a kind of system of the performance world map weather based on embedded device, comprise the analytic unit 1 to map information analysis, map drawn the image-drawing unit 2 of information, the computing unit 3 of coordinates computed point, the acquiring unit 4 obtaining coordinate points urban information and the processing unit 5 showed, analytic unit 1, image-drawing unit 2, computing unit 3, acquiring unit 4 and processing unit 5 connect successively; The information that image-drawing unit 2 is drawn shows with nine grids form; Acquiring unit 4 is the concrete Weather informations being obtained city by API.
Based on a method for the performance world map weather of embedded device, comprise the following steps:
1) the time dense fog of the information round the clock that indicates is drawn;
1.1) current host time is obtained;
1.2) the X-axis coordinate of the screen in the time zone of 0:00 is obtained;
1.3) calculate (X-5* time zone is interval) and whether be less than 0, if so, then continue step 1.4); If (X-5* time zone is interval) is not less than 0, then on the left of screen, draw time dense fog;
1.4) draw to the left to screen left-hand end, continue to draw time dense fog left from screen right-hand member;
1.5) calculate (X+6* time zone is interval) and whether be greater than screen width, if so, continue step 1.6); If (X+6* time zone is interval) is not more than screen width, then on the right side of screen, draw time dense fog;
1.6) draw to the right to screen right-hand end, continue to draw time dense fog to the right from screen left end;
2) city list coordinate is obtained;
2.1) city list needing display is obtained;
2.2) next urban information is obtained;
2.3) longitude and latitude of current city is obtained;
2.4) current city the country one belongs to capital coordinate points on map is obtained;
2.5) offset according to the position of engineer's scale calculating current city and capital city;
2.6) judge whether there is step 2.5 in stored record) (X, Y) coordinate, carry out (X, Y) coordinate offset if having;
2.7) city list of coordinates is stored;
3) obtain city list Weather information and show weather detail.
3.1) city list needing display is obtained;
3.2) next urban information is obtained;
3.3) weather condition of current city is obtained;
3.4) figure coordinate representing this weather is obtained;
3.5) on map, draw the coordinate points in this city;
3.6) draw and show the simple frame representing this urban weather information.
Implementation of the present invention specifically see Fig. 2-Tu, 6, first on map, draw information round the clock.Here have ignored the revolution impact of the earth, only consider rotation factor, assert and be 12 hours round the clock, calculate the area of current 0:00 according to host time and main frame time zone meter, then using this area as the most black part, respectively draw the gradual change black in 6 time zones to the left and right, in case of screen border then continues to draw from screen another side, represent relation round the clock with this, the transparent layer of simply drawing the somber of one deck gradual change hides world map, converts round the clock to represent.
Then, the urban information selected according to user and the transformational relation of screen pixels calculate the coordinate points selecting city, here it should be noted that the restriction due to embedded device screen size, may overlap on map due to the factor of engineer's scale for the city that map closes on, here the skew doing certain direction according to the latitude and longitude information in city according to the mode of nine grids is needed, if two city longitudes and latitudes are identical, then acquiescence is toward upper right skew, see Fig. 2.
The concrete Weather information in this city is obtained finally by API, according to the concrete weather representation of arranging in advance, a kind of graphical information of concrete weather is given to coordinate points, as shown in table 1, be presented on the world map of the current expansion of screen, and around rendering text frame represent concrete Weather information, equally, according to the display of embedded device, here text box has the manifestation mode of upper and lower superposition, according to the sequencing calculated, repeatedly pressure is carried out to the text box of weather details, text frame has the operation choosing automatic integral top set, also can carry out expansion zoom operations by the click of city coordinate points simultaneously.
Table 1
This method, by the analysis to cartographic information, to the integration of obtained data, has 3 large key steps to complete the technique of expression of world weather, see Fig. 3; First, on map, the time dense fog representing information is round the clock drawn according to host time, then the coordinate information in current selected city is obtained, the Weather information in selected city is obtained finally by API, according to the coordinate information obtained, display represents coordinate points and the weather concise message of current city weather.
See Fig. 4, first obtain the current time of main frame, according to the time-zone information of main frame, time zone when calculating 0:00 is to obtain x coordinate corresponding to screen.Then, 5 time zones on the left of 0 time zone, namely the time dense fog of gradual change is added in 19:00-00:00 region, if left field shows not, then continues display left from screen low order end.Then, to 6 regions on the right side in this 0 time zone, namely similar time dense fog is added in 0:00-6:00 region, the drawing process of deadline dense fog.
Error is there is in the map on reduced scale owing to considering, if simple calculating according to longitude and latitude may cause location inaccurate, if for storing coordinate position, each city be again a thing wasted time and energy very much, be employed herein reduce orientation range method to reduce this error.First the latitude and longitude information of target cities is obtained, then from database, search the physical location of capital on the map reduced of current city the country one belongs to, calculate the skew of this target cities relative to capital city according to engineer's scale, orient the actual coordinate value in this city.Finally, judge that other city coordinate whether this coordinate figure follows queue to store has conflict, if there is conflict, then carries out nine grids shifting algorithm to what complete target cities and realize coordinate offset, repeat above-mentioned steps until calculate the city coordinate information stored in all queues.
See Fig. 6, first the real-time weather information of current city is obtained by API, then search weather coordinate points correspondence table (table 1) according to different state of weather and obtain current city map reference point, map shows corresponding map reference point and shows the simple frame of this urban weather detail around, if need superposition, then latter one covers previous process.Until shown all selected cities.
Specific embodiments of the invention are see Fig. 7 .1-Fig. 7 .4, Fig. 7 .1 is the time dense fog state representation of peacetime state, has wherein carried out shrink process to the details in 2 cities: Fig. 7 .2, Fig. 7 .3 are that the world map of part weather shows (non-temporal dense fog state): Fig. 7 .4 is the processing mode that Weather information overlaps.
Claims (3)
1., based on a method for the performance world map weather of embedded device, it is characterized in that: said method comprising the steps of:
1) the time dense fog of the information round the clock that indicates is drawn;
1.1) current host time is obtained;
1.2) the X-axis coordinate of the screen in the time zone of 0:00 is obtained;
1.3) calculate interval, X-5* time zone and whether be less than 0, if so, then continue step 1.4);
1.4) draw to the left to screen left-hand end, continue to draw time dense fog left from screen right-hand member;
1.5) calculate interval, X+6* time zone and whether be greater than screen width, if so, continue step 1.6);
1.6) draw to the right to screen right-hand end, continue to draw time dense fog to the right from screen left end;
2) city list coordinate is obtained;
2.1) city list needing display is obtained;
2.2) next urban information is obtained;
2.3) longitude and latitude of current city is obtained;
2.4) current city the country one belongs to capital coordinate points on map is obtained;
2.5) offset according to the position of engineer's scale calculating current city and capital city;
2.6) judge whether there is step 2.5 in stored record) (X, Y) coordinate, carry out (X, Y) coordinate offset if having;
2.7) city list of coordinates is stored;
3) obtain city list Weather information and show weather detail;
3.1) city list needing display is obtained;
3.2) next urban information is obtained;
3.3) weather condition of current city is obtained;
3.4) figure coordinate representing this weather is obtained;
3.5) on map, draw the coordinate points in this city;
3.6) draw and show the simple frame representing this urban weather information.
2. the method for the performance world map weather based on embedded device according to claim 1, is characterized in that: described step 1.3) if interval, X-5* time zone is not less than 0, then on the left of screen, draw time dense fog.
3. the method for the performance world map weather based on embedded device according to claim 2, is characterized in that: described step 1.5) if interval, X+6* time zone is not more than screen width, then on the right side of screen, draw time dense fog.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210371115.2A CN102930777B (en) | 2012-09-28 | 2012-09-28 | System and method for representing world map weather based on embedded-type device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210371115.2A CN102930777B (en) | 2012-09-28 | 2012-09-28 | System and method for representing world map weather based on embedded-type device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102930777A CN102930777A (en) | 2013-02-13 |
CN102930777B true CN102930777B (en) | 2015-07-08 |
Family
ID=47645564
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210371115.2A Expired - Fee Related CN102930777B (en) | 2012-09-28 | 2012-09-28 | System and method for representing world map weather based on embedded-type device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102930777B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2196315Y (en) * | 1994-04-20 | 1995-05-03 | 兰家林 | Map clock |
CN1366465A (en) * | 2000-03-21 | 2002-08-28 | 索尼计算机娱乐公司 | Entertainment apparatus, storage medium and method of deciding weather |
CN2807308Y (en) * | 2005-02-04 | 2006-08-16 | 范者正 | Electronic time zone chart displaying apparatus synchronize with sunshine |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003315071A (en) * | 2002-04-25 | 2003-11-06 | Sony Corp | Map display system, map display device, and method and program for displaying traffic congestion information |
JPWO2006006450A1 (en) * | 2004-07-08 | 2008-04-24 | シャープ株式会社 | Information processing apparatus, information processing system, information processing apparatus control method, information processing apparatus control program, and recording medium recording information processing apparatus control program |
-
2012
- 2012-09-28 CN CN201210371115.2A patent/CN102930777B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2196315Y (en) * | 1994-04-20 | 1995-05-03 | 兰家林 | Map clock |
CN1366465A (en) * | 2000-03-21 | 2002-08-28 | 索尼计算机娱乐公司 | Entertainment apparatus, storage medium and method of deciding weather |
CN2807308Y (en) * | 2005-02-04 | 2006-08-16 | 范者正 | Electronic time zone chart displaying apparatus synchronize with sunshine |
Also Published As
Publication number | Publication date |
---|---|
CN102930777A (en) | 2013-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102155949B (en) | Method for displaying weather information in navigation and navigation terminal | |
US9110573B2 (en) | Personalized viewports for interactive digital maps | |
AU2010257305B2 (en) | Techniques for density mapping | |
US8290705B2 (en) | Mobile navigation system with graphic crime-risk display | |
CN102227611B (en) | For providing the method and apparatus of the cursor of context data in instruction drawing application | |
US20180301111A1 (en) | Electronic device and method for displaying electronic map in electronic device | |
CN104731894A (en) | Thermodynamic diagram display method and device | |
CN109493407A (en) | Realize the method, apparatus and computer equipment of laser point cloud denseization | |
CN101908060B (en) | Manufacturing method, display method and system of vector numerical map | |
CN103971589A (en) | Processing method and device for adding interest point information of map to street scene images | |
JP2008191718A (en) | Information processing apparatus, image display apparatus, information processing system, method for controlling them, and program for causing computer to execute the method | |
CN102620738A (en) | Interactive geographic feature | |
CN102202134A (en) | Display method of weather forecast and mobile terminal | |
CN104833362A (en) | Method for generating positioning and driving path of route fixed vehicle on basis of Baidu map | |
KR20140098653A (en) | Apparatus and method for compass intelligent lighting for user interfaces | |
CN104700333A (en) | Tour guide system in scenery spot and working method of tour guide system | |
CN105466413A (en) | An augmented-reality real-scene navigation technique based on an intelligent mobile platform and combining GPS | |
CN112203054B (en) | Monitoring video point location marking method and device, storage medium and electronic equipment | |
CN103487059A (en) | Positioning and navigation system, device and method | |
CN103500060A (en) | Electronic map manufacturing method, electronic map manufacturing device, electronic map displaying method and electronic map displaying device | |
CN109857826B (en) | Video camera visual field marking system and marking method thereof | |
TWI335423B (en) | Navigation apparatus using image map and method thereof | |
Yang et al. | A comprehensive and up-to-date web-based interactive 3D emergency response and visualization system using Cesium Digital Earth: taking landslide disaster as an example | |
CN102930777B (en) | System and method for representing world map weather based on embedded-type device | |
CN113127584B (en) | Map labeling method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150708 Termination date: 20160928 |