본문 바로가기

map

18. Gps Cycle Computer 활용2..

2010년 1월 25일..

드디어 완결이다...

이프로그램에서 원하는 것을 다할 수 있다..ㅎㅎ

의외로 답은 가까운 곳에 있었다..

내가 스크랩해놓은 메뉴얼에 다 나와 있다..단지 흠이라면 영어라는 거...

원자료를 스크랩해놓은 분에게 감사한다..

설명서중 다음 부분을 참조한다..

6. “Maps”

A “map” is any JPEG image with known coordinates of the corners. It is plotted as a background on “Maps” page. Maps are automatically selected – the map which has better coverage of the picture (in % of the picture area) and higher resolution (lower km per pixel) is selected. Also there is a option to plot multiple maps at the same time - read below how it is implemented.

So first you need a jpeg image, the file must have .jpg or .jpeg extension, e.g. “MyTown.jpg”. Do not create very large images, as it takes long time to load and plot them - a good size is a standard PC screencapture (e.g. about 1600x1200).

To specify the map coordinates, you can use 2 methods. First method is to create a text file (with .txt extension and the same name as the image, e.g. “MyTown.txt”) which contains 4 lines: 1st line - latitude of the bottom left corner, 2nd line – longitude of the bottom left corner, 3rd line - latitude of top right corner, 4th line – longitude of the top right corner. The lat/long must be in decimal format, e.g. 55.976598, just the decimal number, no degrees character, etc.

You need to place the jpg and txt files into folder with your maps. By default, this is the “maps” subfolder where GpsCycleComputer executable is installed on your phone, e.g. if you install into “Internal Storage”, then the default location (on English Windows) will be: “\Internal Storage\Program Files\GpsCycleComputer\maps”. This folder is created during CAB installation and has a text file “maps_folder.txt” inside, so you shall be able to identify it easily. Note that you can change the maps location in Options. The tool supports up to 512 “maps” per folder.

