On Thursday, 26 May 2011, at 20:37:37 +0200,
Jose Luis Domingo Lopez wrote:

> So que question is, with current QlandkarteGT 1.1.2 and GDAL 1.8.0, is
> there a way to configure remote WMS/TMS as supported by GDAL? Is the
> current support for configuring tile servers implemented taking advantage
> of GDAL, or is it just an implementation for the program? I also don't get
> how to enable "Custom Maps", if there are no checkboxes next to them. Any
> example addition map server that alread works? Does the checkbox only shows
> when the program has successfully contacted the remote server, and detected
> is a correct tile server?
> 
Hate to reply to myself so soon, but I think I have managed to make it
work. First I had to compile the program with the WMS_CLIENT define (I put
it on the file config.h.cmake). I'm using GDAL binaries from:
https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable/?field.series_filter=natty

I then downloaded the Google Maps XML definition for GDAL, from:
http://www.gdal.org/frmt_wms_googlemaps_tms.xml

And had to adapt it to the (correct, or at least working) map tile service URL:
-        
<ServerUrl>http://mt.google.com/vt/lyrs=m&amp;x=${x}&amp;y=${y}&amp;z=${z}</ServerUrl>
 <!-- Map -->
+        
<ServerUrl>http://mt1.google.com/vt/lyrs=m@155000000&x=${x}&y=${y}&z=${z}&s=Gal</ServerUrl>
 <!-- Map -->

At that point, start QlandkarteGT, load some .gpx to locate the map somewhere, 
and then File -> Load Map, choose the WMS from the drop-down list, and
select the modified .xml file which describes the Google Maps service. And
everything should work that way. I haven't tested any other maps yet.

A couple of notes, first, zooming becomes painfully slow, and the mouse
wheel instead of cycling through zoom levels that are powers of two (when
using the built in OSM tile servers), it shows sequential consecutive zoom
levels (would be nice a drop-down zoom menu a-la-mapsource). Second, you
get some (or a lot) of error messages on the console:
        ERROR 2: Out of memory in InitBlockInfo().

Third, and after having a look at the source code, Gamin JNX format and
support for WMS are mutually exclusive (at least in the Load Map dialog,
don't know if there is a valid reason for that, althoug JNX files load OK
when selected even with WMS support active (see src/CMainWindow.cpp and
look for WMS_CLIENT).

Hope it helps.

-- 
Jose Luis Domingo Lopez
Linux Registered User #189436     Linux Kubuntu 11.04 (Linux 
2.6.38-8-generic-pae)

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to