Steps to Tile Cache Installation
- Go to fgs installation folder and execute following command . SetEnv.sh
- Execute command -> $ fgs install tilecache-base:2.10 http://dl.maptools.org/dl/fgs/releases/9.5/modules/
- Modify tilecache.cfg file as per your configuration.
- Sample Cache entry is as follows
Tile cache can be accessed by link http://localhost:port/tilecache/
Map Server version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
[cache]
type=Disk
base=/home/mapserver/fgs/tmp/tilecache/cache
Sample WMS layer entry is as follows
[states]
type=WMS
url=http://localhost:8000/cgi-bin/mapserv?map=/home/mapserver/fgs/apps/OMMS3.0/htdocs/map/india_states.map
layers=states
extension=png
For above entry it is important that your map server supports WMS server to test that just go to your FGS installation directory and type command ./www/cgi-bin/mapserv -v and it should not throw any error
No comments:
Post a Comment