<div dir="ltr">Can you take a look at my <a href="https://docs.google.com/document/d/1yiwhofPOHDtKaFynhXdH0SPbQhojXZGnd5cw9dBNH7A/edit?usp=sharing">mapcache.xml</a> and my <a href="https://docs.google.com/document/d/1jjdKjJ1kxMFRGTJAstAJ5qk8zUo6MWsYLxW827bC2LM/edit?usp=sharing">osm-google.map</a> file? I don't know what I have done wrong. It's not producing the tiles. <br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 26, 2013 at 9:21 AM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 5/25/2013 11:08 PM, Hishan Melanga wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What is the link to access the tiles in web browser if I used your .xml<br>
as the configuration? Is it still <a href="http://example.com/mapcache/demo" target="_blank">http://example.com/mapcache/<u></u>demo</a> or<br>
something else.<br>
</blockquote>
<br></div>
You would replace <a href="http://example.com" target="_blank">example.com</a> with your host name.<br>
<br>
Also note the blue (+] buttom in the upper right of the demo map page, open this is you have multiple services or tilesets defined and you can select that one you want to view.<br>
<br>
Here is my demo page that has data for the US and is pulling tiles from my mapcache instance.<br>
<br>
<a href="http://imaptools.com:8080/demo/tiger-demo2.html" target="_blank">http://imaptools.com:8080/<u></u>demo/tiger-demo2.html</a><br>
<br>
-Steve<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Sat, May 25, 2013 at 7:47 PM, Stephen Woodbridge<br></div><div><div class="h5">
<<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a> <mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.<u></u>com</a>>> wrote:<br>
<br>
So the way this works is:<br>
<br>
browser <----> mapcache <----> mapserver_wms<br>
<br>
So look at the demo page if you have mapcache.xml configured then<br>
you should see a simple OpenLayers application that pulls tiles from<br>
mapcache.<br>
<br>
your mapcache.xml needs look something like this. The referrences in<br>
the source block are explicit references to names in my mapfile.<br>
Obviously parameter values need to be change for your server and<br>
mapfile.<br>
<br>
-Steve<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<mapcache><br>
<metadata><br>
<title>iMaptools mapcache service</title><br>
<abstract>Contains various services for iMaptools maps</abstract><br>
</metadata><br>
<br>
<cache name="disk" type="disk"><br>
<base>/u/mapcache</base><br>
<symlink_blank/><br>
</cache><br>
<br>
<source name="tiger2011" type="wms"><br>
<getmap><br>
<params><br>
<FORMAT>image/png</FORMAT><br></div></div>
<MAP_IMAGETYPE>agg_qn</MAP___<u></u>IMAGETYPE><br>
<LAYERS>Tiger_2011</LAYERS><br>
<MAP>/u/data/tiger2011-maps/__<u></u>tiger2011-mc.map</MAP><br>
</params><br>
</getmap><br>
<br>
<http><br>
<url><a href="http://localhost/cgi-bin/__mapserv-60" target="_blank">http://localhost/cgi-bin/<u></u>__mapserv-60</a><div class="im"><br>
<<a href="http://localhost/cgi-bin/mapserv-60" target="_blank">http://localhost/cgi-bin/<u></u>mapserv-60</a>></url><br>
</http><br>
</source><br>
<br>
<format name="PNGQ_FAST" type="PNG"><br></div>
<compression>fast</__<u></u>compression><div class="im"><br>
<colors>256</colors><br>
</format><br>
<br>
<tileset name="tiger-base"><br>
<source>tiger2011</source><br>
<cache>disk</cache><br>
<grid>WGS84</grid><br>
<grid>g</grid><br>
<format>PNGQ_FAST</format><br>
<metatile>5 5</metatile><br>
<!-- metabuffer must be the abs() of what is in the mapfile --><br>
<metabuffer>20</metabuffer><br>
<expires>3600</expires><br>
</tileset><br>
<br></div>
<default_format>PNGQ_FAST</__<u></u>default_format><div class="im"><br>
<br>
<service type="wms" enabled="true"><br>
<full_wms>assemble</full_wms><br></div>
<resample_mode>bilinear</__<u></u>resample_mode><div class="im"><br>
<format>PNGQ_FAST</format><br>
<maxsize>4096</maxsize><br>
</service><br>
<service type="wmts" enabled="true"/><br>
<service type="tms" enabled="true"/><br>
<service type="kml" enabled="true"/><br>
<service type="gmaps" enabled="true"/><br>
<service type="ve" enabled="true"/><br>
<service type="demo" enabled="true"/><br>
<br>
<errors>report</errors><br>
<lock_dir>/tmp</lock_dir><br>
<br>
</mapcache><br>
<br>
<br>
<br>
On 5/25/2013 9:47 AM, Hishan Melanga wrote:<br>
<br></div>
ok. Now I have <a href="http://example.com/mapcache/__demo" target="_blank">http://example.com/mapcache/__<u></u>demo</a><div class="im"><br>
<<a href="http://example.com/mapcache/demo" target="_blank">http://example.com/mapcache/<u></u>demo</a>> working. But how can I<br>
get my mapserver's wms connect to it.<br>
<br>
<br>
On Sat, May 25, 2013 at 10:42 AM, Hishan Melanga<br>
<<a href="mailto:hishanm@gmail.com" target="_blank">hishanm@gmail.com</a> <mailto:<a href="mailto:hishanm@gmail.com" target="_blank">hishanm@gmail.com</a>><br></div><div class="im">
<mailto:<a href="mailto:hishanm@gmail.com" target="_blank">hishanm@gmail.com</a> <mailto:<a href="mailto:hishanm@gmail.com" target="_blank">hishanm@gmail.com</a>>>> wrote:<br>
<br>
Thanks. I installed mapcahe and started to learn about the xml<br>
configuration file. Reading<br></div>
<a href="http://mapserver.org/mapcache/__config.html" target="_blank">http://mapserver.org/mapcache/<u></u>__config.html</a><div class="im"><br>
<<a href="http://mapserver.org/mapcache/config.html" target="_blank">http://mapserver.org/<u></u>mapcache/config.html</a>> as a start. Hope it<br>
is the<br>
first thing that I should do.<br>
<br>
<br>
On Sat, May 25, 2013 at 8:07 AM, Stephen Woodbridge<br>
<<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a> <mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.<u></u>com</a>><br></div>
<mailto:<a href="mailto:woodbri@swoodbridge." target="_blank">woodbri@swoodbridge.</a>__<u></u>com<div class="im"><br>
<mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.<u></u>com</a>>>> wrote:<br>
<br>
On 5/24/2013 10:06 PM, Hishan Melanga wrote:<br>
<br>
I have a working mapserver and I can view my map using<br></div>
<a href="http://localhost/cgi-bin/____mapserv?map=/path/to/map&mode=____browse&template=openlayers&____layers=all" target="_blank">http://localhost/cgi-bin/____<u></u>mapserv?map=/path/to/map&mode=<u></u>____browse&template=<u></u>openlayers&____layers=all</a><br>
<<a href="http://localhost/cgi-bin/__mapserv?map=/path/to/map&mode=__browse&template=openlayers&__layers=all" target="_blank">http://localhost/cgi-bin/__<u></u>mapserv?map=/path/to/map&mode=<u></u>__browse&template=openlayers&_<u></u>_layers=all</a>><div class="im">
<br>
<br>
<<a href="http://localhost/cgi-bin/__mapserv?map=/path/to/map&mode=__browse&template=openlayers&__layers=all" target="_blank">http://localhost/cgi-bin/__<u></u>mapserv?map=/path/to/map&mode=<u></u>__browse&template=openlayers&_<u></u>_layers=all</a><br>
<<a href="http://localhost/cgi-bin/mapserv?map=/path/to/map&mode=browse&template=openlayers&layers=all" target="_blank">http://localhost/cgi-bin/<u></u>mapserv?map=/path/to/map&mode=<u></u>browse&template=openlayers&<u></u>layers=all</a>>>.<br>
<br>
Now I want to give out those data to public as<br>
tiles giving<br>
a single URL<br>
such as <a href="http://tile.myserver.org" target="_blank">tile.myserver.org</a><br></div>
<<a href="http://tile.myserver.org" target="_blank">http://tile.myserver.org</a>> <<a href="http://tile.myserver.org" target="_blank">http://tile.myserver.org</a>><div class="im"><br>
<br>
<<a href="http://tile.myproxy.org/" target="_blank">http://tile.myproxy.org/</a>>. How can I achieve<br>
<br>
this using Mapserver? What is the place to start? What<br>
tutorials I have<br>
to read? I've read that Mapserver has a tile mode<br></div>
<<a href="http://mapserver.org/output/____tile_mode.html" target="_blank">http://mapserver.org/output/_<u></u>___tile_mode.html</a><br>
<<a href="http://mapserver.org/output/__tile_mode.html" target="_blank">http://mapserver.org/output/_<u></u>_tile_mode.html</a>><div class="im"><br>
<br>
<<a href="http://mapserver.org/output/__tile_mode.html" target="_blank">http://mapserver.org/output/_<u></u>_tile_mode.html</a><br>
<<a href="http://mapserver.org/output/tile_mode.html" target="_blank">http://mapserver.org/output/<u></u>tile_mode.html</a>>>>.<br>
Thanks in advance.<br>
<br>
<br>
mapcache it the tile server for mapserver. So you will<br>
want to<br>
look at that. The basic scenario is this:<br>
<br>
1. setup mapserver as a WMS server<br>
2. build and install mapcache as an apache module<br>
3. setup a mapcache.xml to describe you WMS server, and<br>
your cache.<br>
make sure you configure the demo service initially<br>
for testing<br>
you can disable it later if you want<br>
4. restart apache<br></div>
5. <a href="http://example.com/mapcache/____demo" target="_blank">http://example.com/mapcache/__<u></u>__demo</a><br>
<<a href="http://example.com/mapcache/__demo" target="_blank">http://example.com/mapcache/_<u></u>_demo</a>><div class="im"><br>
<br>
<<a href="http://example.com/mapcache/__demo" target="_blank">http://example.com/mapcache/_<u></u>_demo</a><br>
<<a href="http://example.com/mapcache/demo" target="_blank">http://example.com/mapcache/<u></u>demo</a>>><br>
<br>
whenever you change your mapcache.xml you need to start<br>
apache<br>
so it reads your changes.<br>
<br>
-Steve W<br></div>
______________________________<u></u>_____________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.__<u></u>__org<br>
<mailto:<a href="mailto:mapserver-users@lists." target="_blank">mapserver-users@lists.</a><u></u>__<a href="http://osgeo.org" target="_blank">osgeo.org</a><br>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.<u></u>osgeo.org</a>>><br>
<a href="http://lists.osgeo.org/____mailman/listinfo/mapserver-____users" target="_blank">http://lists.osgeo.org/____<u></u>mailman/listinfo/mapserver-___<u></u>_users</a><br>
<<a href="http://lists.osgeo.org/__mailman/listinfo/mapserver-__users" target="_blank">http://lists.osgeo.org/__<u></u>mailman/listinfo/mapserver-__<u></u>users</a>><div class="im"><br>
<br>
<<a href="http://lists.osgeo.org/__mailman/listinfo/mapserver-__users" target="_blank">http://lists.osgeo.org/__<u></u>mailman/listinfo/mapserver-__<u></u>users</a><br>
<<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a>>><br>
<br>
<br>
<br>
<br>
--<br>
හිෂාන් මෙලංග | Hishan Melanga<br></div>
<<a href="http://hishanmelanga." target="_blank">http://hishanmelanga.</a>__<a href="http://blogspot.com/" target="_blank">blogsp<u></u>ot.com/</a><div class="im"><br>
<<a href="http://hishanmelanga.blogspot.com/" target="_blank">http://hishanmelanga.<u></u>blogspot.com/</a>>><br>
<br>
<br>
<br>
<br>
--<br>
හිෂාන් මෙලංග | Hishan Melanga<br></div>
<<a href="http://hishanmelanga." target="_blank">http://hishanmelanga.</a>__<a href="http://blogspot.com/" target="_blank">blogsp<u></u>ot.com/</a><br>
<<a href="http://hishanmelanga.blogspot.com/" target="_blank">http://hishanmelanga.<u></u>blogspot.com/</a>>><div class="im"><br>
<br>
<br>
<br>
______________________________<u></u>___________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.__<u></u>org<br>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.<u></u>osgeo.org</a>><br>
<a href="http://lists.osgeo.org/__mailman/listinfo/mapserver-__users" target="_blank">http://lists.osgeo.org/__<u></u>mailman/listinfo/mapserver-__<u></u>users</a><br>
<<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a>><br>
<br>
<br>
______________________________<u></u>___________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.__<u></u>org<br>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.<u></u>osgeo.org</a>><br>
<a href="http://lists.osgeo.org/__mailman/listinfo/mapserver-__users" target="_blank">http://lists.osgeo.org/__<u></u>mailman/listinfo/mapserver-__<u></u>users</a><br>
<<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a>><br>
<br>
<br>
<br>
<br>
--<br>
හිෂාන් මෙලංග | Hishan Melanga <<a href="http://hishanmelanga.blogspot.com/" target="_blank">http://hishanmelanga.<u></u>blogspot.com/</a>><br>
<br>
<br></div><div class="im">
______________________________<u></u>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a><br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://hishanmelanga.blogspot.com/" target="_blank">හිෂාන් මෙලංග | Hishan Melanga</a><br>
</div>