[MapProxy] California in Africa

Sebastian E. Ovide sebastian.ovide at gmail.com
Wed Sep 1 12:55:18 EDT 2010


>
>
> And for:
>
> http://10.0.1.40/cgi-bin/mapserv?layers=ca_wild_fire&map=%2Fhome%2Fsebas%2Fpublic_html%2Fworkshop-5.4%2Fsebas.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A3310&BBOX=40058.8707138,150368.549521,100888.64586,211049.969626&WIDTH=256&HEIGHT=256
>
>
>
an empty image.


> > If I go to CA and zoom more than 8 I can see CA in CA... but HUGE... if I
> zoom out I can see CA in Africa with the correct (it looks like correct)
> size.
>
> That should be an OpenLayers configuration issue. I can look into that if
> you send me your _whole_ OL client (with map definition, not only the
> layers) and a working WMS URL with PESG:3310 support.
>
>

here the part missing:

        var map;

        function init() {
            map = new OpenLayers.Map({
              div: 'map',
              allOverlays: true,
              maxExtent: new
OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
              numZoomLevels: 20
            });

            map.addControl(new OpenLayers.Control.LayerSwitcher());

            var gmap = new OpenLayers.Layer.Google(
                "Google Streets",
                {
                    sphericalMercator: true
                }
            );

            map.addLayers([gmap, ca_wild_fire_tc, ca_wild_fire_ms,
CA_AbandonedMine_ms, US_Earthquake_ms, CA_CoastalWaters_ms,
US_FaultRegions_ms, CA_Landslide_Events_ms, US_KarstDistinctiveFeatures_ms,
US_LOMR_ms]);
            map.setCenter(new OpenLayers.LonLat(-11000000, 4500000),5);


Is it possible to create a simple MapProxy configuration for which it
doesn't change anything from the tiles that it reads from MapServer ? some
kind of "transparent cache proxy"... ie: use the same URL that I would use
for MapServer... but instead of trigger MapServer I would trigger MapProxy
whom reads from MapServer, caches it, and serves it as it is, with the same
coordinate system, same colors  etc...



-- 
Sebastian E. Ovide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20100901/6a32d0b6/attachment.html


More information about the MapProxy mailing list