CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2003
    Posts
    24

    display map on Pocket PC

    I have a city map file which is size of 1.7 M ...I wanna display the map on PocketPC whose main memory is 32M...i try to use memory-mapped file but it is slow to load the whole map.
    who guy has a better method to handle this problem?
    thx in advance!

  2. #2
    Join Date
    Nov 2003
    Posts
    24
    noone know about the problem?

  3. #3
    Join Date
    Nov 2002
    Location
    .NET 3.5 VS2008
    Posts
    1,039
    Do you want to keep the map on the pocket pc permantly? Or do you just need to display it for a moment? Is the map supposed to be edited on the device? Where is the map coming from?

  4. #4
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815
    It also depends on the format of the map - is it a bitmap, or vector graphics? In any case, you'll probably need to organize the map data as a database, so you'll be able to load individual tiles or detail levels as they are needed.

  5. #5
    Join Date
    Nov 2003
    Posts
    24
    Originally posted by gstercken
    It also depends on the format of the map - is it a bitmap, or vector graphics? In any case, you'll probably need to organize the map data as a database, so you'll be able to load individual tiles or detail levels as they are needed.
    Thx for your reply.
    The map is vector graphics which include roads ,rivers,administration regions etc. The map is divided with longitude and latitude grids.The file of the map is organized by the different geographic data.The program loaded the memory-mapped file of the map file,but it is too slowly in pocket PC.Does the better mothed of loading the map file exit?
    thx in advance
    Last edited by ephemera; February 18th, 2004 at 05:27 AM.

  6. #6
    Join Date
    Nov 2003
    Posts
    24
    Originally posted by nelo
    Do you want to keep the map on the pocket pc permantly? Or do you just need to display it for a moment? Is the map supposed to be edited on the device? Where is the map coming from?
    thx for your reply
    The map is just for navigation so it is only used when required.The map is not used for edit. The map is not general format such as MapInfo or ArcoInfo format.It is defined individually.
    Do you know better method than loaded map using memory-mapped file?
    thanks in advance
    Last edited by ephemera; February 18th, 2004 at 05:32 AM.

  7. #7
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815
    Originally posted by ephemera
    Does the better mothed of loading the map file exit?
    Well, as already said: Store your map data in a database, in a way that allows you to selectively load the required information, not the entire file. A good starting point for indexing the records would possibly be the long/lat grid.

  8. #8
    Join Date
    Nov 2003
    Posts
    24
    Originally posted by gstercken
    Store your map data in a database, in a way that allows you to selectively load the required information, not the entire file. A good starting point for indexing the records would possibly be the long/lat grid.
    Thank your reply
    How would I organize the map file in a database?
    which database would I choose?
    I recently learned something about spatial index such as KD-Tree,R-Tree R+-Tree... Should I divide the entire map file according to the property of the geographic objects into different files?Should I organize the map files by using my own format?
    database or map files organized by spatial index by my own format,which is better?

    I consider two reasons resulting in loading map slowly.One reason is the way that the map is organized and another is the method that the map is loaded in the memory.

    The method that I used memory-mapped file to loading the map files has most efficient performance,does it?
    thank in advance
    Last edited by ephemera; February 19th, 2004 at 07:18 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured