Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question
add comment

4 Answers

up vote 4 down vote accepted

You should look also for MapProxy [1].

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

share|improve this answer
add comment

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)

share|improve this answer
    
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 '11 at 21:31
    
What version geoserver would you be running? –  Mapperz Feb 23 '11 at 22:13
    
2.1 for Cascading WMS –  iant Feb 24 '11 at 1:16
add comment

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

share|improve this answer
    
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 '11 at 19:07
    
I've gotten MapServer setup, woohoo! Now I just need to setup TileCache. –  joshdoe Feb 23 '11 at 21:30
add comment

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.

share|improve this answer
    
Oops, just noticed imincik recommended MapProxy. Thanks! –  joshdoe Feb 24 '11 at 19:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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