[mapserver-users] mapcache - edges black, problems with transparency.
Hello, I am having a couple issues with mapcache: First, The edges of my map (outside of the gird) are black. Is there a way to change the outside edge color to either white, or transparent? Second, I would like to enable transparency on some of my caches. From what I read using PNG_BEST will store transparent tiles. However this did not seem to work. If anyone has any tips on how to store transparent tiles let me know. I am using MS4W 3.1 beta. My source WMS server is set up to share transparent images, and it does not have the black edge issue. Mark Volz, GISP GIS Specialist ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] styling wfs in openlayers 2.7?
(sorry for the cross-posting but never been able to subscribe to [openlayers-users], maybe you can help) -- Forwarded message -- From: John Smith jayzee.sm...@gmail.com Date: Thu, Sep 19, 2013 at 11:48 AM Subject: [OpenLayers-Users] styling wfs in 2.7? To: openlayers-us...@lists.osgeo.org Cc: openlay...@metacarta.com Protocol.WFS is not supported in 2.7 and this doesn't work. any help appreciated. // create stylemap var my_style = new OpenLayers.StyleMap({ default: new OpenLayers.Style({ pointRadius: 10, fillColor: #ffcc66, strokeColor: #ff9933, strokeWidth: 2, graphicZIndex: 1 }), select: new OpenLayers.Style({ fillColor: #66ccff, strokeColor: #3399ff, graphicZIndex: 2 }) }); // create layer and apply stylemap my_layer = new OpenLayers.Layer.WFS(info, /cgi-bin/info?crs=crs:84, { styleMap: my_style }, { typename: 'search' }, { extractAttributes: true } thanks, jzs ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapcache - WMST and ArcGIS Server
Hello, I added a service from mapcache to ArcGIS Desktop. When I use WMS everything appears fine. However, when I use WMTS the tiles are shifted slightly down from the other GIS layers. The amount of the shift appears to change depending on how zoomed in I am. I was just wondering if anyone knew how to fix this. I am using the mapcache that came bundled with MS4W 3.1 beta (6.2). Thanks Mark Volz, GISP GIS Specialist ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapcache with mapfile as layer
Hello, I've been a Mapserver user for many years now but I'm new to Mapcache and I'm not sure whether it's possible to replicate a particular TileCache setup using Mapcache. What we have today is a number of mapfiles (with Mapserver 5.4) set up as WMS-C layers served with TileCache. We're migrating to Mapserver 6.2.1 and as it's incompatible with TileCache we expect to be able to replace it using Mapcache. In our current setup if I have a mapfile where a particular layer has STATUS OFF then TileCache will honor that status and not render the layer. I'd like to know whether it's possible to have MapCache work that way, that is, passing the map name as the LAYERS parameter of the WMS service and make it honor whatever STATUS a particular layer would have in the mapfile. Thanks in advance, Pablo ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache with mapfile as layer
The problem with that approach is that is the mapfile changes (a layer is added or the default status of a layer changes) then I also have to update mapcache config file. What i wonder is if there is a way to just modify the map and have Mapcache reflecting that change. Pablo On Thu, Sep 19, 2013 at 4:40 PM, Stephen Woodbridge wood...@swoodbridge.com wrote: On 9/19/2013 3:02 PM, Pablo Cecconi wrote: Hello, I've been a Mapserver user for many years now but I'm new to Mapcache and I'm not sure whether it's possible to replicate a particular TileCache setup using Mapcache. What we have today is a number of mapfiles (with Mapserver 5.4) set up as WMS-C layers served with TileCache. We're migrating to Mapserver 6.2.1 and as it's incompatible with TileCache we expect to be able to replace it using Mapcache. In our current setup if I have a mapfile where a particular layer has STATUS OFF then TileCache will honor that status and not render the layer. I'd like to know whether it's possible to have MapCache work that way, that is, passing the map name as the LAYERS parameter of the WMS service and make it honor whatever STATUS a particular layer would have in the mapfile. I think the mapcache paradigm for this in mapcache works like this: tileset name=foo source=foo-source source name=foo-source map=/path/to/mapfile layers=layer1,layer2,layers3,.**.. So you can configure which layers a tileset returns. I'm not sure how it deals with the status off, but it will work if you define the list explicitly. This also allow you to do this in the same mapcache.xml tileset name=foo2 source=foo-source2 source name=foo-source2 map=/path/to/mapfile layers=streets,... transparent=true I do this a lot when I have a subset of data like streets that I want to render as an overly on a raster image -Steve W __**_ mapserver-users mailing list mapserver-users@lists.osgeo.**org mapserver-users@lists.osgeo.org http://lists.osgeo.org/**mailman/listinfo/mapserver-**usershttp://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache with mapfile as layer
On 9/19/2013 3:02 PM, Pablo Cecconi wrote: Hello, I've been a Mapserver user for many years now but I'm new to Mapcache and I'm not sure whether it's possible to replicate a particular TileCache setup using Mapcache. What we have today is a number of mapfiles (with Mapserver 5.4) set up as WMS-C layers served with TileCache. We're migrating to Mapserver 6.2.1 and as it's incompatible with TileCache we expect to be able to replace it using Mapcache. In our current setup if I have a mapfile where a particular layer has STATUS OFF then TileCache will honor that status and not render the layer. I'd like to know whether it's possible to have MapCache work that way, that is, passing the map name as the LAYERS parameter of the WMS service and make it honor whatever STATUS a particular layer would have in the mapfile. I think the mapcache paradigm for this in mapcache works like this: tileset name=foo source=foo-source source name=foo-source map=/path/to/mapfile layers=layer1,layer2,layers3,... So you can configure which layers a tileset returns. I'm not sure how it deals with the status off, but it will work if you define the list explicitly. This also allow you to do this in the same mapcache.xml tileset name=foo2 source=foo-source2 source name=foo-source2 map=/path/to/mapfile layers=streets,... transparent=true I do this a lot when I have a subset of data like streets that I want to render as an overly on a raster image -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache with mapfile as layer
If you modify the mapfile then it invalidates the whole cache for the tileset and you have other maintenance to do on it anyway. I would write a script that does the maintenance of checking the for mapfile changes, deleting the invalid tiles maybe updating the mapcache.xml, etc. -Steve W On 9/19/2013 3:45 PM, Pablo Cecconi wrote: The problem with that approach is that is the mapfile changes (a layer is added or the default status of a layer changes) then I also have to update mapcache config file. What i wonder is if there is a way to just modify the map and have Mapcache reflecting that change. Pablo On Thu, Sep 19, 2013 at 4:40 PM, Stephen Woodbridge wood...@swoodbridge.com mailto:wood...@swoodbridge.com wrote: On 9/19/2013 3:02 PM, Pablo Cecconi wrote: Hello, I've been a Mapserver user for many years now but I'm new to Mapcache and I'm not sure whether it's possible to replicate a particular TileCache setup using Mapcache. What we have today is a number of mapfiles (with Mapserver 5.4) set up as WMS-C layers served with TileCache. We're migrating to Mapserver 6.2.1 and as it's incompatible with TileCache we expect to be able to replace it using Mapcache. In our current setup if I have a mapfile where a particular layer has STATUS OFF then TileCache will honor that status and not render the layer. I'd like to know whether it's possible to have MapCache work that way, that is, passing the map name as the LAYERS parameter of the WMS service and make it honor whatever STATUS a particular layer would have in the mapfile. I think the mapcache paradigm for this in mapcache works like this: tileset name=foo source=foo-source source name=foo-source map=/path/to/mapfile layers=layer1,layer2,layers3,.__.. So you can configure which layers a tileset returns. I'm not sure how it deals with the status off, but it will work if you define the list explicitly. This also allow you to do this in the same mapcache.xml tileset name=foo2 source=foo-source2 source name=foo-source2 map=/path/to/mapfile layers=streets,... transparent=true I do this a lot when I have a subset of data like streets that I want to render as an overly on a raster image -Steve W _ mapserver-users mailing list mapserver-users@lists.osgeo.__org mailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/__mailman/listinfo/mapserver-__users http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache with mapfile as layer
Try it, it might work, I don't remember, but you still have the problem of invalidating the tiles when you changes the mapfile. But seriously, your approach seems a little haphazard. Also how often to you make mapfile changes? how did you deal with the invalidating cache problem before? The big difference here is that mapcache is using mapserver as a WMS source and therefore it has to conform to the WMS rules. Anyway, Thomas is the one that you would need to convince or fund if you want changes to the existing behavior. Meanwhile it would be worthwhile your time to figure out how it curently works before asking for features that might already exist. It has been a few months since I setup a mapcache instance and I know there have been changes that I'm not on top of in the newest release. -Steve On 9/19/2013 3:46 PM, Pablo Cecconi wrote: The problem with that approach is that is the mapfile changes (a layer is added or the default status of a layer changes) then I also have to update mapcache config file. What i wonder is if there is a way to just modify the map and have Mapcache reflecting that change. Pablo On Thu, Sep 19, 2013 at 4:40 PM, Stephen Woodbridge wood...@swoodbridge.com mailto:wood...@swoodbridge.com wrote: On 9/19/2013 3:02 PM, Pablo Cecconi wrote: Hello, I've been a Mapserver user for many years now but I'm new to Mapcache and I'm not sure whether it's possible to replicate a particular TileCache setup using Mapcache. What we have today is a number of mapfiles (with Mapserver 5.4) set up as WMS-C layers served with TileCache. We're migrating to Mapserver 6.2.1 and as it's incompatible with TileCache we expect to be able to replace it using Mapcache. In our current setup if I have a mapfile where a particular layer has STATUS OFF then TileCache will honor that status and not render the layer. I'd like to know whether it's possible to have MapCache work that way, that is, passing the map name as the LAYERS parameter of the WMS service and make it honor whatever STATUS a particular layer would have in the mapfile. I think the mapcache paradigm for this in mapcache works like this: tileset name=foo source=foo-source source name=foo-source map=/path/to/mapfile layers=layer1,layer2,layers3,.__.. So you can configure which layers a tileset returns. I'm not sure how it deals with the status off, but it will work if you define the list explicitly. This also allow you to do this in the same mapcache.xml tileset name=foo2 source=foo-source2 source name=foo-source2 map=/path/to/mapfile layers=streets,... transparent=true I do this a lot when I have a subset of data like streets that I want to render as an overly on a raster image -Steve W _ mapserver-users mailing list mapserver-users@lists.osgeo.__org mailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/__mailman/listinfo/mapserver-__users http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache with mapfile as layer
The problem is not the invalidation of the tiles (which is a very simple step that can even be done with a simple bash script) but the need to list every single layer with status ON on the mapfile. To do that automatically we need to use mapscript (as TileCache does) but we also need to deal with generating a valid mapcache config file (which we cannot do with mapscript). With TileCache instead we just mapped a given layer name with a mapfile and we only had to care about invalidating and reseeding of tiles and not with modifying TileCache config file. It's not so bad though. I just thought that being part of Mapserver maybe MapCache could have some kind of special integration with it. Anyway, I'll continue digging to see if I find some easier way to deal with this particular problem and if I do I promise to let you know. Thanks again. Pablo On Thu, Sep 19, 2013 at 11:00 PM, Pablo Cecconi pcecc...@gmail.com wrote: The problem is not the invalidation of the tiles (which is a very simple step that can even be done with a simple bash script) but the need to list every single layer with status ON on the mapfile. To do that automatically we need to use mapscript (as TileCache does) but we also need to deal with generating a valid mapcache config file (which we cannot do with mapscript). With TileCache instead we just mapped a given layer name with a mapfile and we only had to care about invalidating and reseeding of tiles and not with modifying TileCache config file. It's not so bad though. I just thought that being part of Mapserver maybe MapCache could have some kind of special integration with it. Anyway, I'll continue digging to see if I find some easier way to deal with this particular problem and if I do I promise to let you know. Thanks again. Pablo On Thu, Sep 19, 2013 at 10:18 PM, Stephen Woodbridge wood...@swoodbridge.com wrote: Try it, it might work, I don't remember, but you still have the problem of invalidating the tiles when you changes the mapfile. But seriously, your approach seems a little haphazard. Also how often to you make mapfile changes? how did you deal with the invalidating cache problem before? The big difference here is that mapcache is using mapserver as a WMS source and therefore it has to conform to the WMS rules. Anyway, Thomas is the one that you would need to convince or fund if you want changes to the existing behavior. Meanwhile it would be worthwhile your time to figure out how it curently works before asking for features that might already exist. It has been a few months since I setup a mapcache instance and I know there have been changes that I'm not on top of in the newest release. -Steve On 9/19/2013 3:46 PM, Pablo Cecconi wrote: The problem with that approach is that is the mapfile changes (a layer is added or the default status of a layer changes) then I also have to update mapcache config file. What i wonder is if there is a way to just modify the map and have Mapcache reflecting that change. Pablo On Thu, Sep 19, 2013 at 4:40 PM, Stephen Woodbridge wood...@swoodbridge.com mailto:woodbri@swoodbridge.**comwood...@swoodbridge.com wrote: On 9/19/2013 3:02 PM, Pablo Cecconi wrote: Hello, I've been a Mapserver user for many years now but I'm new to Mapcache and I'm not sure whether it's possible to replicate a particular TileCache setup using Mapcache. What we have today is a number of mapfiles (with Mapserver 5.4) set up as WMS-C layers served with TileCache. We're migrating to Mapserver 6.2.1 and as it's incompatible with TileCache we expect to be able to replace it using Mapcache. In our current setup if I have a mapfile where a particular layer has STATUS OFF then TileCache will honor that status and not render the layer. I'd like to know whether it's possible to have MapCache work that way, that is, passing the map name as the LAYERS parameter of the WMS service and make it honor whatever STATUS a particular layer would have in the mapfile. I think the mapcache paradigm for this in mapcache works like this: tileset name=foo source=foo-source source name=foo-source map=/path/to/mapfile layers=layer1,layer2,layers3,.**__.. So you can configure which layers a tileset returns. I'm not sure how it deals with the status off, but it will work if you define the list explicitly. This also allow you to do this in the same mapcache.xml tileset name=foo2 source=foo-source2 source name=foo-source2 map=/path/to/mapfile layers=streets,... transparent=true I do this a lot when I have a subset of data like streets that I want to render as an overly on a raster image
Re: [mapserver-users] Mapcache with mapfile as layer
Thanks, I would be interested in hearing how you work this out. It might help to remember that mapcache ONLY talks to mapserver via the WMS protocol, NOT the mapserver CGI protocol. This is a big difference from TileCache. Anyway good luck with your efforts. -Steve On 9/19/2013 10:00 PM, Pablo Cecconi wrote: The problem is not the invalidation of the tiles (which is a very simple step that can even be done with a simple bash script) but the need to list every single layer with status ON on the mapfile. To do that automatically we need to use mapscript (as TileCache does) but we also need to deal with generating a valid mapcache config file (which we cannot do with mapscript). With TileCache instead we just mapped a given layer name with a mapfile and we only had to care about invalidating and reseeding of tiles and not with modifying TileCache config file. It's not so bad though. I just thought that being part of Mapserver maybe MapCache could have some kind of special integration with it. Anyway, I'll continue digging to see if I find some easier way to deal with this particular problem and if I do I promise to let you know. Thanks again. Pablo On Thu, Sep 19, 2013 at 10:18 PM, Stephen Woodbridge wood...@swoodbridge.com mailto:wood...@swoodbridge.com wrote: Try it, it might work, I don't remember, but you still have the problem of invalidating the tiles when you changes the mapfile. But seriously, your approach seems a little haphazard. Also how often to you make mapfile changes? how did you deal with the invalidating cache problem before? The big difference here is that mapcache is using mapserver as a WMS source and therefore it has to conform to the WMS rules. Anyway, Thomas is the one that you would need to convince or fund if you want changes to the existing behavior. Meanwhile it would be worthwhile your time to figure out how it curently works before asking for features that might already exist. It has been a few months since I setup a mapcache instance and I know there have been changes that I'm not on top of in the newest release. -Steve On 9/19/2013 3:46 PM, Pablo Cecconi wrote: The problem with that approach is that is the mapfile changes (a layer is added or the default status of a layer changes) then I also have to update mapcache config file. What i wonder is if there is a way to just modify the map and have Mapcache reflecting that change. Pablo On Thu, Sep 19, 2013 at 4:40 PM, Stephen Woodbridge wood...@swoodbridge.com mailto:wood...@swoodbridge.com mailto:woodbri@swoodbridge.__com mailto:wood...@swoodbridge.com wrote: On 9/19/2013 3:02 PM, Pablo Cecconi wrote: Hello, I've been a Mapserver user for many years now but I'm new to Mapcache and I'm not sure whether it's possible to replicate a particular TileCache setup using Mapcache. What we have today is a number of mapfiles (with Mapserver 5.4) set up as WMS-C layers served with TileCache. We're migrating to Mapserver 6.2.1 and as it's incompatible with TileCache we expect to be able to replace it using Mapcache. In our current setup if I have a mapfile where a particular layer has STATUS OFF then TileCache will honor that status and not render the layer. I'd like to know whether it's possible to have MapCache work that way, that is, passing the map name as the LAYERS parameter of the WMS service and make it honor whatever STATUS a particular layer would have in the mapfile. I think the mapcache paradigm for this in mapcache works like this: tileset name=foo source=foo-source source name=foo-source map=/path/to/mapfile layers=layer1,layer2,layers3,... So you can configure which layers a tileset returns. I'm not sure how it deals with the status off, but it will work if you define the list explicitly. This also allow you to do this in the same mapcache.xml tileset name=foo2 source=foo-source2 source name=foo-source2 map=/path/to/mapfile layers=streets,... transparent=true I do this a lot when I have a subset of data like streets that I want to render as an
Re: [mapserver-users] Mapcache with mapfile as layer
Well, maybe I'm not getting it right but it seems to me that this file: https://github.com/mapserver/mapcache/blob/master/lib/source_mapserver.c and this example in the https://github.com/mapserver/mapcache/blob/master/mapcache.xml.sample: source name=osm type=wms http urlhttp://localhost/cgi-bin/mapserv?/url /http getmap params FORMATimage/png/FORMAT LAYERSdefault/LAYERS !--MAP/Users/tbonfort/dev/mapserver-utils/empty.map/MAP-- MAP/Users/tbonfort/dev/mapserver-utils/osm-google.map/MAP /params /getmap /source would suggest that, although not documented, mapcache might be able to talk to mapserver through the cgi protocol if built with the USE_MAPSERVER flag. I can't wait to test it! On Thu, Sep 19, 2013 at 11:08 PM, Stephen Woodbridge wood...@swoodbridge.com wrote: Thanks, I would be interested in hearing how you work this out. It might help to remember that mapcache ONLY talks to mapserver via the WMS protocol, NOT the mapserver CGI protocol. This is a big difference from TileCache. Anyway good luck with your efforts. -Steve On 9/19/2013 10:00 PM, Pablo Cecconi wrote: The problem is not the invalidation of the tiles (which is a very simple step that can even be done with a simple bash script) but the need to list every single layer with status ON on the mapfile. To do that automatically we need to use mapscript (as TileCache does) but we also need to deal with generating a valid mapcache config file (which we cannot do with mapscript). With TileCache instead we just mapped a given layer name with a mapfile and we only had to care about invalidating and reseeding of tiles and not with modifying TileCache config file. It's not so bad though. I just thought that being part of Mapserver maybe MapCache could have some kind of special integration with it. Anyway, I'll continue digging to see if I find some easier way to deal with this particular problem and if I do I promise to let you know. Thanks again. Pablo On Thu, Sep 19, 2013 at 10:18 PM, Stephen Woodbridge wood...@swoodbridge.com mailto:woodbri@swoodbridge.**comwood...@swoodbridge.com wrote: Try it, it might work, I don't remember, but you still have the problem of invalidating the tiles when you changes the mapfile. But seriously, your approach seems a little haphazard. Also how often to you make mapfile changes? how did you deal with the invalidating cache problem before? The big difference here is that mapcache is using mapserver as a WMS source and therefore it has to conform to the WMS rules. Anyway, Thomas is the one that you would need to convince or fund if you want changes to the existing behavior. Meanwhile it would be worthwhile your time to figure out how it curently works before asking for features that might already exist. It has been a few months since I setup a mapcache instance and I know there have been changes that I'm not on top of in the newest release. -Steve On 9/19/2013 3:46 PM, Pablo Cecconi wrote: The problem with that approach is that is the mapfile changes (a layer is added or the default status of a layer changes) then I also have to update mapcache config file. What i wonder is if there is a way to just modify the map and have Mapcache reflecting that change. Pablo On Thu, Sep 19, 2013 at 4:40 PM, Stephen Woodbridge wood...@swoodbridge.com mailto:woodbri@swoodbridge.**comwood...@swoodbridge.com mailto:woodbri@swoodbridge.__**com mailto:woodbri@swoodbridge.**com wood...@swoodbridge.com wrote: On 9/19/2013 3:02 PM, Pablo Cecconi wrote: Hello, I've been a Mapserver user for many years now but I'm new to Mapcache and I'm not sure whether it's possible to replicate a particular TileCache setup using Mapcache. What we have today is a number of mapfiles (with Mapserver 5.4) set up as WMS-C layers served with TileCache. We're migrating to Mapserver 6.2.1 and as it's incompatible with TileCache we expect to be able to replace it using Mapcache. In our current setup if I have a mapfile where a particular layer has STATUS OFF then TileCache will honor that status and not render the layer. I'd like to know whether it's possible to have MapCache work that way, that is, passing the map name as the LAYERS parameter of the WMS service and make it honor