<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Antoni,<div><br></div><div>i copied your mapproxy-config and try it out. </div><div>With your config the following link is showing my a map :-)</div><div><br></div><div><a href="http://localhost:8080/service?LAYERS=icc&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG:23031&BBOX=290000,4538500,302000,4543500&WIDTH=1200&HEIGHT=500">http://localhost:8080/service?LAYERS=icc&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG:23031&BBOX=290000,4538500,302000,4543500&WIDTH=1200&HEIGHT=500</a></div><div><br></div><div>Best regards,</div><div><br></div><div>Dominik</div><div><br></div><div><br><div><div>Am 07.05.2010 um 12:11 schrieb Vidal, Antoni:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div>
<!-- Converted from text/plain format --><p><font size="2">Hello again,<br>
<br>
I didn't get response. I changed services.yaml, here it is:<br>
<br>
service:<br>
# attribution:<br>
# text: "©Omniscale 2010 (<a href="http://omniscale.de/">http://omniscale.de</a>) – Map data: CC-BY-SA OpenStreetMap and Contributors"<br>
md:<br>
title: MapProxy WMS Proxy<br>
abstract: This is the fantastic MapProxy.<br>
online_resource: <a href="http://mapproxy.org/">http://mapproxy.org/</a><br>
contact:<br>
person: Your Name Here<br>
position: Technical Director<br>
organization:<br>
address: Fakestreet 123<br>
city: Somewhere<br>
postcode: 12345<br>
country: Germany<br>
phone: +49(0)000-000000-0<br>
fax: +49(0)000-000000-0<br>
email: <a href="mailto:info@omniscale.de">info@omniscale.de</a><br>
access_constraints:<br>
This service is intended for private and evaluation use only.<br>
The data is licensed as Creative Commons Attribution-Share Alike 2.0<br>
(<a href="http://creativecommons.org/licenses/by-sa/2.0/">http://creativecommons.org/licenses/by-sa/2.0/</a>)<br>
fees: 'None'<br>
<br>
layers:<br>
# ###########################################<br>
# # server with two data sources<br>
# # configured for use in regular WMS clients<br>
# ###########################################<br>
# merged:<br>
# md:<br>
# title: Merged server<br>
# param:<br>
# # cache tiles in format:<br>
# # format: image/png<br>
# <br>
# # cache projected and geographical SRS<br>
# srs: ['EPSG:4326', 'EPSG:900913']<br>
# <br>
# # store another level between each regular level<br>
# res: 'sqrt2'<br>
# <br>
# # request all data in this format:<br>
# request_format: image/tiff<br>
# <br>
# # use a tile size of:<br>
# tile_size: [512, 512]<br>
# <br>
# sources:<br>
# - type: cache_wms<br>
# req:<br>
# url: <a href="http://server1/mapserver/service">http://server1/mapserver/service</a>?<br>
# layers: base<br>
# - type: cache_wms<br>
# req:<br>
# url: <a href="http://server2/mapserver/service">http://server2/mapserver/service</a>?<br>
# layers: roads<br>
<br>
# # #########################<br>
# # # Layer from TMS Source<br>
# # #########################<br>
# osm:<br>
# md:<br>
# title: <a href="http://osm.omniscale.net">osm.omniscale.net</a> - Open Street Map<br>
# attribution:<br>
# # text for this layer<br>
# text: ""<br>
# # if inverse: use white on black attribution. for aerial images<br>
# # inverse: False<br>
# watermark:<br>
# # add the following text on each tile<br>
# text: Omniscale<br>
# sources:<br>
# - type: cache_tms<br>
# # is the tile coordinate origin (0, 0) in the lower left corner? otherwise top left.<br>
# ll_origin: True<br>
# url: <a href="http://osm.omniscale.net/proxy/tms/osm_EPSG900913">http://osm.omniscale.net/proxy/tms/osm_EPSG900913</a><br>
<br>
# ###########################################<br>
# # overlay layer<br>
# ###########################################<br>
# roads:<br>
# md:<br>
# title: transparent overlay<br>
# param:<br>
# srs: 'EPSG:900913'<br>
# sources:<br>
# - type: cache_wms<br>
# req:<br>
# url: <a href="http://server/mapserver/service">http://server/mapserver/service</a>?<br>
# layers: roads<br>
# transparent: 'true'<br>
<br>
# #########################<br>
# # Layer from TMS Source<br>
# #########################<br>
osm:<br>
md:<br>
title: Omniscale OSM WMS - <a href="http://osm.omniscale.net">osm.omniscale.net</a><br>
param:<br>
# cache tiles in format:<br>
# format: image/png<br>
<br>
# cache projected and geographical SRS<br>
srs: ['EPSG:4326', 'EPSG:900913']<br>
<br>
# store another level between each regular level<br>
res: 'sqrt2'<br>
<br>
# request all data in this format:<br>
# request_format: image/png<br>
<br>
# use a tile size of:<br>
tile_size: [256, 256]<br>
sources:<br>
- type: cache_wms<br>
req:<br>
url: <a href="http://osm.omniscale.net/proxy/service">http://osm.omniscale.net/proxy/service</a>?<br>
layers: osm<br>
# styles:<br>
# transparent: False<br>
<br>
# #########################<br>
# # Layer from TMS Source<br>
# #########################<br>
icc:<br>
md:<br>
title: ICC WMS - <a href="http://www.icc.cat">www.icc.cat</a><br>
param:<br>
# cache tiles in format:<br>
# format: image/png<br>
<br>
# cache projected and geographical SRS<br>
srs: ['EPSG:23031', 'EPSG:4326']<br>
<br>
# store another level between each regular level<br>
res: 'sqrt2'<br>
<br>
# request all data in this format:<br>
# request_format: image/png<br>
<br>
# use a tile size of:<br>
tile_size: [256, 256]<br>
sources:<br>
- type: direct<br>
req:<br>
url: <a href="http://shagrat.icc.es/lizardtech/iserv/ows">http://shagrat.icc.es/lizardtech/iserv/ows</a>?<br>
layers: mtc50m<br>
exceptions: application/vnd.ogc.se_xml<br>
# styles:<br>
# transparent: False<br>
<br>
<br>
Thank you Oliver.<br>
<br>
Antoni Vidal.<br>
<br>
-----Missatge original-----<br>
De: Oliver Tonnhofer [<a href="mailto:olt@omniscale.de">mailto:olt@omniscale.de</a>]<br>
Enviat el: dv. 07/05/2010 10:26<br>
Per a: Vidal, Antoni<br>
A/c: <a href="mailto:mapproxy@lists.osgeo.org">mapproxy@lists.osgeo.org</a><br>
Tema: Re: [MapProxy] EPSG:23031 in direct mode<br>
<br>
Hi Antoni,<br>
<br>
On 07.05.2010, at 08:28, Vidal, Antoni wrote:<br>
<br>
>> Anything on the console? Can you post you configuration?<br>
> sources:<br>
> - type: direct<br>
> req:<br>
> url: <a href="http://shagrat.icc.es/lizardtech/iserv/ows">http://shagrat.icc.es/lizardtech/iserv/ows</a>?<br>
> layers: mtc50m<br>
<br>
<br>
That one is tricky. Your server does not support inimage exceptions <br>
wich is the default for the direct requests. That's OK and within the <br>
standard, but your server does not report meaningful errors: <br>
"<ServiceException>Unknown error</ServiceException>".<br>
<br>
You need to set the exception format explicit:<br>
<br>
- type: direct<br>
req:<br>
url: <a href="http://shagrat.icc.es/lizardtech/iserv/ows">http://shagrat.icc.es/lizardtech/iserv/ows</a>?<br>
layers: mtc50m<br>
exceptions: application/vnd.ogc.se_xml<br>
<br>
<br>
After that you will hit the bug I mentioned yesterday. You have to <br>
remove line 2 and 3 of your service.yaml, you are also limited to the <br>
image format that is configured 'image/png' and can't set transparent <br>
and bgcolor. I will try to fix this bug today.<br>
<br>
<br>
Regards,<br>
Oliver<br>
<br>
--<br>
Oliver Tonnhofer <<a href="mailto:tonnhofer@omniscale.de">tonnhofer@omniscale.de</a>><br>
Omniscale - Dominik Helle, Oliver Tonnhofer GbR<br>
Nadorster Str. 60, 26123 Oldenburg<br>
Tel: +49(0)441/9392774-2 (Fax: 9)<br>
<br>
<br>
</font>
</p>
</div>
_______________________________________________<br>MapProxy mailing list<br><a href="mailto:MapProxy@lists.osgeo.org">MapProxy@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/mapproxy<br></blockquote></div><br></div><br><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="font-size: 12px; "><div>-- </div><div><div>Dominik Helle <<a href="mailto:helle@omniscale.de">helle@omniscale.de</a>></div><div>Omniscale, Dominik Helle, Oliver Tonnhofer GbR</div><div>Nadorster Straße 60, 26123 Oldenburg</div><div>Tel: +49(0)441/9392774-1 (Fax: 9)</div></div></span></span></div></span></div></span></span>
</div>
<br></body></html>