[mapserver-users] Feature select performance
Hi all I have rigged up a webGIS app (P.Mapper framework) where one of the underlying datasets is a model grid (many thousand cells) in a shapefile. The data displays nice and quick when just viewing, but if I allow the user to select say 5000 cells it is very (extremely) slow to redraw with the highlighted cells. Doing the same task in a very old ArcGIS server web app was much quicker (admittedly the data was in SDE/MS SQL). So my question is what is the best way to improve performance - would just transferring the shapefile to to say a MS SQL 2005 db with the MSSQLSPATIAL add-on be a good step or is there are better way to present the data in the Map file? Many thanks Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver tile generation - google maps
For reference sake: The issue is also present when using Bing maps as overlay. I also recompiled mapserver against agg 2.5 and gd-2.0.36RC1, but no change unfortunately. As stated in my previous mail, I may have to look for alternatives as the tilecache will probably not be an option for us. Would it be possible to circumvent this problem by using WMS? On 24 August 2010 07:25, Wim Vanbelle wimvanbe...@gmail.com wrote: Hi, Thank you for your time both. Wouldn't using tilecache imply that I can no longer use dynamic data? My tiles have to update every minute. Perhaps this is possible with tilecache? Basically it's only the color value that changes for each object. An example request that is sent to mapserver: http:// ...maps?map=/.../white.maplayers=%20mode=tiletilemode=gmaptile=264+172+9 MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My mapfile is configured like this: OUTPUTFORMAT NAME AGGPNG DRIVER AGG/PNG EXTENSION png MIMETYPE image/png;mode=24bit; IMAGEMODE RGBA FORMATOPTION INTERLACE=false FORMATOPTION QUANTIZE_NEW=ON FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=ON FORMATOPTION QUANTIZE_COLORS=256 END Although I've used GD as well. Not sure how I can check the GD AGG versions. I was in the process of making a new build for mapserver with the lastest versions of everything though. I'll let you know if that would somehow fix the problem. On 24 August 2010 06:45, Stephen Woodbridge wood...@swoodbridge.comwrote: If you are using mode=tile, then this is a known limitation on the mapserver side. There is a plan for 6.0 to add tilecache support to mapserver that would allow you to generate meta tiles and chop the tiles into a tilecache which is the way to resolve the artifacts you are seeing. http://trac.osgeo.org/mapserver/ticket/3513 You can add yourself the CC on this bug if you want to follow it. There is also an RFC for the mode=tile which I don't have handy that should give you more information on the limitations and feature of that. Hope this helps, -Steve W On 8/24/2010 12:34 AM, Lime, Steve D (DNR) wrote: What mapserver version, what graphics driver? Is this using mode=tile? Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle [wimvanbe...@gmail.com] Sent: Friday, August 20, 2010 6:26 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Mapserver tile generation - google maps Hi all, I noticed a similar post regarding symbol issues, but there was no solution. My Google maps tiles are currently clipped at the tile itself. This results in rather unwanted behaviour: http://fileshare.myroute.be/exchange/Capture.PNG I'm not 100% sure that this is mapservers' 'issue' , or google maps issue. If anyone would have further tips to spice up the graphics even more, I'd be more than glad to hear them :). Thanks. Wim ___ mapserver-users mailing list mapserver-users@lists.osgeo.org 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
[mapserver-users] mapfile text modification via URL
Hello all, I'm having difficulties changing mapfile trough url with mapserver 5.6.5. This is my layer: LAYER NAME test STATUS DEFAULT LABELCACHE OFF TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 300 300 END END CLASS TEXT 'test' COLOR -1 -1 -1 LABEL COLOR 000 000 000 OUTLINECOLOR 255 255 255 SIZE MEDIUM END END END This is my query: http://localhost/cgi-bin/mapserv?mode=mapmap=test.mapmap.layer[test].class[0]=text+'hello' ...And this is my error message: :-) [Tue Aug 24 12:43:43 2010].949611 msValidateParameter(): Regular expression error. Parameter pattern validation failed. [Tue Aug 24 12:43:43 2010].949665 loadClass(): General error message. URL-based TEXT configuration failed pattern validation. I found RFC 44 (http://mapserver.org/development/rfc/ms-rfc-44.html) and bug #2971 (http://trac.osgeo.org/mapserver/ticket/2971). I have tried adding a VALIDATION block to my layer: VALIDATION text '^[a-zA-Z\-]+$' END Now, i'm getting this different error message: [Tue Aug 24 12:41:52 2010].243629 loadHashTable(): Unknown identifier. Parsing error near (text):(line 36) [Tue Aug 24 12:41:52 2010].243675 msFreeMap(): freeing map at 0x690420. How do you change text through url? Thanks, Paco Regodón ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Feature select performance
How is the selection done? How is the highlighting done? Those processes will really impact performance depending on how things are implemented. Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Jackson [webturt...@gmail.com] Sent: Tuesday, August 24, 2010 3:19 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Feature select performance Hi all I have rigged up a webGIS app (P.Mapper framework) where one of the underlying datasets is a model grid (many thousand cells) in a shapefile. The data displays nice and quick when just viewing, but if I allow the user to select say 5000 cells it is very (extremely) slow to redraw with the highlighted cells. Doing the same task in a very old ArcGIS server web app was much quicker (admittedly the data was in SDE/MS SQL). So my question is what is the best way to improve performance - would just transferring the shapefile to to say a MS SQL 2005 db with the MSSQLSPATIAL add-on be a good step or is there are better way to present the data in the Map file? Many thanks Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver tile generation - google maps
Tilecache probably is not what you want if you have very dynamic tiles. Or at least a tile cache that is persistent. Your problem is with tile edge artifacts. It might be possible to draw on a slightly larger image than the tile, then cut the tile out of it to avoid some of those, but there are some tile artifacts that you can not get away from when you draw single tiles, like label positioning and label thinning over multiple tiles. For an alternative, you might look to mapscript where you could have more programmatic control over the rendering and do things like render a larger image than needed and cut out the tile like I mentioned. You might also write a bug against mode=tile and see what the developer response to that might be. -Steve W On 8/24/2010 8:04 AM, Wim Vanbelle wrote: For reference sake: The issue is also present when using Bing maps as overlay. I also recompiled mapserver against agg 2.5 and gd-2.0.36RC1, but no change unfortunately. As stated in my previous mail, I may have to look for alternatives as the tilecache will probably not be an option for us. Would it be possible to circumvent this problem by using WMS? On 24 August 2010 07:25, Wim Vanbelle wimvanbe...@gmail.com mailto:wimvanbe...@gmail.com wrote: Hi, Thank you for your time both. Wouldn't using tilecache imply that I can no longer use dynamic data? My tiles have to update every minute. Perhaps this is possible with tilecache? Basically it's only the color value that changes for each object. An example request that is sent to mapserver: http://...maps?map=/.../white.maplayers=%20mode=tiletilemode=gmaptile=264+172+9 MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My mapfile is configured like this: OUTPUTFORMAT NAME AGGPNG DRIVER AGG/PNG EXTENSION png MIMETYPE image/png;mode=24bit; IMAGEMODE RGBA FORMATOPTION INTERLACE=false FORMATOPTION QUANTIZE_NEW=ON FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=ON FORMATOPTION QUANTIZE_COLORS=256 END Although I've used GD as well. Not sure how I can check the GD AGG versions. I was in the process of making a new build for mapserver with the lastest versions of everything though. I'll let you know if that would somehow fix the problem. On 24 August 2010 06:45, Stephen Woodbridge wood...@swoodbridge.com mailto:wood...@swoodbridge.com wrote: If you are using mode=tile, then this is a known limitation on the mapserver side. There is a plan for 6.0 to add tilecache support to mapserver that would allow you to generate meta tiles and chop the tiles into a tilecache which is the way to resolve the artifacts you are seeing. http://trac.osgeo.org/mapserver/ticket/3513 You can add yourself the CC on this bug if you want to follow it. There is also an RFC for the mode=tile which I don't have handy that should give you more information on the limitations and feature of that. Hope this helps, -Steve W On 8/24/2010 12:34 AM, Lime, Steve D (DNR) wrote: What mapserver version, what graphics driver? Is this using mode=tile? Steve From: mapserver-users-boun...@lists.osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle [wimvanbe...@gmail.com mailto:wimvanbe...@gmail.com] Sent: Friday, August 20, 2010 6:26 AM To: mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org Subject: [mapserver-users] Mapserver tile generation - google maps Hi all, I noticed a similar post regarding symbol issues, but there was no solution. My Google maps tiles are currently clipped at the tile itself. This results in rather unwanted behaviour: http://fileshare.myroute.be/exchange/Capture.PNG I'm not 100% sure that this is mapservers' 'issue' , or google maps issue. If anyone would have further tips to spice up the graphics
RE: [mapserver-users] Mapserver tile generation - google maps
What's the chance of getting a simple test case to demonstrate the problem? Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge [wood...@swoodbridge.com] Sent: Tuesday, August 24, 2010 8:43 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Mapserver tile generation - google maps Tilecache probably is not what you want if you have very dynamic tiles. Or at least a tile cache that is persistent. Your problem is with tile edge artifacts. It might be possible to draw on a slightly larger image than the tile, then cut the tile out of it to avoid some of those, but there are some tile artifacts that you can not get away from when you draw single tiles, like label positioning and label thinning over multiple tiles. For an alternative, you might look to mapscript where you could have more programmatic control over the rendering and do things like render a larger image than needed and cut out the tile like I mentioned. You might also write a bug against mode=tile and see what the developer response to that might be. -Steve W On 8/24/2010 8:04 AM, Wim Vanbelle wrote: For reference sake: The issue is also present when using Bing maps as overlay. I also recompiled mapserver against agg 2.5 and gd-2.0.36RC1, but no change unfortunately. As stated in my previous mail, I may have to look for alternatives as the tilecache will probably not be an option for us. Would it be possible to circumvent this problem by using WMS? On 24 August 2010 07:25, Wim Vanbelle wimvanbe...@gmail.com mailto:wimvanbe...@gmail.com wrote: Hi, Thank you for your time both. Wouldn't using tilecache imply that I can no longer use dynamic data? My tiles have to update every minute. Perhaps this is possible with tilecache? Basically it's only the color value that changes for each object. An example request that is sent to mapserver: http://...maps?map=/.../white.maplayers=%20mode=tiletilemode=gmaptile=264+172+9 MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My mapfile is configured like this: OUTPUTFORMAT NAME AGGPNG DRIVER AGG/PNG EXTENSION png MIMETYPE image/png;mode=24bit; IMAGEMODE RGBA FORMATOPTION INTERLACE=false FORMATOPTION QUANTIZE_NEW=ON FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=ON FORMATOPTION QUANTIZE_COLORS=256 END Although I've used GD as well. Not sure how I can check the GD AGG versions. I was in the process of making a new build for mapserver with the lastest versions of everything though. I'll let you know if that would somehow fix the problem. On 24 August 2010 06:45, Stephen Woodbridge wood...@swoodbridge.com mailto:wood...@swoodbridge.com wrote: If you are using mode=tile, then this is a known limitation on the mapserver side. There is a plan for 6.0 to add tilecache support to mapserver that would allow you to generate meta tiles and chop the tiles into a tilecache which is the way to resolve the artifacts you are seeing. http://trac.osgeo.org/mapserver/ticket/3513 You can add yourself the CC on this bug if you want to follow it. There is also an RFC for the mode=tile which I don't have handy that should give you more information on the limitations and feature of that. Hope this helps, -Steve W On 8/24/2010 12:34 AM, Lime, Steve D (DNR) wrote: What mapserver version, what graphics driver? Is this using mode=tile? Steve From: mapserver-users-boun...@lists.osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Wim Vanbelle [wimvanbe...@gmail.com mailto:wimvanbe...@gmail.com] Sent: Friday, August 20, 2010 6:26 AM To: mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org Subject: [mapserver-users] Mapserver tile generation - google maps Hi
Re: [mapserver-users] Mapserver tile generation - google maps
Hi Wim, If your data is that dynamic then there is not much advantage in using tilecache. Perhaps there is not much advantage in making tiled requests either. Applications asking for 256x256 pixel sized tiles from on-demand bases are generating rather a lot of load for Mapserver. There is an advantage on the user side because tiles are cached on the client side and panning is fluent. However, the feeling is not necessarily bad even if the client is making single tile WMS requests. With OpenLayers single tile requests used together with transition effect resize is not bad at all. Perhaps Google maps and Bing have some similar modes. Rendering and labeling problems should go away by using single tiles. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Stephen Woodbridge Lähetetty: 24. elokuuta 2010 16:43 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Mapserver tile generation - google maps Tilecache probably is not what you want if you have very dynamic tiles. Or at least a tile cache that is persistent. Your problem is with tile edge artifacts. It might be possible to draw on a slightly larger image than the tile, then cut the tile out of it to avoid some of those, but there are some tile artifacts that you can not get away from when you draw single tiles, like label positioning and label thinning over multiple tiles. For an alternative, you might look to mapscript where you could have more programmatic control over the rendering and do things like render a larger image than needed and cut out the tile like I mentioned. You might also write a bug against mode=tile and see what the developer response to that might be. -Steve W On 8/24/2010 8:04 AM, Wim Vanbelle wrote: For reference sake: The issue is also present when using Bing maps as overlay. I also recompiled mapserver against agg 2.5 and gd-2.0.36RC1, but no change unfortunately. As stated in my previous mail, I may have to look for alternatives as the tilecache will probably not be an option for us. Would it be possible to circumvent this problem by using WMS? On 24 August 2010 07:25, Wim Vanbelle wimvanbe...@gmail.com mailto:wimvanbe...@gmail.com wrote: Hi, Thank you for your time both. Wouldn't using tilecache imply that I can no longer use dynamic data? My tiles have to update every minute. Perhaps this is possible with tilecache? Basically it's only the color value that changes for each object. An example request that is sent to mapserver: http://...maps?map=/.../white.maplayers=%20mode=tiletilemod e=gmaptile=264+172+9 MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My mapfile is configured like this: OUTPUTFORMAT NAME AGGPNG DRIVER AGG/PNG EXTENSION png MIMETYPE image/png;mode=24bit; IMAGEMODE RGBA FORMATOPTION INTERLACE=false FORMATOPTION QUANTIZE_NEW=ON FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=ON FORMATOPTION QUANTIZE_COLORS=256 END Although I've used GD as well. Not sure how I can check the GD AGG versions. I was in the process of making a new build for mapserver with the lastest versions of everything though. I'll let you know if that would somehow fix the problem. On 24 August 2010 06:45, Stephen Woodbridge wood...@swoodbridge.com mailto:wood...@swoodbridge.com wrote: If you are using mode=tile, then this is a known limitation on the mapserver side. There is a plan for 6.0 to add tilecache support to mapserver that would allow you to generate meta tiles and chop the tiles into a tilecache which is the way to resolve the artifacts you are seeing. http://trac.osgeo.org/mapserver/ticket/3513 You can add yourself the CC on this bug if you want to follow it. There is also an RFC for the mode=tile which I don't have handy that should give you more information on the limitations and feature of that. Hope this helps, -Steve W On 8/24/2010 12:34 AM,
Re: [mapserver-users] Feature select performance
Steve The selection of layer data is done by a bounding box, though querying by parameter values is just as slow. The mapfile is directly calling up the shapefile (I had just followed the P.Mapper examples of displaying/querying shapefiles directly). So probably the answers to those questions lie under the hood of P.Mapper, which I assume is using the PHP mapscript.dll to do the work. Is the direct query to shapefile approach v.efficient for larger datasets..?. Ignoring the app I am using what is a good approach to large feature datasets from a MapServer perspective? Thanks Chris On 24 August 2010 14:27, Lime, Steve D (DNR) steve.l...@state.mn.us wrote: How is the selection done? How is the highlighting done? Those processes will really impact performance depending on how things are implemented. Steve From: mapserver-users-boun...@lists.osgeo.org [ mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chris Jackson [ webturt...@gmail.com] Sent: Tuesday, August 24, 2010 3:19 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Feature select performance Hi all I have rigged up a webGIS app (P.Mapper framework) where one of the underlying datasets is a model grid (many thousand cells) in a shapefile. The data displays nice and quick when just viewing, but if I allow the user to select say 5000 cells it is very (extremely) slow to redraw with the highlighted cells. Doing the same task in a very old ArcGIS server web app was much quicker (admittedly the data was in SDE/MS SQL). So my question is what is the best way to improve performance - would just transferring the shapefile to to say a MS SQL 2005 db with the MSSQLSPATIAL add-on be a good step or is there are better way to present the data in the Map file? Many thanks Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] projecting in degrees
My understanding of spatial reference systems(SRS) is that the units of the utilized by the SRS are inherently part of the definition. When data is projected to a particular SRS, the units are set by that SRS. It sounds like you are looking for some sort of cylindrical based SRS Maybe Miller Cylindrical (except units are in meters)? http://www.colorado.edu/geography/gcraft/notes/mapproj/gif/millerc.gif http://spatialreference.org/ref/esri/54003/ Maybe straight unprojected lat long? http://www.colorado.edu/geography/gcraft/notes/mapproj/gif/unproj.gif You can possibly handle the conversion of extents on the client side. Your annotations could be handled in 'degrees' by defining input projections for your layers and an output projection for your map. Your annotation layer could be in geographic coords and the annotation points would be projected by MapServer. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Josh Jordan Sent: Friday, August 20, 2010 7:20 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] projecting in degrees I have shapefiles that are stored in degrees and they are displayed in degrees if there are no projections in the mapfile. When displayed like this, they look like UTM world projection. However, I need to display it in old style mercator where greenland is really big. I can get mapserver to project as mercator, but it always converts to meters. I would like to project my shapefiles in degrees. Is this possible? I need to because I handle extents and annotation points in degrees. Thanks. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver tile generation - google maps
I have a solution to this, a client had exactly the same problem. Wanting to use tile mode, but not wanting caching, and wanting meta-tile flavored rendering results. Here is the ticket: http://trac.osgeo.org/mapserver/ticket/3323 Note that basically you render and throw away a whole metatile for every tile you output -- the system is stateless. So it's best to keep the metatiles small (2x2). But if you have the horsepower to throw at it you can get real-time metatiled output. P. On Tue, Aug 24, 2010 at 6:59 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi Wim, If your data is that dynamic then there is not much advantage in using tilecache. Perhaps there is not much advantage in making tiled requests either. Applications asking for 256x256 pixel sized tiles from on-demand bases are generating rather a lot of load for Mapserver. There is an advantage on the user side because tiles are cached on the client side and panning is fluent. However, the feeling is not necessarily bad even if the client is making single tile WMS requests. With OpenLayers single tile requests used together with transition effect resize is not bad at all. Perhaps Google maps and Bing have some similar modes. Rendering and labeling problems should go away by using single tiles. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Stephen Woodbridge Lähetetty: 24. elokuuta 2010 16:43 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Mapserver tile generation - google maps Tilecache probably is not what you want if you have very dynamic tiles. Or at least a tile cache that is persistent. Your problem is with tile edge artifacts. It might be possible to draw on a slightly larger image than the tile, then cut the tile out of it to avoid some of those, but there are some tile artifacts that you can not get away from when you draw single tiles, like label positioning and label thinning over multiple tiles. For an alternative, you might look to mapscript where you could have more programmatic control over the rendering and do things like render a larger image than needed and cut out the tile like I mentioned. You might also write a bug against mode=tile and see what the developer response to that might be. -Steve W On 8/24/2010 8:04 AM, Wim Vanbelle wrote: For reference sake: The issue is also present when using Bing maps as overlay. I also recompiled mapserver against agg 2.5 and gd-2.0.36RC1, but no change unfortunately. As stated in my previous mail, I may have to look for alternatives as the tilecache will probably not be an option for us. Would it be possible to circumvent this problem by using WMS? On 24 August 2010 07:25, Wim Vanbelle wimvanbe...@gmail.com mailto:wimvanbe...@gmail.com wrote: Hi, Thank you for your time both. Wouldn't using tilecache imply that I can no longer use dynamic data? My tiles have to update every minute. Perhaps this is possible with tilecache? Basically it's only the color value that changes for each object. An example request that is sent to mapserver: http://...maps?map=/.../white.maplayers=%20mode=tiletilemod e=gmaptile=264+172+9 MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My mapfile is configured like this: OUTPUTFORMAT NAME AGGPNG DRIVER AGG/PNG EXTENSION png MIMETYPE image/png;mode=24bit; IMAGEMODE RGBA FORMATOPTION INTERLACE=false FORMATOPTION QUANTIZE_NEW=ON FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=ON FORMATOPTION QUANTIZE_COLORS=256 END Although I've used GD as well. Not sure how I can check the GD AGG versions. I was in the process of making a new build for mapserver with the lastest versions of everything though. I'll let you know if that would somehow fix the problem. On 24 August 2010 06:45, Stephen Woodbridge wood...@swoodbridge.com mailto:wood...@swoodbridge.com wrote: If you are using mode=tile, then this is a known limitation on the mapserver side. There is a plan for 6.0 to add tilecache support to mapserver that would
[mapserver-users] Using MapServer for Variable Data Printing
Sorry if this has been asked. I do not recognize the user group system used here and cannot figure out how to search. I am looking for a way to create JPG or PNG files using variable data that will be used in printing out postcards. Check out (http://www.variablemaps.com/) for an example. We are an in-house print shop, so I am looking to do this in-house as well (versus using someone else's service). Will MapServer/OpenMap provide me with a way in connection with SQL Server 2008 to create on the fly images for variable data maps? If so, can you direct me to the how-to in order to get started with this? If not, what should I be looking for that would do the same? I know Google has a service similar but we are looking at well over a thousand maps that would be created for a particular postcard and will continue throughout a specified time. Thanks. Jeff Harlow Network Administrator Wright's Media 2407 Timberloch Pl. Ste. B The Woodlands, TX 77380 http://www.wrightsmedia.com http://www.wrightsmedia.com/ P: 281.419.5725 F: 281.419.5712 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] projecting in degrees
Thanks for the suggestions. I am able to reproject my maps with mapserver. I found out what projection my maps started in by reprojecting in QGIS, it filled in the starting projection. Either it calculated what that projection was, or it was the default. Then, wherever my site modified coordinates in the mapfile, I used cs2cs to convert meters to degrees first. Alaska wraps so I had to change starting longitude to -40. All works good now! --- On Tue, 8/24/10, Fawcett, David (MPCA) david.fawc...@state.mn.us wrote: From: Fawcett, David (MPCA) david.fawc...@state.mn.us Subject: RE: [mapserver-users] projecting in degrees To: Josh Jordan outerspacema...@yahoo.com, mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org Date: Tuesday, August 24, 2010, 12:10 PM My understanding of spatial reference systems(SRS) is that the units of the utilized by the SRS are inherently part of the definition. When data is projected to a particular SRS, the units are set by that SRS. It sounds like you are looking for some sort of cylindrical based SRS Maybe Miller Cylindrical (except units are in meters)? http://www.colorado.edu/geography/gcraft/notes/mapproj/gif/millerc.gif http://spatialreference.org/ref/esri/54003/ Maybe straight unprojected lat long? http://www.colorado.edu/geography/gcraft/notes/mapproj/gif/unproj.gif You can possibly handle the conversion of extents on the client side. Your annotations could be handled in ‘degrees’ by defining input projections for your layers and an output projection for your map. Your annotation layer could be in geographic coords and the annotation points would be projected by MapServer. David. From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Josh Jordan Sent: Friday, August 20, 2010 7:20 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] projecting in degrees I have shapefiles that are stored in degrees and they are displayed in degrees if there are no projections in the mapfile. When displayed like this, they look like UTM world projection. However, I need to display it in old style mercator where greenland is really big. I can get mapserver to project as mercator, but it always converts to meters. I would like to project my shapefiles in degrees. Is this possible? I need to because I handle extents and annotation points in degrees. Thanks. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Using MapServer for Variable Data Printing
Yep, it can be done. I'm afraid a how to on your specific problem is well beyond the scope of an e-mail list response, but if you take the time to learn MapServer you'll find you can generate the images you want to embed in your mailings. Based on your website it seems like doing so would be core technology you would already have! :) (One thing on your website that mapserver won't provide is routing, you'll need to add in other technology to generate point-to-point routes and geocoded place markers, either calling web services, or installing your own systems like pgrouting and geocoder.us) P On Tue, Aug 24, 2010 at 9:50 AM, Jeff Harlow jhar...@wrightsmedia.com wrote: Sorry if this has been asked. I do not recognize the user group system used here and cannot figure out how to search. I am looking for a way to create JPG or PNG files using variable data that will be used in printing out postcards. Check out (http://www.variablemaps.com/) for an example. We are an in-house print shop, so I am looking to do this in-house as well (versus using someone else’s service). Will MapServer/OpenMap provide me with a way in connection with SQL Server 2008 to create on the fly images for variable data maps? If so, can you direct me to the how-to in order to get started with this? If not, what should I be looking for that would do the same? I know Google has a service similar but we are looking at well over a thousand maps that would be created for a particular postcard and will continue throughout a specified time. Thanks. Jeff Harlow Network Administrator Wright’s Media 2407 Timberloch Pl. Ste. B The Woodlands, TX 77380 http://www.wrightsmedia.com P: 281.419.5725 F: 281.419.5712 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org 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] Using MapServer for Variable Data Printing
Sorry the link is from a 3rd party provider, not us. I want to make something internal that does the same thing. Doing a Google search, I find tons on companies doing this but nothing on how to do it internally. The routing ptp would be part of the final product. I will check on geocoder.us and see what I can find. I am having a rough time locating any information on how to make this happen. Thanks. Jeff Harlow Network Administrator Wright's Media 2407 Timberloch Pl. Ste. B The Woodlands, TX 77380 http://www.wrightsmedia.com P: 281.419.5725 F: 281.419.5712 -Original Message- From: pram...@cleverelephant.ca [mailto:pram...@cleverelephant.ca] On Behalf Of Paul Ramsey Sent: Tuesday, August 24, 2010 12:16 PM To: Jeff Harlow Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Using MapServer for Variable Data Printing Yep, it can be done. I'm afraid a how to on your specific problem is well beyond the scope of an e-mail list response, but if you take the time to learn MapServer you'll find you can generate the images you want to embed in your mailings. Based on your website it seems like doing so would be core technology you would already have! :) (One thing on your website that mapserver won't provide is routing, you'll need to add in other technology to generate point-to-point routes and geocoded place markers, either calling web services, or installing your own systems like pgrouting and geocoder.us) P On Tue, Aug 24, 2010 at 9:50 AM, Jeff Harlow jhar...@wrightsmedia.com wrote: Sorry if this has been asked. I do not recognize the user group system used here and cannot figure out how to search. I am looking for a way to create JPG or PNG files using variable data that will be used in printing out postcards. Check out (http://www.variablemaps.com/) for an example. We are an in-house print shop, so I am looking to do this in-house as well (versus using someone else's service). Will MapServer/OpenMap provide me with a way in connection with SQL Server 2008 to create on the fly images for variable data maps? If so, can you direct me to the how-to in order to get started with this? If not, what should I be looking for that would do the same? I know Google has a service similar but we are looking at well over a thousand maps that would be created for a particular postcard and will continue throughout a specified time. Thanks. Jeff Harlow Network Administrator Wright's Media 2407 Timberloch Pl. Ste. B The Woodlands, TX 77380 http://www.wrightsmedia.com P: 281.419.5725 F: 281.419.5712 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org 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] Using MapServer for Variable Data Printing
Jeff, Here is a high level overview of what you need to do: You will likely need tools for: 1. geocoding 2. routing 3. mapping And you will need data to power each of these for the quality and coverage area that your are interested. Then you will need to glue these together into an application that allows you or a user to define a print map or family of maps as in a mailer where each map is a template using a unique address or location like in a mail merge. Each tools above will have its own issues and learning curve. Part of your difficultly finding information is that this is a specific use application and those that exist were probably purpose built. So it you want to build it yourself, then I might think about starting with OpenLayers and using some existing webservices to get started building you application. Then you can migrate the webservices over to your own internal tools as you need to. shameless plug You could also look at http://imaptools.com/ for geocoding, routing, and mapping solutions that you could drop into you application on the server side. I'm sure there are others that have similar offerings. /shameless plug Hope this helps with the overall context. -Steve W On 8/24/2010 1:44 PM, Jeff Harlow wrote: Sorry the link is from a 3rd party provider, not us. I want to make something internal that does the same thing. Doing a Google search, I find tons on companies doing this but nothing on how to do it internally. The routing ptp would be part of the final product. I will check on geocoder.us and see what I can find. I am having a rough time locating any information on how to make this happen. Thanks. Jeff Harlow Network Administrator Wright's Media 2407 Timberloch Pl. Ste. B The Woodlands, TX 77380 http://www.wrightsmedia.com P: 281.419.5725 F: 281.419.5712 -Original Message- From: pram...@cleverelephant.ca [mailto:pram...@cleverelephant.ca] On Behalf Of Paul Ramsey Sent: Tuesday, August 24, 2010 12:16 PM To: Jeff Harlow Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Using MapServer for Variable Data Printing Yep, it can be done. I'm afraid a how to on your specific problem is well beyond the scope of an e-mail list response, but if you take the time to learn MapServer you'll find you can generate the images you want to embed in your mailings. Based on your website it seems like doing so would be core technology you would already have! :) (One thing on your website that mapserver won't provide is routing, you'll need to add in other technology to generate point-to-point routes and geocoded place markers, either calling web services, or installing your own systems like pgrouting and geocoder.us) P On Tue, Aug 24, 2010 at 9:50 AM, Jeff Harlowjhar...@wrightsmedia.com wrote: Sorry if this has been asked. I do not recognize the user group system used here and cannot figure out how to search. I am looking for a way to create JPG or PNG files using variable data that will be used in printing out postcards. Check out (http://www.variablemaps.com/) for an example. We are an in-house print shop, so I am looking to do this in-house as well (versus using someone else's service). Will MapServer/OpenMap provide me with a way in connection with SQL Server 2008 to create on the fly images for variable data maps? If so, can you direct me to the how-to in order to get started with this? If not, what should I be looking for that would do the same? I know Google has a service similar but we are looking at well over a thousand maps that would be created for a particular postcard and will continue throughout a specified time. Thanks. Jeff Harlow Network Administrator Wright's Media 2407 Timberloch Pl. Ste. B The Woodlands, TX 77380 http://www.wrightsmedia.com P: 281.419.5725 F: 281.419.5712 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org 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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver tile generation - google maps
Hi, At first I did try with single full page requests to mapserver. However we do intend to have a fullscreen map available for our customers. Which means it will at least render 1024*768 png's. That would indicate that panning/scrolling behaviour will not be fluent, as you have indicated. We're quite pleased with the current tiling output and performance. Perhaps I will need to write a proxy that translates tiles to actual boundary requests and then add some buffer space there. Or take a look at Paul's reply :). I'll try some things tomorrow if I have the time. On 24 August 2010 15:59, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi Wim, If your data is that dynamic then there is not much advantage in using tilecache. Perhaps there is not much advantage in making tiled requests either. Applications asking for 256x256 pixel sized tiles from on-demand bases are generating rather a lot of load for Mapserver. There is an advantage on the user side because tiles are cached on the client side and panning is fluent. However, the feeling is not necessarily bad even if the client is making single tile WMS requests. With OpenLayers single tile requests used together with transition effect resize is not bad at all. Perhaps Google maps and Bing have some similar modes. Rendering and labeling problems should go away by using single tiles. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Stephen Woodbridge Lähetetty: 24. elokuuta 2010 16:43 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Mapserver tile generation - google maps Tilecache probably is not what you want if you have very dynamic tiles. Or at least a tile cache that is persistent. Your problem is with tile edge artifacts. It might be possible to draw on a slightly larger image than the tile, then cut the tile out of it to avoid some of those, but there are some tile artifacts that you can not get away from when you draw single tiles, like label positioning and label thinning over multiple tiles. For an alternative, you might look to mapscript where you could have more programmatic control over the rendering and do things like render a larger image than needed and cut out the tile like I mentioned. You might also write a bug against mode=tile and see what the developer response to that might be. -Steve W On 8/24/2010 8:04 AM, Wim Vanbelle wrote: For reference sake: The issue is also present when using Bing maps as overlay. I also recompiled mapserver against agg 2.5 and gd-2.0.36RC1, but no change unfortunately. As stated in my previous mail, I may have to look for alternatives as the tilecache will probably not be an option for us. Would it be possible to circumvent this problem by using WMS? On 24 August 2010 07:25, Wim Vanbelle wimvanbe...@gmail.com mailto:wimvanbe...@gmail.com wrote: Hi, Thank you for your time both. Wouldn't using tilecache imply that I can no longer use dynamic data? My tiles have to update every minute. Perhaps this is possible with tilecache? Basically it's only the color value that changes for each object. An example request that is sent to mapserver: http://...maps?map=/.../white.maplayers=%20mode=tiletilemod e=gmaptile=264+172+9 MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My mapfile is configured like this: OUTPUTFORMAT NAME AGGPNG DRIVER AGG/PNG EXTENSION png MIMETYPE image/png;mode=24bit; IMAGEMODE RGBA FORMATOPTION INTERLACE=false FORMATOPTION QUANTIZE_NEW=ON FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=ON FORMATOPTION QUANTIZE_COLORS=256 END Although I've used GD as well. Not sure how I can check the GD AGG versions. I was in the process of making a new build for mapserver with the lastest versions of everything though. I'll let you know if that would somehow fix the problem. On 24 August 2010 06:45, Stephen Woodbridge wood...@swoodbridge.com mailto:wood...@swoodbridge.com wrote: If
[mapserver-users] RGBA transparent images?
If I want to generate RGBA transparent images using AGG, what should my OUTPUTFORMAT block look like? I was using this one for 8-bit images, but the anti aliasing was creating blackish artifacts along the rendered lines. Is there a way to avoid them? OUTPUTFORMAT NAME agg_qn DRIVER AGG/PNG EXTENSION png MIMETYPE image/png IMAGEMODE RGBA TRANSPARENT ON FORMATOPTION INTERLACE=false FORMATOPTION QUANTIZE_NEW=ON FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=OFF FORMATOPTION QUANTIZE_COLORS=37 FORMATOPTION TRANSPARENT=ON END Trying 32bit RGBA: IMAGECOLOR 0 0 0 OUTPUTFORMAT NAME agg_qn DRIVER AGG/PNG EXTENSION png MIMETYPE image/png IMAGEMODE RGBA TRANSPARENT ON FORMATOPTION TRANSPARENT=ON END Generated black backgrounds and not transparent. Is it as simple as removing the IMAGECOLOR? I didn't try that. -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WMS through https and basic auth for QGIS
Hi, I am trying to connect to a remote wms server from QGIS using https with basic authentication. QGIS version is 1.5.0-4.3 for x86_64 on opensuse 11.3 (rpm from Application:Geo repo). I have not been successful using the Layer Add WMS Layer tool in QGIS. Ticket #2892 appears to refer to this issue. It looks like this will be fixed in QGIS 1.6.0. This is a show-stopper for me, in encouraging colleagues to use this software. I have come up with a workaround for a **secure** internal network, using mapserver wms client. It might be useful to others. URL: http://localhost/cgi-bin/mapserv?map=myproxy.map Mapfile: /srv/www/cgi-bin/myproxy.map MAP NAME MyProxy PROJECTION init=epsg:1234 END WEB METADATA wms_title Proxy for external https server END IMAGEPATH /tmp/ms_tmp/ # check that this is writeable by mapserver IMAGEURL /ms_tmp END LAYER NAME MyRemoteLayer TYPE RASTER STATUS ON CONNECTION https://path/to/server?; CONNECTIONTYPE WMS METADATA wms_title MyRemoteLayer wms_extent 418829.9650 511786.6808 786046.9273 964701.5937 # extents from http://spatialreference.org/ref/epsg/1234/ wms_auth_type basic wms_auth_username XX # username here wms_auth_password YY # password here wms_srs EPSG:1234 wms_nameRemote LayerNameFromCapabilities wms_server_version 1.1.1 wms_format image/jpeg END END END Vincent Hussey ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Working with shapefiles in PHP
Regarding my previous query regarding tools to work with shapefiles in PHP, ive written a progress report, that might be useful to other passing PHP GIS newcomers. http://www.webspaces.net.nz/page.php?view=working_with_shapefiles Thanks to everyone for all the great help, you all have been awesome. When ive done the evaluations of Mapserver and Mapnik, ill add to it. Regards Peter ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: How to use tele atlas data to publish the bridge structure?
in your opinion. I try to divide up the NW table into server parts. Every layer uses one of the parts to publish the map. If the range of f_elev and t_elev is from 0 to 1. the order as follows: f_elevt_elev layer1 0 0 layer2 0 1 layer2 1 0 but I don't find the right bridge structure. Is that right? should I adjust the condition to divide up the NW table? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-use-tele-atlas-data-to-publish-the-bridge-structure-tp5422743p5459573.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] how to set LegendTemplate display color same like class in the mapfile?
Hello all, I have problem to display Legend into the Chameleon Framework? anyone can help? when i put legendtemplate in the web template, then trouble appearance (i sent the picture too: my_strangelegend.jpg). here the coding initialize Legend in the Map (Ina.map) : : CONNECTIONTYPE POSTGIS CONNECTION user=usr password=pass dbname=db host=localhost port=5432 DATA the_geom FROM tbk_x USING UNIQUE kode CLASS NAME xx TEMPLATE ./webtemplate.html EXPRESSION ([ljum_pkl]=1000 and [ljum_pkl]=2000) STYLE COLOR 255 50 50 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME yy TEMPLATE ./webtemplate.html EXPRESSION ([ljum_pkl]=2001 and [ljum_pkl]=4000) STYLE COLOR 100 200 100 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CONNECTIONTYPE POSTGIS CONNECTION user=usr password=pass dbname=db host=localhost port=5432 DATA the_geom FROM tbk_x USING UNIQUE kode CLASS NAME xx TEMPLATE ./webtemplate.html EXPRESSION ([ljum_pkl]=1000 and [ljum_pkl]=2000) STYLE COLOR 255 50 50 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS CLASS NAME yy TEMPLATE ./webtemplate.html EXPRESSION ([ljum_pkl]=2001 and [ljum_pkl]=4000) STYLE COLOR 100 200 100 OUTLINECOLOR 0 0 0 WIDTH 2 ANTIALIAS TRUE END#STYLE END #CLASS LEGEND # BLOK LEGENDA IMAGECOLOR 255 255 204 # kuning Muda KEYSIZE 18 9 KEYSPACING 3 5 POSTLABELCACHE TRUE STATUS ON # template TRANSPARENT OFF LABEL # LABEL LEGENDA TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 6 ANTIALIAS TRUE END #LABEL TEMPLATE ./legend_template.html initialize Legend in the Web Template using Chameleon Framework (webtemplate.html) body onLoad=CWC2OnLoadFunction() table border=3 cellpadding=1 cellspacing=1 tbody tr td~~~coding CWC2 ELSE bla...bla~~/td td~~~coding CWC2 ELSE bla...bla~~/td td valign=top img src=./images/sim_utara.gifbr CWC2 TYPE=LegendTemplate VISIBLE=true ENABLED=true EMBEDDED=true POPUPWIDTH=50 POPUPHEIGHT=25 TEMPLATE=./legend_template.html/ /td td~~~coding CWC2 ELSE bla...bla~~/td /tr /tbody /body legend_template.html [leg_layer_html order=ascending opt_flag=15] input type=checkbox name=legendlayername[] value=[leg_layer_name] [if name=layer_status oper=eq value=1]CHECKED[/if] [if name=layer_status oper=eq value=2]CHECKED[/if] nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; img src=[leg_icon width=22 height=18] width=22 height=18 [leg_layer_name] [/leg_layer_html] how to display Legend with color like in map's class? Thanks a lot all =) -Theresia ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users