Page 106 of 117 FirstFirst ... 65696102103104105106107108109110116 ... LastLast
Results 1,051 to 1,060 of 1164

Thread: Windows maps download tool for MapThis! by in7ane

                  
   
  1. #1051

    Default Keep getting same error message

    Whenever I try to process the map for iPhone it states this error message everytime:

    Code:
    ************** Exception Text **************
    System.BadImageFormatException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.48.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    File name: 'System.Data.SQLite, Version=1.0.48.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'
       at GMDL.iPhoneF.Process_Click(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    ----------------------------------------
    Global Map Download Tool
        Assembly Version: 1.0.0.13357
        Win32 Version: 1.0.0.13357
        CodeBase: file:///C:/Program%20Files%20(x86)/gmdl0.5.07a/GMDL/bin/Debug/Global%20Map%20Download%20Tool.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Data
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
        CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    Accessibility
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    ----------------------------------------
    System.Configuration
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    
    For example:
    
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

    What should I do now?

    Thanks in advance,
    Distermaer

  2. #1052
    DCEmu Newbie
    Join Date
    Aug 2008
    Posts
    2
    Rep Power
    0

    Default

    :thumbup:hello there :thumbup:
    Can someone post a good link for map this (new version) since i cant download it from eny link all likns look r broke
    and some kind og guide

    Im getting Holux M 1000 on the nex few days and i will like to be ready when it gets

    Tx for all u help

  3. #1053

    Default MapThis! Maps ;0(

    Hi All,

    Relatively new to the land of PSP although have some knowledge of PC's etc..

    I've got a Holux GPSlim236, I've ordered a cable, I've downloaded MapThis! and I have TomTom 6 on my PDA. I've searched the net to see if it is possible to use TomTom maps with the PSP/ MapThis!, but I think that might just be an urban myth, so I've looked into (or trying to) using MapThis!, but so far I've had no success in getting the maps sorted (think it's beyond my capabilities).. I guess what I'm asking here is.. are there any maps already generated that I can download from somewhwre/ someone?

    Any help or advice would be really appreciated ;0)

  4. #1054

    Default Google has changed their urls

    With the current version of GMDL its not possible to download maps of google maps. You only get a message: "Something not quite right with this page..."

    I took a look in the source and found the problem. A FormatException is thrown in the Int32.Parse method. Google changed the format of their Urls.

    Old:
    http://mt1.google.com/mt?n=404&v=w2....m=12&s=Galileo

    New:
    http://mt2.google.com/mt?v=nq.83&hl=de&x=2&y=4&z=4&s=Ga

    zoom= changed to z= and the n= parameter is missing.

    In addition the source is horrible. Labels are used for string storage, names of UI elements and variables are often nonsense. But ok: It works. so far.

    But there is a bug in the URL parse function of the Google Maps part. You are trying to get the URL Parameter values through an index-of algorithm. You search for an & after the x=, y=, zoom= strings. But its possible that there is no & after this parameters because of the ending url with an ".

    There is a link in this format at the beginning:
    http://maps.google.com/?ie=UTF8&amp;ll=3...160156&amp;z=4

    I've written a new parser using regular expressions:
    GMdl.cs -> GetNumbers() (Line: 402)
    Code:
    else // google
    {
        // Get all Links
        StringCollection resultList = new StringCollection();
        try
        {
            Regex regexObj = new Regex(@"((?#protocol)https?|ftp)://((?#domain)[-A-Z0-9.]+)((?#file)/[-A-Z0-9+&@#/%=~_|!:,.;]*)?((?#parameters)\?[-A-Z0-9+&@#/%=~_|!:,.;]*)?", RegexOptions.IgnoreCase);
            Match matchResult = regexObj.Match(page);
            while (matchResult.Success)
            {
                resultList.Add(matchResult.Value);
                matchResult = matchResult.NextMatch();
            }
        }
        catch (ArgumentException)
        {
            // Syntax error in the regular expression
        }
    
        // Iterate all images and search for minimum zoom
        foreach (var s in resultList)
        {
            try
            {
                // Search for Minimum Zoom 
                string z = Regex.Match(s, "z=([0-9]+)", RegexOptions.IgnoreCase).Groups[1].Value;
                int iz = Int32.Parse(z);
                min_zoom = Math.Min(iz, min_zoom);
            }
            catch (ArgumentException)
            {
                // Syntax error in the regular expression
            }
        }
    
        // Iterate all Images and search for min and max x and y for minimum zoom
        foreach (var s in resultList)
        {
            try
            {
                // Get Zoom 
                string z = Regex.Match(s, "z=([0-9]+)", RegexOptions.IgnoreCase).Groups[1].Value;
                int iz = Int32.Parse(z);
                // Is Minimum Zoom?
                if(min_zoom == iz)
                {
                    // Get x and y
                    string x = Regex.Match(s, "x=([0-9]+)", RegexOptions.IgnoreCase).Groups[1].Value;
                    int ix = Int32.Parse(x);
                    string y = Regex.Match(s, "y=([0-9]+)", RegexOptions.IgnoreCase).Groups[1].Value;
                    int iy = Int32.Parse(y);
    
                    min_x = Math.Min(ix, min_x);
                    max_x = Math.Max(ix, max_x);
    
                    min_y = Math.Min(iy, min_y);
                    max_y = Math.Max(iy, max_y);
                }
            }
            catch(ArgumentException)
            {
                // Syntax error in the regular expression
            }
        }
    
        if (MapType() == "iFMnpe")
        {
            int cen_x = min_x + 1;
            int cen_y = min_y + 1;
    
            cen_x++;
            cen_y++;
    
            decimal[] Bcoord = LLXY.getLatLong(cen_x, cen_y, min_zoom); // center of map if compliant2x2
            decimal minlat = Bcoord[1];
            decimal maxlon = Bcoord[0];
    
            mu.latC = System.Convert.ToDouble(minlat);
            mu.lonC = System.Convert.ToDouble(maxlon);
        }
    }
    Of course you need to change the method which creates the Map-URL for receiving the images.
    mapUrl.cs -> GoogleMap() (Line:384)
    Code:
            public string GoogleMap(int zoom, int x, int y)
            {
                string s =  "http://mt" + RandomGoogle() + ".google.com/mt?v=" + iMversion + "&x=" + x.ToString() + "&y=" + y.ToString() + "&z=" + zoom.ToString() + "&s=" + RandomGoogle2();
                Debug.WriteLine(s);
                return s;
            }
    But this does not solve the problem. Because their is a bug in the calculation of the x and y coordinates in addition with the zoom factor.

    I would love to fix this problems and optimize the code. But I need the knowledge of the google maps backend (How the x and the y values are calculated) and how files are written, gps data is calculated,...

    It would be great if you can fix this bug.
    You should open a google code project where you offer this project. there is no official website where you get information about this project. You can contact me if you want help for this project.

    Greets Daniel

  5. #1055
    DCEmu Newbie
    Join Date
    Sep 2008
    Posts
    4
    Rep Power
    0

    Default

    in7ane, somebody, - Please fix the google map problem. I desperately need a map by next weekend! I'm going to Baja and gettin lost in Tijuna is no fun. I will donate money!
    BTW - you're application is awesome (until Google maps screwed us over)

    Sorry for posting this all over the place, just hoping the message gets out.

  6. #1056
    DCEmu Regular
    Join Date
    Aug 2006
    Posts
    299
    Rep Power
    66

    Default

    Updated GMDL 0.5.07b, the problems were due to the fact that Google changed the way they number the zooms, so a few things messed up. If there are any remaining problems please let me know (for future problems - posting int his thread is the best way to report them).

    http://www.in7ane.com/psp/gmdl.html

    Changes:

    - gps.txt (GPS path recorded by Map This!) can now be read in (Direction tab) and saved as a POI file for use with Map This! or as a KML file for Google Earth

    - Fix for a change in the zoom numbering used by Google


    driven905, there are no Windows Mobile readers for GPSFS that I'm aware of, I would suspect that there is something out there that can view the tiles (although probably wrapped up in a different container than GPSFS).


    Airwave, try this and let me know which part does not work (it works here, so it's probably a page localization thing)

    put in: Bischofswerda 01877 to Ostritz 02899
    and click search maps - you should get the direction on the webpage

    click Get Values
    you should get
    From: Bischofswerda 01877
    To: Ostritz 02899

    if you do not, let me know what localization you have Windows set to, type those in manually

    click List, and see if it works


    distermaer, this seems to be a problem with SQLite, judging by C:/Program%20Files%20(x86) - are you running on a non typical setup (not x86? 64 bit?)


    Danielku15, the GMDL code is indeed horrible (although fixed for now - Google changed the zoom index so now it is z=17-zoom). Thanks for the regular expressions parser, I will incorporate it into the next version. As for hosting the project somewhere - google code is probably not the best choice since it is quite likely that they will pull it at some point (they used to be very hostile towards anything even describing how tiles can be downloaded) - any other suggestions, or a backup strategy if it does get pulled from google code?
    Last edited by in7ane; September 6th, 2008 at 21:16.

  7. #1057
    DCEmu Newbie
    Join Date
    Sep 2008
    Posts
    4
    Rep Power
    0

    Default

    It's fixed! Dude, you rock! Thanks!

  8. #1058

    Default

    There are a lot of opensource repositories:
    Sourceforge.net (currently unstable), Assembla.com

    These all provide a subversion respository, issue tracker, Forums, ...

  9. #1059
    DCEmu Newbie
    Join Date
    Sep 2008
    Posts
    4
    Rep Power
    0

    Default

    Hi guys....

    I trying to get the brazil geodata using the GMDL but I got a lot of bad querys...

    Can anyone help me?

  10. #1060
    DCEmu Newbie
    Join Date
    Sep 2008
    Posts
    1
    Rep Power
    0

    Default

    Is the WMS functionality supposed to work? I'm trying to get it to work with a wms server serving marine maps.
    I have tried browsing the same location using the google maps and then entering preview window with not success.
    It successfully retrieves the layers - but what should I do next?

Thread Information

Users Browsing this Thread

There are currently 4 users browsing this thread. (0 members and 4 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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