[mapserver-users] CGI Tilemode blank on one layer
Lime, Steve D (MNIT)
Steve.Lime at state.mn.us
Thu Dec 24 07:45:24 PST 2015
Since you have no scale dependencies or anything like that I don’t know why… You have some spurious layer definitions (no need for TILEITEM or UNITS) but I don’t think that’s the problem. The most obvious cause would be that you’re viewing an area where there is ocean but no Kenya. What happens if you request both layers in the same tile?
http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=10m_ocean&layer=kenyaoutline&mode=tile&tile=${x}+${y}+${z}.png<http://localhost/cgi-bin/mapserv?MAP=/var/wpsinput/gdss.map&layer=10m_ocean&layer=kenyaoutline&mode=tile&tile=$%7bx%7d+$%7by%7d+$%7bz%7d.png>
Steve
From: Daniel Mwaurah [mailto:mwaurah at gmail.com]
Sent: Wednesday, December 23, 2015 4:30 PM
To: Lime, Steve D (MNIT) <Steve.Lime at state.mn.us>
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] CGI Tilemode blank on one layer
Thats true Steve,
Its actually rendering in the non tiled setting. I wonder how come its one layer not rendering in tilemode while the other one is. Both render ok in non tile setting.
On Wed, Dec 23, 2015 at 10:29 PM, Lime, Steve D (MNIT) <Steve.Lime at state.mn.us<mailto:Steve.Lime at state.mn.us>> wrote:
It will look at the extent of shapefiles to decide if it needs to process features in a layer but that’s to be expected. I mean, if there’s nothing to draw then why bother. Have you verified that the layers render in a non-tiled setting?
From: Daniel Mwaurah [mailto:mwaurah at gmail.com<mailto:mwaurah at gmail.com>]
Sent: Wednesday, December 23, 2015 3:26 PM
To: Lime, Steve D (MNIT) <Steve.Lime at state.mn.us<mailto:Steve.Lime at state.mn.us>>
Cc: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Subject: Re: [mapserver-users] CGI Tilemode blank on one layer
Thank you Steve for your response.
I have tried commenting out the extents but still the same problem. I think it recognizes the inbuilt extents of the data layers.
On Wed, Dec 23, 2015 at 9:36 PM, Lime, Steve D (MNIT) <Steve.Lime at state.mn.us<mailto:Steve.Lime at state.mn.us>> wrote:
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<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<mailto: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
--
Kind regards,
Mwaura Daniel
--
Kind regards,
Mwaura Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20151224/f52c1325/attachment.htm>
More information about the MapServer-users
mailing list