[mapserver-users] A couple of mapcache questions
Robert Miller
robert.miller at floodbroker.com
Wed Oct 10 09:40:14 PDT 2018
Thanks very much for your reply. I actually worked #1 out - I had the
wrong units set in the grid.
I'm only using the style in the .map file, and haven't set min and max
scale at this point. Linecolor and width are (I think) sufficient,
since it's just drawing a grid.
I've tried various combinations of TRANSPARENT TRUE, IMAGECOLOR
"#FFFFFF" and IMAGECOLOR #000000" in the mapfile, and turning
transparent on and off in the mapcache file, and I get either white or
black backgrounds in the cached tiles. The mapserver tiles look fine in
all cases.
Cheers,
Bob
On 10/10/2018 11:37 AM, Lime, Steve D (MNIT) wrote:
> Not sure if others replied off-list or not. It's hard to advise on issue 1 since the mapfile and layer definition you sent in the subsequent email was incomplete. Knowing what styles you're using and any min/max scale values would help.
>
> For issue 2 this is what I do for transparent tiles - I think you can just do one or the other but it doesn't hurt to do both:
>
> - set "<transparent>true</transparent>" in the WMS source definition params section.
> - set "TRANSPARENT TRUE" in the mapfile (at the map level). You might need to set an IMAGECOLOR too depending on what you're drawing.
>
> In this example:
>
> http://maps1.dnr.state.mn.us/lakefinder/map.html
>
> I only did the latter...
>
> --Steve
>
> -----Original Message-----
> From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Miller
> Sent: Friday, October 05, 2018 3:13 PM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] A couple of mapcache questions
>
> I'm trying to get my head around mapserver after using geoserver for a
> year or so. I'm really impressed so far with the speed and ability of
> mapserver. I've got a layer up and running on a WMS service and it
> works just I'd like.
>
> My question pertains to mapcache. After a fair amount of head
> scratching, I've got mapcache serving up the tiles, but with a couple of
> issues...
>
> 1. The layer is basically a grid structure - so a bunch of black lines.
> When I load the layer in QGIS the lines disappear 5 or 6 zoom levels
> out. I adapted the grid from WGS84 (my layer uses epsg:4269), and I
> don't really understand resolutions, so I'm thinking that might be the
> issue. I tried tweaking the values and everything I did just turned the
> whole layer black.
>
> 2. Although the mapserver WMS service generates a transparent layer,
> webcache is sending me a layer with an opaque white background.
>
> I've tried googling and searching the archive for an understanding of #1
> and haven't found anything. As for #2, I don't know where to start. So
> any help would be much appreciated.
>
> Thanks,
> Bob Miller
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list