[Qgis-user] local TMS in qgis

Pirmin Kalberer pi_ml at sourcepole.com
Thu May 26 00:01:08 PDT 2011


Am Donnerstag, 26. Mai 2011, um 05.24:10 schrieb maning sambale:
> Thanks!  Here are some details of my local TMS
> The OL code for the TMS:
> 
> layerTMS         = new OpenLayers.Layer.TMS("UN Rivers",
>                      [ "/Users/maning/Desktop/un_river_webmap/" ],
>                      { 'layername': 'un_rivers', 'type': 'png' }
>                  );
> 
> 
> 
> And here's the json file included in the
> /Users/maning/Desktop/un_river_webmap/1.0.0/un_rivers/
> 
> {"name": "un_rivers_label", "bounds":
> "116.63212537765496,4.0636545687393815,127.42069959640494,19.14717499938801
> 7", "version": "1.0.0", "formatter": null, "type": "overlay",
> "description": ""}
> 
> A generic solution that can ingest other local TMS would be good for
> everyone.

The hardcoded version would take half an hour to include. It would be great, 
if somone could invest two to four hours for a configurable TMS layer.

Pirmin

> 
> On Thu, May 26, 2011 at 3:47 AM, Pirmin Kalberer <pi_ml at sourcepole.com> 
wrote:
> > Hi Maning,
> > 
> > Am Mittwoch, 25. Mai 2011, 10.43:27 schrieb maning sambale:
> >> How to load a local TMS in QGIS?  I created a TMS for an openlayers
> >> basemap and overlay.  I want to use the same tiles in QGIS.  The
> >> metadat is in json format.
> > 
> > I would be happy to include a patch for TMS layers to the OpenLayers
> > plugin. It would need a few lines of Python and your Openlayers code.
> > See also http://hub.qgis.org/projects/openlayers/wiki
> > 
> > Pirmin
> > 
> > 
> > --
> > Pirmin Kalberer
> > Sourcepole  -  Linux & Open Source Solutions
> > http://www.sourcepole.com


-- 
Pirmin Kalberer
Sourcepole  -  Linux & Open Source Solutions
http://www.sourcepole.com



More information about the Qgis-user mailing list