| Re: Chart koordinates -
06-04-2007, 09:45 AM
"Newbie" <EMAIL REMOVED> wrote in message
news:411da97c$0$200$EMAIL REMOVED. ..
> Hi
> I have made a navigation program. The navigation screen is setup in a
> picturebox which is based on the vessel position.
>
> NOW, I would like to be able to load bitmaps (e.g. a scanned sea chart)
into
> the above mentioned picture box as background charts.
>
> I imagine setting up a coordinate system in every bitmap by adding
> coordinates to two or more known points in the bitmap.
> Is there any suggestions on how to store these coordinates and how to
> handle this in the navigation screen ??
>
>
I would divide the map into squares that will be saved as jpg or bmp. Each
square would cover a certain coordinate grid. Depending on how detailed you
need to be, the pictures could be divided into degrees and seconds of the
latitude and longitude.
For example you can have each degree containing 60 pictures (for the
minutes). So for let's say coordinates N40 W74 you would have 60 x 60 files
(3600 files) for each minute of longitutude and latitude. For example
N04001W7401 (W7402-60), then N4002-60.
In your code, as you navigate around you will have a map loading logic that
will take your cirrent coordinate and translate it to a mapname. If the map
is not in memory, it will load it. |