Resultados 1 al 3 de 3

Tema: bing maps from compegps

  1. #1
    Fecha de ingreso
    02 Jul, 10
    Mensajes
    20

    Question bing maps from compegps

    Can we access to maps bing, from compegps?
    Installing Compegps Land, i can see file .cwms for different types of maps (eg. google), but not to those of bing aerial.
    Is there a file similar to Bing maps?

    Thanks.

  2. #2
    Fecha de ingreso
    28 Apr, 10
    Ubicación
    D
    Mensajes
    1,250

    Predeterminado

    No,
    out of the box it isn't possible.

    But in case you can read german, you can find the description how to use them in CompeGPsLand.


    A possible solution specifically for bing aerial maps
    http://www.naviboard.de/vb/showthread.php?t=54675
    Post #19 + 20


    A more generall solution to use tileserver from different sources
    http://www.naviboard.de/vb/showthrea...t=54675&page=2
    Post #29 to 31
    ----------------------
    Gruss
    regards
    saludos
    cordialement

    Gert

    www.Twonav-gps.de - - - www.garda-gps.de for Twonav

  3. #3
    Fecha de ingreso
    28 Apr, 10
    Ubicación
    D
    Mensajes
    1,250

    Predeterminado

    ok, i tried an english translation of the linked thread above:

    Cita Iniciado por oanavodo
    Microsoft Bing Aerial maps with CompeGPS Land (Part 1, Preperations)


    You need a local lokalen HTTP-Proxy, der die die Url der HTTP-Requests von CGPSL in Abfragen des VirtualEarth-Tileserver umwandelt. Ich muss dazu noch sagen, dass bei Aktivierung des Proxies sämtliche HTTP-Anfragen auf dem System über den Proxy laufen, also auch die des Browsers und anderer Applikationen. Eine Alternative wäre, dass sich der Proxy nicht als Systemproxy einhängt und dann nur CGPSL darüber seine Requests abschickt. Aber CGPSL bietet in seiner Konfiguration keine Möglichkeit einen Proxy anzugeben, so dass ich nicht weiss, wie ich das Programm dazu bewegen soll über den lokalen Proxy zu gehen.





    1. In case Microsoft .NET Frameworks 4.0 isn't already installed on your System, download it from http://www.microsoft.com/de-de/downl...aspx?id=177183 and install it. After that use Windowsupdate , to install existing Updates for .NET Framework.
    2. Download of the Fiddler Web Debugging Proxy from http://fiddler2.com and install Fiddler.
    3. Start Fiddler and pressSTRG-R. A sepaerate Editorwindow, will be opend, containing the Script.
    4. Search the line 'static function OnBeforeRequest(oSession: Session) {' in the Script and insert before that the following lines:
      Código:
          // converts x,y,z addressing to quadkey
          static private function quadKey(xs: String, ys: String, zs: String): String {
              var x: int = int.Parse(xs);
              var y: int = int.Parse(ys);
              var z: int = int.Parse(zs);
              var key: String = "";
              for (var i: int = z; i > 0; i--) {
                  var digit: char = '0';
                  var mask: int = 1 << (i - 1);
                  if ((x & mask) != 0) digit++;
                  if ((y & mask) != 0) digit += 2;
                  key = key + digit.ToString();
              }
              return key;
          }
    5. behind the found line insert the following lines:
      Código:
              // converts a compegps request coming with osm addressing to google tile addressing 
              if (oSession.hostname.EndsWith("tiles.virtualearth.net") && oSession.PathAndQuery.StartsWith("/compegps")) {
                  var url2 : String = oSession.PathAndQuery.Split('.')[0];
                  var nums2 : String[] = url2.Substring(1).Split('/');
                  var newurl2 : String = String.Format("/tiles/a{0}?g=1252&n=z", quadKey(nums2[2], nums2[3], nums2[1]));
                  oSession.PathAndQuery = newurl2;
              }
    6. Save the Script and exit the Editor. An acoustic success message would be heard.
    7. Check under the Menu File , if 'Capture Traffic' is aktivated an exit Fiddler Proxy.
    8. Create a CGPSL OnlineMap-file with the following content and save it into to the directory you wish. The filename prefix free while suffix has to be .cosm (e.g. WorldbingMaps_ortho.cosm):
      Código:
      VERSION=1.0
      WEB=http://ak.t1.tiles.virtualearth.net/compegps/
      CACHEDX=256
      CACHEDY=256
      FORMAT=JPG
      PIXWIDTH=67108864
      PIXHEIGHT=67108864
      MAXZOOMLEVEL=18
      [IMP]
      CompeGPS MAP File
      <Header>
      Version=2
      VerCompeGPS=6.01.b
      Projection=2,Mercator,
      Coordinates=1
      Datum=WGS 84
      </Header>
      <Map>
      Bitmap=FILE_NAME
      BitsPerPixel=8
      BitmapWidth=67108864
      BitmapHeight=67108864
      Remote=1
      </Map>
      <Calibration>
      P0=0.00000000,0.00000000,A,-180.00000000,85.05112851
      P1=67108864.00000000,0.00000000,A,180.00000000,85.05112851
      P2=0.00000000,67108864.00000000,A,-180.00000000,-85.05112851
      </Calibration>


    Servus
    --
    Reiner
    Cita Iniciado por oanavodo
    Microsoft Bing Aerial maps with CompeGPS Land (Part 2, Usage)



    1. Start CGPSL
    2. Start Fiddler Proxy
    3. in TAB Filters activate 'Use Filters' and 'Show only traffic from' and from pulldown combobox right side of 'Client process' choose the Process CompeGPSLand.
    4. Press STRG-M. Fiddler will e reduced to the Taskbar. The window can be activated again from the system tray if necessary.
    5. In CGPSL open the in Part1 created OnlineMap. Now the die Bing-Aerial maps should be shown in the mapwindow.


    If you exit CGPSL, you should exit Fiddler Proxy too. In case you shutdown Windows without exiting the Proxy, noch HTTP is possible after system restart, because Fiddler ist still set as Systemproxy , although he is not running. In this case, start the Proxy and exit it than. Than It removes itself from system setting automatically.


    The Fiddler Proxy must be run only, as long you will use this onlinemap in CGPSL. 'Capture Traffic' has to be activated in Fiddler, otherwise the HTTP-Requests can't be transformed.


    Surely it can happen, that the URL for the Bing-Tiles will be changed. Accordingly the Fiddlerscript has to adapted in this case.


    Servus
    --
    Reiner
    Última edición por papaluna; 02/11/2015 a las 12:11
    ----------------------
    Gruss
    regards
    saludos
    cordialement

    Gert

    www.Twonav-gps.de - - - www.garda-gps.de for Twonav

Permisos de publicación

  • No puedes crear nuevos temas
  • No puedes responder temas
  • No puedes subir archivos adjuntos
  • No puedes editar tus mensajes
  •  


About us

    CompeGPS Team SL All rights reserved © 2012

Follow us on

Twitter Facebook youtube Google Plus Flickr