使用globalmapper、mpc、gmaptool制作garmin 3d dem数据地图 - 广东 - 8264户外手机版

  广东
本帖最后由 了.了 于 2013-4-26 12:03 编辑

《使用globalmapper、mpc、gmaptool制作Garmin 3d dem数据地图
(所需的软件在置顶FTP里下载)
oregon 400 、450、500系列手持机,Garmin 基于 WinCE 和 WM 系列的5.52(2km以上比例)、5.86版本的 Moblie XT,基于android的streetpilot1.49以上版本都支持garmin 3d dem数据地图;
步骤如下:
1、gm打开相应经纬度的aster gdem v2数据,把gm的设置的投影模式定为经纬度模式,因为mpc只接受经纬度模式的文件。
2、创建输出范围的面对象:调入相关地图创建面对象或直接勾画面对象,并数字化工具选中面对象,面对象的名称、描述、属性里可包含中文字;
3、生成*.bil文件:选择“输出高程格式文件”~“BIL/BIP/DSQ”~格式:高程bil-2字节(16位)~采样间距:默认值~垂直单位:米~“差值填补空白数据”以免有数据空洞,其他不选~导出边界:“以选择定的面对象范围裁减输出”;
4、生成:*.shp文件:“输出矢量格式”~shapefile~“输出面”~分块输出基于:不分割输出~选项全空~导出边界:“以选择定的面对象范围裁减输出”;
5、数据输出输入文件夹不能为中文,否则mpc会奔溃,bil和shp相关的共7个文件名不能为中文,否则mpc转换出来的3d dem主数据文件无地图数据,其他参数可用中文;
6、MPC生成3ddem数据:product name可用中文~buid loCATion输出地图数据文件夹~license file :testlicense.mpl~add map:map name可中文,basemap不选,add data files加入上述bil、shp二个文件;
config map builds

general:input code page、map code page若有简体中文参数或文件中有中文属性选择936,若有繁体中文参数或文件中有中文属性选择950,若全英文字母则选择1252,不可简繁混用;选enable dem export生成dem地图数据,否则地图文件数据为空,可选use lossy dem compression有损细节输出方式减小地图文件大小;其他项不选;
detailed:选transparent detailed maps以便让dem地图显示在所有矢量地图层的最下面,以免覆盖其他地图;map background:land;dem sacale:30m默认;scale and simplification settings:number of feature layers:5,让dem地图生成五层以匹配其他常用矢量地图数据;其他不选或默认值;
install:选create product image ,可在输出文件夹下的Product_Image目录里生成标准的2个地图数据发布文件:gmapsupp.img、gmapbase.img;
其他项目留空或默认值或不选;

build~生成3d dem数据系列文件

CD_Contents目录为向手持设备安装地图的光盘数据和软件;
Product_Image目录里的gmapsupp.img放到相关导航设备或软件里即可识别显示,无需gmapbase.img基础地图,gmapsupp.img用gmaptool工具,无需设置图集名和fid即可“拆分”安装到basecamp4.0以上版本;
形如0501xxxx.img文件为单一地图文件,可用gmaptool设置好图集名和fid,“拆分”安装到basecamp4.0以上版本,或合并为导航软件和手持设备直接使用的img文件;


7、技巧:为了节省mpc转换数据时间,当状态框里出现creating setup_enu.msi时,按cancel取消,此时0501xxxx.img文件已经生成,利用此文件即可合并/拆分/安装使用了,无需生成CD_Contents、Product_Image了;如果在某些设备和软件,dem图盖住了其他图,可以用gmaptool的“写入”项的”绘图优先级别“,1-30,数值越高,图层越上,可以改变dem图的层次

利用该方法制作出的aster gdem v2版的无损输出的garmin 3d dem数据地图样例 对比
小胖熊网站wanglody用aster gdem v1以有损输出制作的全国garmin 3d dem地图的相同区域的截图
相关英文资料

Why add a DEM (digial elvevation model) file?   It will show you elevation at any spot on your map, and it enables drawing an elevation profile (distance vs. elevation) in your GPS, of an active route, and in Mapsource.  Nice for topo maps.

The secret is to get Microdem, at http://www.usna.edu/Users/oceano ... m/microdemdown.htm.   It will open and convert geotif files and DTED DEM (.dt1) files into the .bil dem format required by Garmin.   I tried 3DEM, Quantum GIS, GRASS, the ERDAS ER Viewer, and none of those did the trick.  Ironically, Microdem doesn't convert a .bil file to a .bil file, even if it's been converted to another format, e.g. .tif.    One quirk about Microdem: if you open it as MODIS or QuickView, it will reopen in that program, even if you select Microdem shortcut.  You must go to Options, and in the Menu box, select Regular, then OK...it will open next time with Microdem.   It's easy then: just select File, Open, Open DEM, browse to find the DEM file you want; once it's loaded, select File, Save DEM, then BIL.   It will make the files in the Garmin BIL format.

Where to get the DEM files?  The ASTER data is very good, it is available at https://wist.echo.nasa.gov/~wist/api/imswelcome/  and there is a nice tutorial there how to do it.  It provides a DEM geotif file, about 25 MB for a 1 degree tile.  It's easiest to select the latitude and longitude in the 4 corners.   

