[mapserver-users] Antw: MapServer, MapCache and WMS
Kai Behncke
Kai.Behncke at ibbenbueren.de
Wed Jul 24 06:11:30 PDT 2019
Allright, forget that question.
The answer is:
Not the WMS-URL should be opened in the client but the url to the
mapcache-software:
e.g.:
( http://gisgr/mapcache)
var wmsSource = new ImageWMS({
url: 'http://blabla/mapcache/?',
params: {'LAYERS': 'kachelnkanal'},
serverType: 'mapserver',
crossOrigin: 'anonymous'
});
var wmsLayer = new ImageLayer({
source: wmsSource
});
Mit freundlichen Grüßen
Im Auftrag
Kai Behncke
Geoinformation
Tel.: +49 5451 931-7125
E-Mail: kai.behncke at ibbenbueren.de
Rathaus II
Roncallistraße 3-5
1. Stock, Raum 105
49477 Ibbenbüren
>>> "Kai Behncke" <Kai.Behncke at ibbenbueren.de> 24.07.2019 14:27 >>>
Dear users,
I try to use MapServer 7.4 with MapCache 1.6.1 on a Suse SLES
15-system.
Mapserver is delivering a wms very well.
I installed MapCache successfully (I think).
In my mapcache.xml I have set:
...
....
<source name="kanaldaten" type="wms">
<getmap>
<params>
<FORMAT>image/jpeg</FORMAT>
<LAYERS>schaechte</LAYERS>
</params>
</getmap>
<http>
<url>http://blablabla/cgi-bin/mapserv?map=/home/blablabla/wms.map</url>
</http>
</source>
<tileset name="kachelnkanal">
<source>kanaldaten</source>
<cache>disk</cache>
<grid>WGS84</grid>
<format>PNG</format>
<metatile>5 5</metatile>
<metabuffer>10</metabuffer>
<expires>3600</expires>
</tileset>
...
....
If I use the WMS-demo application:
http://blablabla/mapcache/demo/wms everything works fine.
A couple of tiles are produced on the server.
But: If I use my WMS e.g. in QuantumGIS or at a simple
...GetMap-Request in an URL
no tiles at all are produced on the server??
Am I right that the tile-producing only works, if the mapclient has
specific entries?`
Thank you very much, Kai
Mit freundlichen Grüßen
Im Auftrag
Kai Behncke
Geoinformation
Tel.: +49 5451 931-7125
E-Mail: kai.behncke at ibbenbueren.de
Rathaus II
Roncallistraße 3-5
1. Stock, Raum 105
49477 Ibbenbüren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20190724/652d26dd/attachment.htm>
More information about the MapServer-users
mailing list