Thanks Manel & Jukka,

Had no time to try the latest OGCServer version and I am a bit reluctant to change my running system again...

The GWC that comes with GeoServer has a different structure. I am actually not sure about the following <bean> from WEB-INF/geowebcache-core-context.xml:

<bean id="gwcWMSConfig" class="org.geowebcache.config.GetCapabilitiesConfiguration">
        <constructor-arg ref="gwcGridSetBroker"/>
<constructor-arg value="http://localhost/osm?SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetCapabilities"/>
    <constructor-arg value="image/png,image/png8,image/jpeg"/>
    <constructor-arg value="3x3"/>
    <constructor-arg value=""/>
    <constructor-arg value="false"/>
  </bean>

Any vendor specific parameters should go into the 5. empty constructor-arg and it seems to me that something is needed there to let mapniks GetCap show up. I already tried many combinations without success.

Anyway, the changes made to OGCServer look like they may solve this. I'll report back.

thanks
Daniel


Am 10.06.2011 13:03, schrieb Rahkonen Jukka:
Hi,

I am running GeoWebCache which comes with GeoServer and the config file 
"geowebcache.xml" has this kind of entry
  <wmsLayer>
     <name>GWC_service</name>  <!-- this is what is published to the outside world 
-->
     <wmsUrl><string>http://server.fi/cgi-bin/mapserv.exe</string></wmsUrl>   <!-- 
the url of your wms map -->
       <wmsLayers>WMS_layer1</wmsLayers>  <!-- layer names as known by your wms 
-->

I am not sure if GWC is reading the GetCapabilities ever, it just starts to 
send GetMaps when seeding the cache. However, the standalone service may behave 
differently.

-Jukka Rahkonen-



manel.clos wrote:


Hi Daniel,

You may try a newer OGCServer version[1]. Perhaps GWC doesn't
like the GetCapabilities OGCServer is sending, and the newer
version has a lot of improvements in this area.

Also, if it does not work with the new version, please open a
bug on github and post any debug info from GWC.

Manel.

[1] https://github.com/mapnik/OGCServer/


-----Mensaje original-----
De: [email protected]
[mailto:[email protected]] En nombre de
Daniel Behr
Enviado el: miércoles, 08 de junio de 2011 15:24
Para: [email protected]
Asunto: [Mapnik-users] howto config GeoWebCache in front of
mapnik/ogcserver?

Hi!
is there someone out there using GWC with Mapnik?

I saw some older posts, but none including details on GWC
configuration.

My question is:
whats the trick when adding the GetCapabilities to the
'gwcWMSConfig'-bean in GWCs geowebcache-core-context.xml?

I supposed this would work, but it didnt:

<constructor-arg
value="http://localhost/osm?service=WMS&amp;version=1.1.1&amp;
request=GetCapabilities"/>

(without the line break of course)

I have mapnik 0.7.1, GWC 1.2.6 standalone (not the GS plugin) and a
valid GetCap from OGCServer, but none of the settings I tried
gave me a
demo-layer after reloading the tomcat app.

I also tried setting the empty arg to
<constructor-arg value="module=map_factory"/>
and the likes, but nothing.

I keep on digging, but maybe someone just knows whats missing.
thanks in advance...

--
Daniel Behr
-------------------------------------------
Institut für Küstenforschung
Helmholtz-Zentrum Geesthacht GmbH
D-21502 Geesthacht
+49 (0)4152 87 1589 (fax -1596)
[email protected]

-------------------------------------------
Helmholtz-Zentrum Geesthacht
Zentrum für Material- und Küstenforschung GmbH
Max-Planck-Straße 1
21502 Geesthacht
Deutschland/Germany

Geschäftsführer/Board of Management:
Prof. Dr. Wolfgang A. Kaysser, Dipl.-Ing. Michael Ganß
Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board:
Ministerialrat Wilfried Kraus

Amtsgericht Lübeck- HRB 285 GE (Register Court)
Internet: http://hzg.de
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to