Discussion:
Mapcache Question
Tim Nasman
2014-10-01 21:58:36 UTC
Permalink
I have read through the Mapcache documentation but I feel like I am missing
some basic elements to how it works.

I am using Mapcache to display a mbtile that I have created. Now from what
I understand, my mapcache .xml will list out the parameters of the mbtile
and then I add a layer within my mapfile referencing the .xml which I
should then be able to to use as WMTS using openlayers. I just haven't
grasped how mapcache and mapserv work together so any clarification would
be helpful. Thanks for your time.
--
Timothy Nasman
Data Analyst | Programmer
Rolling Leaf Inc.
[V] : 910.274.1436
[E] : ***@rollingleaf.com <***@rollingleaf.com>
Travis Kirstine
2014-10-01 23:33:12 UTC
Permalink
Tim,

MapCache Is simply a tiling server. It will take images from a source and
store them in a cache. These tiles are exposed as services to clients -
WMTS, WMS, TMS etc... MapServer on the other hand will read source data
(GIS files / database) and render images based on rules defined in the
mapfile. These images are used as the source for MapCache.
Post by Tim Nasman
I have read through the Mapcache documentation but I feel like I am
missing some basic elements to how it works.
I am using Mapcache to display a mbtile that I have created. Now from
what I understand, my mapcache .xml will list out the parameters of the
mbtile and then I add a layer within my mapfile referencing the .xml which
I should then be able to to use as WMTS using openlayers. I just haven't
grasped how mapcache and mapserv work together so any clarification would
be helpful. Thanks for your time.
--
Timothy Nasman
Data Analyst | Programmer
Rolling Leaf Inc.
[V] : 910.274.1436
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
[image: FBS Logo]

*Travis Kirstine*, Web Development Supervisor
*t *905‑477‑3600* x *301 | *m *905‑534‑4798 |
***@firstbasesolution.com

*First Base Solutions Inc.*
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
*t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com
Vladimir
2014-10-10 07:23:32 UTC
Permalink
Hello ALL!

I dig into MapCache now and my modest comprehension is:
1) MapCache uses Mapserv for seeding tiles or more exactly -
sends WMS request to Mapserv for getting a map:
<source>....</source> section in a mapcache.xml file

2) Ol uses MapCache for rendering that tiles or more exactly -
sends WMS(or other) request to MapCache:
new ol.layer.Tile({
source: new ol.source.TileWMS(({
url: 'myhost/mapcache/?',
params: {'LAYERS': 'mytileset'},
serverType: 'mapserver'
}))
})
where
/mapcache/ is path to a mapcache.xml(aliased through Apache),
'mytileset' is <tileset name="mytileset"> section in a mapcache.xml file

3)The Seeding and the rendering needs other configuration of mapcache.xml file(it is needs clarification).

4)The seeding may be through:
mapcache_seed -c mapcache.xml -t mytileset-g mygrid
or
during a certain map area is requested by client (it is needs clarification).
Thanks for any correction.
Best regards.
Tim,
MapCache Is simply a tiling server.  It will take images from a source and store them in a cache.  These tiles are exposed as services to clients - WMTS, WMS, TMS etc...  MapServer on the other hand will read source data (GIS files / database) and render images based on rules defined in the mapfile.  These images are used as the source for MapCache.
I have read through the Mapcache documentation but I feel like I am missing some basic elements to how it works.
 I am using Mapcache to display a mbtile that I have created. Now from what I understand, my mapcache .xml will list out the parameters of the mbtile and then I add a layer within my mapfile referencing the .xml which I should then be able to to use as WMTS using openlayers. I just haven't grasped how mapcache and mapserv work together so any clarification would be helpful. Thanks for your time. 
--
Timothy Nasman
Data Analyst | Programmer
Rolling Leaf Inc.
[V] : 910.274.1436
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Travis Kirstine , Web Development Supervisor
First Base Solutions Inc.
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
t  905‑477‑3600 | f  905‑477‑0892 | www.firstbasesolutions.com
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
ВлаЎОЌОр
Stephen Woodbridge
2014-10-10 12:16:34 UTC
Permalink
Post by Vladimir
Hello ALL!
1) MapCache uses Mapserv for seeding tiles or more exactly -
<source>....</source> section in a mapcache.xml file
2) Ol uses MapCache for rendering that tiles or more exactly -
new ol.layer.Tile({
source: new ol.source.TileWMS(({
url: 'myhost/mapcache/?',
params: {'LAYERS': 'mytileset'},
serverType: 'mapserver'
}))
})
where
/mapcache/ is path to a mapcache.xml(aliased through Apache),
'mytileset' is <tileset name="mytileset"> section in a mapcache.xml file
3)The Seeding and the rendering needs other configuration of
mapcache.xml file(it is needs clarification).
mapcache_seed -c mapcache.xml -t mytileset-g mygrid
or
during a certain map area is requested by client (it is needs
clarification).
Yes, this seems correct. I will not that you CAN NOT use mapcache_seed
AND web requests TOGETHER as they do not use compatible locking
mechanisms. So either use mapcache_seed before you deploy or use the web
requests to dynamically seed the cache. You can use mapcache_seed to do
a partial pre seeding (like rectangles around major cities) then change
over to web request which will generate tiles as needed in the remaining
areas.

-Steve W
Post by Vladimir
Thanks for any correction.
Best regards.
Wed, 1 Oct 2014 19:33:12 -0400 от Travis Kirstine
Tim,
MapCache Is simply a tiling server. It will take images from a
source and store them in a cache. These tiles are exposed as
services to clients - WMTS, WMS, TMS etc... MapServer on the other
hand will read source data (GIS files / database) and render images
based on rules defined in the mapfile. These images are used as the
source for MapCache.
I have read through the Mapcache documentation but I feel like I
am missing some basic elements to how it works.
I am using Mapcache to display a mbtile that I have created.
Now from what I understand, my mapcache .xml will list out the
parameters of the mbtile and then I add a layer within my
mapfile referencing the .xml which I should then be able to to
use as WMTS using openlayers. I just haven't grasped how
mapcache and mapserv work together so any clarification would be
helpful. Thanks for your time.
--
Timothy Nasman
Data Analyst | Programmer
Rolling Leaf Inc.
[V] : 910.274.1436
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
FBS Logo
*Travis Kirstine*, Web Development Supervisor
*t *905‑477‑3600/ x /301 | *m *905‑534‑4798 |
*First Base Solutions Inc.*
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
*t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com
<http://www.firstbasesolutions.com>
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Владимир
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Loading...