You can also get the SRTM data at http://edcsns17.cr.usgs.gov/NewEarthExplorer/   You can download as .bil or DTED.  The bil file is not in Garmin format: it is in decimal seconds (not decimal degrees), and not in double precision digits, and Microdem won't "convert" it.   It's better to download as DTED, and then use Microdem to convert to .bil.  This data has a lot of missing cell values, and is not as detailed at the ASTER data.  It will be about a 2.8 MB file for a 1 degree area.  Again, here, easiest to enter location in the box "Area Selected."   The results will bring up an Elevation option.  Select that and you'll get the files.  There is also the National Elevation Dataset (NED) at http://seamless.usgs.gov/ if you're just looking at basically the United States.  I haven't used that yet.

In the Mapsource Creator Product (MPC) program, you'll need to load a shape file along with the .bil file (see the tutorial in the MPC program).   You can get shapefiles at http://geonames.nga.mil/ggmagaz/   Select Output in the upper left, then, in Output Instructions, select Shapefile.   Select an area under regions.   There is a lot of good data here you could use in GPSMapEdit.   Alternately, make an .mp file with GPSMapEdit, only an area polygon of the size you want your finished map to be.  In the label field, put in a Garmin area type, found in the help file in MPC, e.g. GOLF_COURSE.   You can experiment with different names.  I haven't tried DATA_BOUNDS yet, but that may crop the map to an irregular (not square) polygon, which would be good.  Save the .mp file, then copy cgpsmapper.exe (only $40 now for routable...I think we owe that to Stan), and the sendg.dll file in the cgpsmapper folder, to the folder where the .mp file is.  Run cgpsmapper in cmd, that is, go to Start, Run, type in cmd, then hit enter.   Type in   CD      
This stands for change directory.   After CD, type in the path to the .mp file, e.g.      
C:\Documents andSettings\Owner\Desktop\Garmin Shape        Then, hit Enter.   Then, type in   cgpsmapper  shp nameofyour mpfile.mp       and hit enter.   It will spit out a ton of shape files in the folder.   You can delete all of them except the polygon.shp, polygon.shx and polygon.dbf files.    In the .dbf file, I just opened it with Excell, and changed the Label heading to GRMN_TYPE
In that column should be a Garmin Area type, the GOLF_COURSE or whatever.   There are .dbf editors if you're doing anything complicated.   Put NAME in the first column.   Doesn't matter what the name is.  It will be some number, e.g., 24, that GPSMapper uses, I think, to define its type.  Save the .dbf.   Now, it's ready to use with MPC, along with the BIL file you made.   Follow tutorial in MPC.  Make sure to check allow DEM export.

Once you made an .img, the DEM is embedded in it, cropped to size.  If you want to extract the  DEM, you must first load it in Mapsource, using MapSetToolKit, or GmapTool.  Get Map Converter, from Garmin, at http://www8.garmin.com/support/download_details.jsp?id=3897
Run MapConverter (select only the mapset with the .img you want to "disect,") and download to a convenient folder.   Dig into the .gmapi  Folder, and you'll find the Garmin DEM you want.    Now you can add this DEM to an .img you have made through GPSMapEdit.   You need to make sure you change the name of the DEM file to the INTERNAL name of your .img.   Then you will join the two files with GmapTool (from http://www.anpo.republika.pl/download.html#gmaptool).   Load your .img file, and the DEM file that you've renamed, go to JOIN, select an Output file (use an 8 digit number for .img name), create a Mapset name, set a Mapset FID (any arbitrary number, less than 6 digits, I think?),  and  PID as 1.  Check "Don't create a MPS subfile" and "Include other data."  Then hit the "join all" button.   This will create a .img with the Garmin DEM embedded in it.   You can then load the .img in Mapsource with the GmapTool kit.   I think this is preferable than MapSetToolKit, because I think that may by default create an empty DEM, whereas with GmapTool, (you create Mapsource files in the Split tab (sounds funny, I know)), you can leave the Add Empty DEM box unchecked.  This will create install and uninstall .bat files.  If you have trouble with the map in Mapsource (program shuts down), you can run uninstall.bat, or use MapSetToolKit to remove the mapset.   If you haven't done this before, it may take some experimenting, and internet searching, to get this right.

If you have a map with Garmin DEM in, for example, a commercial topo map, you can extract the DEM file and use it in your custom map.   Only one Garmin DEM per .img, so you may need to split your .img to the available DEM sizes.   It's in Spanish (use Google translate), but here's how:  http://gpsando.blogspot.com/2008 ... m-los-mapas-de.html
轨迹地图门外汉 真心的说一句英文看不懂
不知为何,用了里面的streetpilot两个版本安装后都不成功,我的手机版本是4.1的

这个安装有点难度,仔细看说明,慢慢尝试,不同型号手机可能方法各异,靠自己慢慢摸索,一旦成功就爽了

我的手机是4.0的,已经用上了。安装SD卡版本,将目录下的所有文件夹拷贝到 存储卡/Garmin/ 就能用了。基础比较差,还在温习和消化培训的内容。涓涓你已经很厉害了~
本帖最后由 了.了 于 2013-4-25 22:14 编辑

你的悟性不错,garmin的专业资源多多,你可以享受山寨garmin手持机的待遇了,学学garmin地图的制作也有地方验证了,没有手持机或没这种兼容性好的模拟软件,制作garmin地图纯纸上谈兵没啥意思,你的手机也貌似给力,我的手机就比较悲催,尝试了网上所有办法和版本都不行,郁闷,最后自己弄了个杂交的办法。
哇!太诱人了...
本帖最后由 laijs 于 2013-4-26 06:20 编辑

这个再好好学习下,不管对自己有没有用。。。辛苦SW了

发表回复 关闭 发送

您需要登录后才可以回复登录