[mapserver-users] CGI Tilemode blank on one layer
Lime, Steve D (MNIT)
Steve.Lime at state.mn.us
Wed Dec 23 12:36:03 PST 2015
What happens if you comment out the layer extents? They really shouldn’t be necessary.
From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Mwaurah
Sent: Wednesday, December 23, 2015 2:27 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] CGI Tilemode blank on one layer
hallo people,
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
1. 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=$%7bx%7d+$%7by%7d+$%7bz%7d.png>
2. 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=$%7bx%7d+$%7by%7d+$%7bz%7d.png>
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.
Is there a limitation to small extents in tile mode? or what could be the problem. My mapfile is as below.
MAP
#FONTSET "[fontsetpath]"
DEBUG 5
CONFIG "MS_ERRORFILE" "/var/www/wpsinput/ms_error.txt"
EXTENT 33 -5 42 6
IMAGETYPE "png"
NAME "Natural_Earth_quick_start_for_QGIS"
SIZE 600 600
CONFIG ON_MISSING_DATA "LOG"
STATUS ON
UNITS DD
OUTPUTFORMAT
NAME "png"
MIMETYPE "image/png"
DRIVER "AGG/PNG"
EXTENSION "png"
IMAGEMODE RGBA
TRANSPARENT TRUE
END # OUTPUTFORMAT
PROJECTION
"proj=longlat"
"datum=WGS84"
"no_defs"
END # PROJECTION
LEGEND
KEYSIZE 20 10
KEYSPACING 5 5
LABEL
SIZE MEDIUM
OFFSET 0 0
SHADOWSIZE 1 1
TYPE BITMAP
END # LABEL
STATUS OFF
END # LEGEND
QUERYMAP
SIZE -1 -1
STATUS OFF
STYLE HILITE
END # QUERYMAP
SCALEBAR
INTERVALS 4
LABEL
SIZE MEDIUM
OFFSET 0 0
SHADOWSIZE 1 1
TYPE BITMAP
END # LABEL
SIZE 200 3
STATUS OFF
UNITS MILES
END # SCALEBAR
WEB
FOOTER ""
HEADER ""
TEMPPATH ""
METADATA
"ows_onlineresource" "http://localhost/cgi-bin/mapserv?map=/home/wpsinput/worldmap.map"
"ows_enable_request" "*"
"ows_srs" "EPSG:4326"
"ows_title" "Natural_Earth_quick_start_for_QGIS"
END # METADATA
#TEMPLATE "[templatepath]"
END # WEB
LAYER
DATA "/var/www/10m_physical/10m_ocean.shp"
EXTENT 33 -5 42 6
METADATA
"ows_title" "10m_ocean"
END # METADATA
NAME "10m_ocean"
PROJECTION
"proj=longlat"
"datum=WGS84"
"no_defs"
END # PROJECTION
STATUS ON
TILEITEM "location"
TYPE POLYGON
UNITS METERS
CLASS
NAME "Single symbol"
STYLE
COLOR 198 226 242
END # STYLE
END # CLASS
END # LAYER
LAYER
DATA "/var/www/kenyaoutline/Kenyaoutline.shp"
EXTENT 33 -5 42 6
METADATA
"ows_title" "Kenyaoutline"
END # METADATA
NAME "Kenyaoutline"
PROJECTION
"proj=longlat"
"datum=WGS84"
"no_defs"
END # PROJECTION
STATUS ON
TILEITEM "location"
TYPE POLYGON
UNITS METERS
CLASS
NAME "Single symbol"
STYLE
COLOR 0 0 0
END # STYLE
END # CLASS
END # LAYER
END # MAP
The same happens when i try to view it using QGIS Tilelayer plugin.
--
Kind regards,
Mwaura Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20151223/7732fb74/attachment.htm>
More information about the MapServer-users
mailing list