<div dir="ltr">hallo people,<div><br></div><div>I would greatly appreciate some help with Mapserver Tile mode. Eeven a hint in the right direction would be much appreciated. I am trying to display two layers in Tile mode in open layers as follows</div><div><br></div><div><br></div><div>1. <a href="http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=kenyaoutline&mode=tile&tile=${x}+${y}+${z}.png">http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=kenyaoutline&mode=tile&tile=${x}+${y}+${z}.png</a></div><div><br></div><div>2. <a href="http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=10m_ocean&mode=tile&tile=${x}+${y}+${z}.png">http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=10m_ocean&mode=tile&tile=${x}+${y}+${z}.png</a></div><div><br></div><div><br></div><div>The problem arises in that one layer the 10m_ocean displays while the other one just shows a blank. I suspect it has to do with the extents because the 10m_ocean layers has a large extent from -180 to 180 while the kenyaoutline layer only covers one country from about 33 to 37 degrees.</div><div><br></div><div>Is there a limitation to small extents in tile mode? or what could be the problem. My mapfile is as below.</div><div><br></div><div><br></div><div><div>MAP</div><div> #FONTSET "[fontsetpath]"</div><div>DEBUG 5</div><div> CONFIG "MS_ERRORFILE" "/var/www/wpsinput/ms_error.txt"</div><div> EXTENT 33 -5 42 6</div><div> IMAGETYPE "png"</div><div> NAME "Natural_Earth_quick_start_for_QGIS"</div><div> SIZE 600 600</div><div> CONFIG ON_MISSING_DATA "LOG"</div><div> STATUS ON</div><div> UNITS DD</div><div><br></div><div> OUTPUTFORMAT</div><div> NAME "png"</div><div> MIMETYPE "image/png"</div><div> DRIVER "AGG/PNG"</div><div> EXTENSION "png"</div><div> IMAGEMODE RGBA</div><div> TRANSPARENT TRUE</div><div> END # OUTPUTFORMAT</div><div><br></div><div> PROJECTION</div><div> "proj=longlat"</div><div> "datum=WGS84"</div><div> "no_defs"</div><div> END # PROJECTION</div><div> LEGEND</div><div> KEYSIZE 20 10</div><div> KEYSPACING 5 5</div><div> LABEL</div><div> SIZE MEDIUM</div><div> OFFSET 0 0</div><div> SHADOWSIZE 1 1</div><div> TYPE BITMAP</div><div> END # LABEL</div><div> STATUS OFF</div><div> END # LEGEND</div><div><br></div><div> QUERYMAP</div><div> SIZE -1 -1</div><div> STATUS OFF</div><div> STYLE HILITE</div><div> END # QUERYMAP</div><div><br></div><div> SCALEBAR</div><div> INTERVALS 4</div><div> LABEL</div><div> SIZE MEDIUM</div><div> OFFSET 0 0</div><div> SHADOWSIZE 1 1</div><div> TYPE BITMAP</div><div> END # LABEL</div><div> SIZE 200 3</div><div> STATUS OFF</div><div> UNITS MILES</div><div> END # SCALEBAR</div><div><br></div><div> WEB</div><div> FOOTER ""</div><div> HEADER ""</div><div> TEMPPATH ""</div><div> METADATA</div><div> "ows_onlineresource"<span class="" style="white-space:pre"> </span>"<a href="http://localhost/cgi-bin/mapserv?map=/home/wpsinput/worldmap.map">http://localhost/cgi-bin/mapserv?map=/home/wpsinput/worldmap.map</a>"</div><div> "ows_enable_request"<span class="" style="white-space:pre"> </span>"*"</div><div> "ows_srs"<span class="" style="white-space:pre"> </span>"EPSG:4326"</div><div> "ows_title"<span class="" style="white-space:pre"> </span>"Natural_Earth_quick_start_for_QGIS"</div><div> END # METADATA</div><div> #TEMPLATE "[templatepath]"</div><div> END # WEB</div><div><br></div><div> LAYER</div><div> DATA "/var/www/10m_physical/10m_ocean.shp"</div><div> EXTENT 33 -5 42 6</div><div> METADATA</div><div> "ows_title"<span class="" style="white-space:pre"> </span>"10m_ocean"</div><div> END # METADATA</div><div> NAME "10m_ocean"</div><div> PROJECTION</div><div> "proj=longlat"</div><div> "datum=WGS84"</div><div> "no_defs"</div><div> END # PROJECTION</div><div> STATUS ON</div><div> TILEITEM "location"</div><div> TYPE POLYGON</div><div> UNITS METERS</div><div> CLASS</div><div> NAME "Single symbol"</div><div> STYLE</div><div> COLOR 198 226 242</div><div> END # STYLE</div><div> END # CLASS</div><div> END # LAYER</div><div><br></div><div><br></div><div>LAYER</div><div> DATA "/var/www/kenyaoutline/Kenyaoutline.shp"</div><div> EXTENT 33 -5 42 6</div><div> METADATA</div><div> "ows_title"<span class="" style="white-space:pre"> </span>"Kenyaoutline"</div><div> END # METADATA</div><div> NAME "Kenyaoutline"</div><div> PROJECTION</div><div> "proj=longlat"</div><div> "datum=WGS84"</div><div> "no_defs"</div><div> END # PROJECTION</div><div> STATUS ON</div><div> TILEITEM "location"</div><div> TYPE POLYGON</div><div> UNITS METERS</div><div> CLASS</div><div> NAME "Single symbol"</div><div> STYLE</div><div> COLOR 0 0 0</div><div> END # STYLE</div><div> END # CLASS</div><div> END # LAYER</div><div><br></div><div>END # MAP</div></div><div><br></div><div><br></div><div><br></div><div>The same happens when i try to view it using QGIS Tilelayer plugin.</div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Kind regards,<br><br>Mwaura Daniel<br><br></div></div>
</div></div>