Re: [mapserver-users] A couple of mapcache questions
For my example below the mapfile has: TRANSPARENT TRUE IMAGECOLOR 181 181 181 and mapcache.xml has: http://maps2.dnr.state.mn.us/cgi-bin/mapserv64? dummy false PNG24 LAKEFINDER_TILES_MAPFILE lakefinder_wms mn_google disk PNGQ_FAST 8 8 20 My mn_google grid is just the standard Google grid mapcache defines along with a limited extent. --Steve -Original Message- From: Robert Miller [mailto:robert.mil...@floodbroker.com] Sent: Wednesday, October 10, 2018 11:40 AM To: Lime, Steve D (MNIT) ; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] A couple of mapcache questions 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 "#FF" and IMAGECOLOR #00" 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 "true" 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-boun...@lists.osgeo.org] On > Behalf Of Robert Miller > Sent: Friday, October 05, 2018 3:13 PM > To: mapserver-users@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@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] A couple of mapcache questions
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 "#FF" and IMAGECOLOR #00" 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 "true" 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-boun...@lists.osgeo.org] On Behalf Of Robert Miller Sent: Friday, October 05, 2018 3:13 PM To: mapserver-users@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@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] A couple of mapcache questions
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 "true" 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-boun...@lists.osgeo.org] On Behalf Of Robert Miller Sent: Friday, October 05, 2018 3:13 PM To: mapserver-users@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@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users