How to GeoReference a Raster chart (.KAP) with .map File (OziExplorer)

Topics: Algorithms, SharpMap v0.9 / v1.x
Apr 13, 2012 at 2:11 PM
Edited Apr 13, 2012 at 2:11 PM

Hi, mi name is Diego. i have a map in .kap format with your .bsb file. Also, i have a .map file which can open with Ozi Explorer and GeoReference the chart without problem. i need open this .map file with SharpMap for position ships in your correctly ubication over the chart. Somebody know the way for do this?

I open de .kap fil in GdalRasterLayer without problem.-

This is the content of .map file:

-----------------------------------------------------------------

OziExplorer Map Data File Version 2.2
Rio de la Plata Superior
C:\Bsb chart\H118_1.kap
1 ,Map Code,
WGS 84,,   0.0000,   0.0000,WGS 84
Reserved 1
Reserved 2
Magnetic Variation,,,E
Map Projection,Mercator,PolyCal,No,AutoCalOnly,Yes,BSBUseWPX,Yes
Point01,xy,    0,14744,in, deg,  34,55.96667,S,  58,38.66667,W, grid,   ,           ,           ,
Point02,xy, 1428,14744,in, deg,  34,55.96667,S,  58,   30.75,W, grid,   ,           ,           ,
Point03,xy, 2857,14744,in, deg,  34,55.96667,S,  58,   22.85,W, grid,   ,           ,           ,
Point04,xy, 4285,14744,in, deg,  34,55.96667,S,  58,   14.95,W, grid,   ,           ,           ,
Point05,xy, 5714,14744,in, deg,  34,55.96667,S,  58,    7.05,W, grid,   ,           ,           ,
Point06,xy, 7142,14744,in, deg,  34,55.96667,S,  57,   59.15,W, grid,   ,           ,           ,
Point07,xy, 8571,14744,in, deg,  34,55.96667,S,  57,   51.25,W, grid,   ,           ,           ,
Point08,xy,10000,14744,in, deg,  34,55.96667,S,  57,43.33333,W, grid,   ,           ,           ,
Point09,xy,    0,12637,in, deg,  34,   46.35,S,  58,38.66667,W, grid,   ,           ,           ,
Point10,xy, 1428,12637,in, deg,  34,   46.35,S,  58,   30.75,W, grid,   ,           ,           ,
Point11,xy, 2857,12637,in, deg,  34,   46.35,S,  58,   22.85,W, grid,   ,           ,           ,
Point12,xy, 4285,12637,in, deg,  34,   46.35,S,  58,   14.95,W, grid,   ,           ,           ,
Point13,xy, 5714,12637,in, deg,  34,   46.35,S,  58,    7.05,W, grid,   ,           ,           ,
Point14,xy, 7142,12637,in, deg,  34,   46.35,S,  57,   59.15,W, grid,   ,           ,           ,
Point15,xy, 8571,12637,in, deg,  34,   46.35,S,  57,   51.25,W, grid,   ,           ,           ,
Point16,xy,10000,12637,in, deg,  34,   46.35,S,  57,43.33333,W, grid,   ,           ,           ,
Point17,xy,    0,10531,in, deg,  34,36.73333,S,  58,38.66667,W, grid,   ,           ,           ,
Point18,xy, 1428,10531,in, deg,  34,36.73333,S,  58,   30.75,W, grid,   ,           ,           ,
Point19,xy, 2857,10531,in, deg,  34,36.73333,S,  58,   22.85,W, grid,   ,           ,           ,
Point20,xy, 4285,10531,in, deg,  34,36.73333,S,  58,   14.95,W, grid,   ,           ,           ,
Point21,xy, 5714,10531,in, deg,  34,36.73333,S,  58,    7.05,W, grid,   ,           ,           ,
Point22,xy, 7142,10531,in, deg,  34,36.73333,S,  57,   59.15,W, grid,   ,           ,           ,
Point23,xy, 8571,10531,in, deg,  34,36.73333,S,  57,   51.25,W, grid,   ,           ,           ,
Point24,xy,10000,10531,in, deg,  34,36.73333,S,  57,43.33333,W, grid,   ,           ,           ,
Point25,xy,    0, 8425,in, deg,  34,27.08333,S,  58,38.66667,W, grid,   ,           ,           ,
Point26,xy, 1428, 8425,in, deg,  34,27.08333,S,  58,   30.75,W, grid,   ,           ,           ,
Point27,xy, 2857, 8425,in, deg,  34,27.08333,S,  58,   22.85,W, grid,   ,           ,           ,
Point28,xy, 4285, 8425,in, deg,  34,27.08333,S,  58,   14.95,W, grid,   ,           ,           ,
Point29,xy, 5714, 8425,in, deg,  34,27.08333,S,  58,    7.05,W, grid,   ,           ,           ,
Point30,xy, 7142, 8425,in, deg,  34,27.08333,S,  57,   59.15,W, grid,   ,           ,           ,
Projection Setup,,,,,,,,,,
Map Feature = MF ; Map Comment = MC     These follow if they exist
Track File = TF      These follow if they exist
Moving Map Parameters = MM?    These follow if they exist
MM0,Yes
MMPNUM,6
MMPXY,1,456,14105
MMPXY,2,456,772
MMPXY,3,9531,772
MMPXY,4,9531,14104
MMPXY,5,9085,14104
MMPXY,6,456,14105
MMPLL,1, -58.602256, -34.884203
MMPLL,2, -58.602245, -33.864700
MMPLL,3, -57.765530, -33.864708
MMPLL,4, -57.765541, -34.884135
MMPLL,5, -57.806662, -34.884135
MMPLL,6, -58.602256, -34.884203
MM1B,8.477937
LL Grid Setup
LLGRID,No,No Grid,Yes,255,16711680,0,No Labels,0,16777215,7,1,Yes,x
Other Grid Setup
GRGRID,No,No Grid,Yes,255,16711680,No Labels,0,16777215,8,1,Yes,No,No,x
MOP,Map Open Position,0,0
IWH,Map Image Width/Height,2500,1395

 

-----------------------------------------------------------------

 

Thanks.-

Best Regards.-