The second method is to use GoogleEarth to create maps, it is quick and accurate. A very good and detailed description how to create such a map is given in the RunGps manual, section 5.2.2 (look at http://www.rungps.net/wiki/DownloadsEN). The only difference is that you need to save location as “.kml” file, not as “.kmz” file used by RunGps. If you already have a .kmz file, then it is easy to convert it to .kml: simple change the .kmz extension into .zip (this is a zip file), and unzip it – the unzipped file will be the .kml.

So here are the main steps:

  • Start GoogleEarth and select the area to be used as a map.
  • Make sure that the “Terrain” layer is OFF, otherwise the map will be distorted (the layers are shown in the side bar)
  • Make sure the map is not rotated, i.e. the north is up. Press “r” (in English version) to “reset” any rotations.
  • You can also switch on grid (Ctrl-L), to check that the map is not rotated – but better to save picture without grid.
  • Save the image (Ctrl-Alt-S) as a jpeg file.
  • Now add a placemark (Ctrl-Shift-P), do not move/edit it, just press OK to put it in the centre of the image.
  • Save this location (Ctrl-S), select “.kml” file, and give it the same name as the .jpg file for the map.

This is it! As with the txt files, you need to place the jpg and kml files into folder with your maps (by default, this is the “maps” subfolder where GpsCycleComputer executable is installed).

Here is my interpretation how this works for kml files: The .kml file is just a text file. It contains the coordinate of the map centre (LookAt point) and the height of the “eye” This is a single point, but as I understand, the default angle of view along the horizontal (x-axis) is 60 degrees, so knowing the height of the “eye” and this view angle allows to determine the map size along x-axis. As we know the picture size in pixels, then we can determine the y-size of the map.

As I mention, the maps are automatically selected - as you touch and lift you finger from the screen or press zoom-in/zoom-out buttons. The map name is displayed at the bottom of the screen. If no maps covers the view area, then no map is used, and the display says “no map”. The track line colour and width are borrowed from the KML track line settings (on the option page).

Note that you can see the map only as a background for your existing track, you cannot just browse any maps you created without having a track recorded for that location (well, if you want to see the map jpeg image - just click on it in File Explorer - this is just a jpeg!)

Multi-maps plotting algorithm - tries to plot multiple jpeg maps (instead of a single, the best, map). The maps a simply plotted on the top of each other, so the trick is to decide in which order to plot the maps. Well, I have an idea to plot the maps in order of "map quality"- starting from the worst, and finishing with the best, so we have the best map on top. There are two factors which determine "map quality" - first is how much area of the screen is covered by the map (the best map will cover 100%). Second factor is what is map zoom level - clearly, there is a zoom level at which the map is best readable on the phone screen - this is selectable in options (you can choose 1:1, 2:1 or 1:2). If the zoom level is different (i.e. if you zoom-in or zoom-out) - the map quality will drop (details are too fine and not possible to read, when you zoom-out, or, details dissappear as you zoom in more and more). So the map quality is defined as multiplication of map coverage by zoom quality factor. Well - this is probably too complicated to explain - but all you need is to experiment with different settings and see which one works best for you. Note that the more maps you use, the more memory requirements.

Regarding what set of maps to create - I think the best idea to create maps for the same area at different zoom level - e.g. a overview map, then maps which cover some part in more and more details. Then the tool will try to select the best (or the best set of) maps for you. Do not create very large or very small images, the best is the standard PC screen capture (e.g. 1600x1200 or smaller).

정리하자면

첨에는 매뉴얼을 안보고 jpg 파일을 만들어서 GpsTrackmaker에서

정확한 두점을 잡아 알맵에서 읽어 맵핑을 시키고 gtm 파일을 만들었더니 실패...

인식을 못한다...

아니 jpg로하고 두점도 알려줬는데 왜 못읽나???

매뉴얼을 보니 자기들만의 양식이 있다..ㅎㅎ

지도를 넣는 방법은 두가지가 있다..

jpg 파일을 저장하는 것은 똑같은데 한가지는 네귀퉁이 점이

들어있는 텍스트파일을 만드는 것이고,,

다른 하나는 구글어스를 통해 센터한점이 들어있는 kml 파일을 만드는 것이다..

인터넷을 보니 두점맵핑은 부정확해서 세점, 네점을 해야 한다는 말도 있던데

동일프로그램으로 하면 한점과 지도의 크기만 있으면 될것 같다는 생각이 든다...

어쨌든 텍스트로 하는 것은 너무 번거로워 구글어스에서 만드는 방법을 택했다..

구글어스에서 원하는 부분을 골라 R을 눌러 보는 방향과진북을 자리잡은 후에

콘트롤L을 눌러 위선과 경선을 넣을지 선택한다...이과정에서 선이 휘어져 보이면

왼쪽 지형의 체크를 해제한다..

다음 콘트롤알토S를 눌러 jpg를 저장한다..

다음 콘트롤시프트P를 눌러 센터의 점을 정한다.

다음 콘트롤S를 눌러 kml파일로 저장한다.

두 개 파일의 이름이 일치하나 확인하고 정해준 폴더에 넣는다..

그럼 보인다..ㅎㅎ

노란점선은 gpx파일의 트랙을 읽어 온것이고 지도는 여러개를 넣어도

정해진 위치에 가장 가까운 것을 보여준다..

지도가 곂칠때는 정밀한 것을 위로 보여 주던데, 어떤 기준인지는 모르겟다....


확대축소하면 지도가 보이는 범위를 알 수 있다..


다른 사람의 일자산 싱글길지도를 구글어스에서 저장한 지도위에

곂쳐서 jpg로 저장하였다...

gpx를 구할 수 있으면 gpx를 읽어 오면 편하지만,,

없으면 그냥 길이 그려져 있는 파일을 저장해서 봐도 볼만한듯...


더 많은 범위를 보았다..

더 큰 지도를 만들고 싶어서 모니터 해상도를 1920*1440 으로 하고

F11을 눌러서 아주 큰 지도를 만들었다..ㅎㅎ


이번에는 망우산 지도를 넣어 봤다..

이 지도를 보려면망우산 쪽을 찍어서 그쪽으로 움직이면 된다..


망우산지도는 구글지도 + 내가 한바퀴 돈 경로 + 다른 사람의 지도 3개를 곂쳐놓았다..

오차가 좀 있으니 중간으로 가면 맞을까???


노란색점은 읽어온 경로,,

주황색점은 현재의 나,,

바탕은 현재 위치 근처의 지도이다..


시장가는 길이라 아래쪽은 지도가 없다...


좀더 많이 보았다..


더 많이, 아래 점 많은 부분이 명일동시장이다..


현재 현결되어 초록색 네모가 보인다..


방안에만 있어도 주황색 나는 저정도 움직임이 기록된다..

이것이 오차의 한계인가 보다..ㅎㅎ

다음은

Garmin Mobile XT, WMT, 등산매니아, BeelineGps,,,중

어느 것을 먼저 할 것인지 즐거운 고민이다...

가민 xt는 차량용 네비인데 우리나라 정밀산악지도가 있어서 좋을 것 같고,,,

다른 것들도 나름대로 장점이 많다...ㅎㅎ


'map' 카테고리의 다른 글

20. 일자산 지도와 코스완성..  (0) 2010.02.07
19. gps와 지도관련 프로그램들..  (0) 2010.02.07
17. Gps Cycle Computer 활용..  (3) 2010.01.24
15. Gps Cycle Computer 3.98 설명서  (0) 2010.01.23
14. 블루투스 gps 수신기 gps741..  (0) 2010.01.23