How to draw a map from images?

I want to write a navigator application that draws maps from images. Maps need to be drawn dynamically based on user navigation. My idea is to load 9 images into memory, and then create a view to display the necessary map:

alt text http://img526.imageshack.us/img526/2574/screento.png

When the user moves, the view moves. If necessary, images that are no longer visible will be destroyed, and new ones will be uploaded.

My first problem is that I cannot get it to work. My second problem is that it seems too complex and resource intensive. It is also difficult to scale if the screen size changes.

Could you show me an efficient map drawing algorithm? The demo code in C # will help a lot. An open source library would be much appreciated. :)

Thank.

+3
source share
3 answers

depending on what you want to do, can be a rather difficult problem. for example georeferences, projections, GCS, you do not want to roll back your own

there are a number of gis tools available that already do such things, for C # and open source there is SharpMap or maybe google maps / earth

there are various commercial libraries, for example, for example. ESRI or Luciad

+3
source

. jk, ,

- . , . ( , ), . , ( ) , .

, . , . , , . , , .

, , , , . , , . , ( TOC, TOC, , ). .

, , , . . , .

, , , .

+3

OSMTracker made in VB.NET uses OpenStreetMap tiles (images) as the map and dos that you want. source is available. if you do not like VB, then you can search OpenStreetMap on codeplex.com for similar projects made in C #

+1
source

Source: https://habr.com/ru/post/1748007/


All Articles