5

I'd like to create a tile cache and offer the tiles via TMS/WMS. The source is a WMS server that is protected by basic http authentication, but no SSL. I'll also need to reproject the tiles. This is for my own personal use. I'd prefer something that can run on either Windows or Linux, and open source is a huge plus. From some searching it appears MapServer can access WMS servers requiring authentication, but doesn't cache. GeoServer can cache WMS, but can't use authentication. Lastly, TileCache can't reproject. What are my options?

4 Answers 4

6

You should look also for MapProxy [1].

[1] - http://mapproxy.org/

5

Use the geoserver proxy extension:

http://geoserver.org/display/GEOS/GeoServer+Proxy+Extension

The proxy is configurable to restrict requests to specific hosts and MIMEtypes. (specific host can be https - apache can do this http://httpd.apache.org/docs/2.0/ssl/ssl_intro.html)

3
  • It doesn't seem that that version of the extension works with the version of GeoServer that supports using WMS as a store, but perhaps I'm mistaken.
    – joshdoe
    Feb 23, 2011 at 21:31
  • What version geoserver would you be running?
    – Mapperz
    Feb 23, 2011 at 22:13
  • 2.1 for Cascading WMS
    – Ian Turton
    Feb 24, 2011 at 1:16
4

You can use MapServer as a WMS client, reproject the data, and then use TileCache to create your cached tiles.

2
  • I'm working on installing MapServer now on an Amazon EC2 micro instance (free!) following the instructions here. I'm still not clear on how to configure it, but hopefully I can figure it out without too much difficulty.
    – joshdoe
    Feb 23, 2011 at 19:07
  • I've gotten MapServer setup, woohoo! Now I just need to setup TileCache.
    – joshdoe
    Feb 23, 2011 at 21:30
1

I tried the suggestions of other users, but I wasn't quite able to get them working, though I got closest with geographika's suggestion of using MapServer+TileCache. Part of the trouble was that the source used the SRS EPSG:102100, an equivalent code to EPSG:3857/900913/etc, but that wasn't supported by the suggested options. I tried adding the code to the proj.4 files, but couldn't quite get it all working right.

I got closest with MapProxy, thanks to the developer adding the SRS code for me to the source. However I had some troubles with connection and projection issues.

In the end I just wrote a short Python script to generate the tiles, thanks in part to a helper script from MapTiler. My script simply takes min and max lat/lon pairs along with a WMS URL and creates OSM compatible tiles, ready for use in JOSM and PotLatch2, the editors I'm mostly interested in. I'll try and add it to the OSM wiki at some point.

1
  • Oops, just noticed imincik recommended MapProxy. Thanks!
    – joshdoe
    Feb 24, 2011 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.