Tag Info

Hot answers tagged

3

There was a mention of a TileCache patch for this on the OSGeo mailing lists: http://www.osgeo.org/pipermail//tilecache/2009-June/001863.html Unfortunately the links to the patches no longer work. Apparently the patch involved a few changes to the code base, and would allow different caches to be used based on any URL argument. I have an old script (in ...


3

EPSG 900913 is a spherical mercator projection which uses meters as its units. EPSG 4326 uses a different datum and has its units are in degrees. They are not interchangable and the difference in units will set your BBOX way off. If you can't find EPSG900913 try looking for EPSG3857 (which is the more up to date EPSG code for 900913).


3

By default MapProxy uses a TileCache compatible directory layout (zz/xxx/xxx/xxx/yyy/yyy/yyy.format), but you can use directory_layout for switch to TMS compatible directories (zz/xxxx/yyyy.format). I've wrote little python script for stitching tiles from TileCache compatible directories into one big image. PIL library should be installed: import os import ...


2

Technically it is very simple to use Google tiles as source for WMS. You can do this with the following MapProxy config: services: demo: tms: wms: md: title: MapProxy WMS Server sources: gm: type: tile url: http://mt0.google.com/vt/lyrs=m@0&hl=en&x=%(x)s&y=%(y)s&z=%(z)s grid: gm_grid grids: gm_grid: ...


2

MapProxy supports WMS sources (1.0.0–1.3.0)& TMS/WMTS sources. Google does not have an WMS service. It has its own tiles, and according to Google's Terms & Conditions, you are allowed to access the tiles only through their API. This is why you cannot use MapProxy with Google Maps as a source.


2

If you are using apache as the web server, you can use a proxy file called proxy.cgi to get round the problem of cross-origin javascript security. The following is taken from OpenLayers FAQs about the ProxyHost setting Why do I need a ProxyHost? Due to security restrictions in Javascript, it is not possible to retrieve information from remote ...


2

Usually it is in root folder of your webserver environment. This example is working setup for xampp-php-postgresql+geoserver (my personal choice). To bypass flashplayer security restrictions such as to enable access for bitmap manipulation i put this crossdomain policy file <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM ...


2

You need to reference the arcgis_online grid in your source configuration. http://mapproxy.org/docs/nightly/sources.html#grid See also: http://lists.osgeo.org/pipermail/mapproxy/2012-July/001123.html


2

Solved. With this configuration in the MapProxy yaml file: services: wms: srs: ['EPSG:3785', 'EPSG:4326', 'EPSG:23028'] image_formats: ['image/jpg', 'image/png'] layers: name: mylayer title: My layer sources: [my_cache] caches: my_cache: grids: [GLOBAL_MERCATOR] sources: [my_wms_source] format: image/png request_format: ...


1

I finally solved it by generating the zoom levels from 0 in gdal2tiles and using GLOBAL_MERCATOR grid.


1

The BBOX (-506.77734375,-266.8359375,370.01953125,190.1953125) is in EPSG:4326. You are just a bit too far zoomed out and the OpenLayers demo client will request that BBOX without any clipping. MapProxy doesn't know the extent of the cascaded service with your first configuration and forwards the requested BBOX to Mapserver. The second configuration (from ...


1

Yes, GWC will continue to serve cached tiles even if the WMS it's proxying is not available. It will fail rather than proceeding with the old data if the cached tile has expired though.


1

Accordingly MapProxy documentation sources parameter of caches section is mandatory, but as I can see you use empty list. You should point source of your cache. If you are planning to use your source only during the seeding process - option seed_only may be helpful.


1

It appears that this was a bug in v1.3.0 of MapProxy, and has been fixed. From the changelog for the pre-release version v1.4.0rc1: - EPSG:4326/900913/3857 are now always initialized with the +over proj4 option to prevent distortions at the dateline see: http://fwarmerdam.blogspot.de/2010/02/world-mapping.html I updated to the new version and the ...



Only top voted, non community-wiki answers of a minimum length are eligible