;Sample file accepted by cGPSmap to create new IMG file ; ;Last update : 9th May 2002 ; ;In order to create new IMG file from ArcView data run cGPSmap : ;cGPSmap as SHPtest.txt ; ;Element types is provided in RGNtype.dbf file ; ;######################################################################################## ;[IMG ID] ;######################################################################################## ; ;############ ;ID = (required) integer number, id number of map - must be unique for each map ; may be written in decimal format or special hex format with 'I' letter : ; DEC HEX ; 11000204 I00A7D98C ;############ ; ;############ ;Datum = (optional) code name of source datum, default value is W84 ; ex. Datum=NAS-A ;############ ; ;############ ;POIIndex = (optional-full version only) Y/N - if set to 'Y' all RGN10 elements will be ; indexed (to activate button 'find' in GPS) - without this option only ; with provided additional info (ex. street/description) would be indexed ; default is 'N' ;############ ; ;############ ;POINumberFirst = (optional-full version only) Y/N - if set to 'Y', then the house number ; (for POI) will be BEFORE street name ; default is 'Y' ;############ ; ;############ ;POIZipFirst = (optional-full version only) Y/N - if set to 'Y', then the zip-code (for POI) ; will be BEFORE street name ; default is 'Y' ;############ ; ;############ ;AlignMethod = (optional) -1,0,positive real value ; Choosen method for coordinate alignment - ; -1 - no special alignment - should not be used! ; 0 - grids in all regions will be aligned ; positive value - maximum error between given coordinates and ; calculated coordinates for choosen region - if error exceed ; the parameter then other region will be choosed or new region ; will be created. ; If two nodes belonging to different elements (except RGN10, RGN20) ; will be nearer than the AlignMethod distance - then during import both of them will be ; connected ; suggested value : between 0.001 and 0.000001 ;############ ; ;############ ;Name = (required) map name - character string ;############ ; ;############ ;TreSize = (optional) maximum allowed region size - in grids - the bigger value, the ; newly created region may be bigger, but performance of map might ; be worst, in other hand, the smaller region, the more regions ; must be created... ; suggested value : between 2000 and 4000 ;############ ; ;############ ;TreMargin = (optional) additional margin for newly created region (in degree) ; suggested value : 0.02 ;############ ; ;############ ;LevelFill = (optional) approximate percentage of element exsisting in Layer compared to Layer+1 ; if during creation of new map there would be not enaugh space ; in certain region, this valu may be increased ; suggested value : 75 ;############ ; ;############ ;LevelLimit = (optional) limit of element for a single region (value less or equal to 255) ; this value is used only during creating new regions on other ; layer than the most detailed one ; Decreasing this value can help if some elements could not be imported ; suggested value : 200 ;############ ; ;############ ;RgnLimit = (optional) limit for number of elements in one region ; can be any value between ~50 - 1024 (value less than 50 doesn't make sense) ; suggested value : 700 ;############ ; ;############ ;WorldMap = (optional) Y,N ; if set to 'Y' then special procedure will be used to create ; regions on layer 1 - more regions will be created ;############ ; ;############ ;Levels = (required) number of layers for map, last layer - in this example Level3 ; is always empty - no objects will be imported into ;############ ; ;############ ;Level0 = (required) grid for each layer, layer 0 is the most detailed one ; grid value is used to calculate level grid in layer - in degree value ; standard value for most detailed level is 22. ; To choose best grid values you can use the following table : ; ; Grid value also defines visibility in GPS! ; ; Grid Degree Grid Visibility for normal settings in GPS ; 24 2.14576721191406E-05 0m - 120m ; 23 4.29153442382812E-05 200m - 300m ; 22 8.58306884765625E-05 500m ; 21 0.000171661376953125 800 - 1.2km ; 20 0.00034332275390625 2km ; 19 0.0006866455078125 3km ; 18 0.001373291015625 5 - 8km ; 17 0.00274658203125 12km ; 16 0.0054931640625 ; 15 0.010986328125 ; 14 0.02197265625 ; ;############ ;Zoom0 = (required-used only by MapSource) zoom level for which given layer should be visible in MapSource ; ex. Zoom1 = 4 means Layer1 will be visible in zoom range between 30km and 12km ; WARNING! zoom values for successive layer must be ascending! ; ; Zoom Approximate visibility in MapSource ; 7 starting from 300km zoom till 120km ; 6 starting from 120km zoom till 50km ; 5 starting from 50km zoom till 30km ; 4 starting from 30km zoom till 12km ; 3 starting from 12km zoom till 8km ; 2 starting from 8km zoom till 3km ; 1 starting from 3km zoom till 1.2km ; 0 starting from 1.2km zoom ;############ ; ; LIMITATIONS : ; - Number of nodes for RGN40 and RGN80 elements is limited to 255, ; - Size of a single element cannot exceed maximum allowed size of region ; (maximum size of region can be calculated from TreSize*DegreeGrid for ; given level) ; - maximum number of regions is limited to 65535 - optimum number of regions ; is about 50 for small maps and 200-300 for big ones ;############ ; ; ;######################################################################################## ;Valid special section types : ;[POI] - dbf tables used by POI symbols ; ;Valid section types : ;[RGN10] - POI ;[RGN20] - simple points, cities ;[RGN40] - streets, streams, railroads and other polilines ;[RGN80] - lakes, reservations, regions, ; ;[SHP] (full version only) - declaration of shp/dbf pair to be imported ;[PLT] - declaration of ozi-PLT file to import ;[WPT] - declaration of ozi-WPT file to import ; ;######################################################################################## [IMG ID] ID=81380000 Name=Ehime AlignMethod=0.0001 TreMargin=0.02 Datum=W84 WorldMap=N TreSize=2000 LevelLimit=200 LevelFill=75 RgnLimit=700 Levels=4;number of layers for map Level0=22;grid for each layer Level1=20 Level2=18 Level3=16 Zoom0=1;zoom level for which given layer should be visible Zoom1=2 Zoom2=3 Zoom3=4 [END-IMG ID] ;############ ;[PLT] - declaration of ozi-PLT file to import ;RgnType= Kind of element, valid are 0x40(polilines) and 0x80(regions) ;Type= Type of element, could be written in hex or dec ;Label= Element label ;DirIndicator = (optional) 1,0 - only for streets - if value is set to 1, then on crossroads ; GPS will show direction of the road (calculated internally by GPS) ;FILE0= (optional)name of PLT file to import into layer 0 ;FILE1= (optional)as above, into layer 1 ;... ; There could be as much as 10 PLT files defined (each one for ; a different layer) - the required is at least one PLT file ;[END-PLT] ;############ ;############ ;[WPT] - declaration of ozi-WPT file to import ;RgnType= Kind of element, valid are 0x10(POI) and 0x20(simple points) ;Type= Type of element, could be written in hex or dec ;Elevation= (optional) m,f - specifies unit used for elevation ;FILE0= (optional)name of WPT file to import into layer 0 ;FILE1= (optional)as above, into layer 1 ;... ; There could be as much as 10 WPT files defined (each one for ; a different layer) - the required is at least one PLT file ;[END-WPT] ;############ ;############ ;[RGNxx] - (where xx could be 10 or 20) definition of RGN10/RGN20 ;Type= Type of element, could be written in hex or dec ;Label= Element label ;Data0= definition (coordinate) for layer 0 ;Data1= definition (coordinate) for layer 1 ;... Coordinates can be written in any resonable precision in format (ns,we) ; ; Coordinates must be written in datum defined in [IMG ID] section - if datum ; is not defined there, default datum is assumed - WGS84 ; ; There could be as much as 10 different coordinates defined (each one for ; a different layer) - the required is at least one ;############ ;############ ;[RGNxx] - (where xx could be 40 or 80) definition of RGN40/RGN80 ;Type= Type of element, could be written in hex or dec ;Label= Element label ;DirIndicator= (optional) 1,0 - only for streets - if value is set to 1, then on crossroads ; GPS will show direction of the road (calculated internally by GPS) ;Data0= definition (coordinates) for layer 0 ;Data1= definition (coordinates) for layer 1 ;... Coordinates can be written in any resonable precision in format (ns,we) ; ; All coordinates for a single object must be stored in ONE LINE ; ; For RGN40 elements there is no limitation for number of points in a single ; object, however if number of points exceed 255, object will be splitted into ; 2 or more separate elements ; ; There is no automatic splitting for RGN80 elements (areas), therefore ; you cannot exceed limit of 255 points! ; Coordinates must be written in datum defined in [IMG ID] section - if datum ; is not defined there, default datum is assumed - WGS84 ; ; There could be as much as 10 different coordinates defined (each one for ; a different layer) - the required is at least one ;--------************************* ; 道路 [PLT] Type=0x0006; RgnType=0x40;polilines Label= DIRINDICATOR=0 FILE0=DK.plt ;FILE1=DK.plt ;FILE2=DKH.plt [END-PLT] ;--------************************* ; 海岸線,水際 [PLT] Type=0x0015; RgnType=0x40;polilines Label= DIRINDICATOR=0 FILE0=SK.plt FILE1=SK.plt FILE2=SK.plt [END-PLT] ;--------************************* ; 河川 [PLT] Type=0x001f; RgnType=0x40;polilines Label= DIRINDICATOR=0 FILE0=KK.plt FILE1=KK.plt ;FILE2=KK.plt [END-PLT] ;--------************************* ; 鉄道 [PLT] Type=0x0014; RgnType=0x40;polilines Label= DIRINDICATOR=0 FILE0=TK.plt FILE1=TK.plt ;FILE2=TK.plt [END-PLT]