[mapserver-users] Fractional line widths?

Steve Lime Steve.Lime at dnr.state.mn.us
Tue Aug 19 05:39:20 PDT 2008


We've talked about this as part of a package of graphics-related enhancements. Look for
it in 5.4 soon.

Steve

>>> "Tamas Szekeres" <szekerest at gmail.com> 08/18/08 7:06 PM >>>
Dane,

I think it would be implemented by means of replacing the int-s with
doubles at the style and the symbol definitions and the corresponding
interfaces since AGG have already been using doubles internally in the
code.


Best regards,

Tamas


2008/8/19 Dane Springmeyer <blake at hailmail.net>:
> Tamas,
> Great, thanks!. I'll file a ticket then regarding the agg render and adding
> a FORMATOPTION for generating 'thinner' looking lines.
> My question comes from the context of comparing Mapnik's agg output to
> mapserver. Mapnik seems to interpret user-entered fractional widths in a
> clever way, by lightening the color and intensity.
> I'm comparing this graphic generated with a width=0.1 with Mapnik:
> http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/xml_config/map/hello_world_using_xml_config.png
> to this graphic generated with Mapserver with Width 1.0:
> http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile.png
> It fully possible that my mapfile is not doing an equal comparison, so if
> anyone has suggestions I've pasted it below.
>
> Thanks,
> Dane
> ------------
>
> # This mapfile mirrors the mapnik hello world example
> here: http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/pure_python/
> # A map can be generated from it by running shp2img.
> # For example:
> # $ shp2img -m world.map -o map/hello_world_with_mapserver_mapfile.png
> # or
> # once you have installed the mapserv cgi use this url:
> #
> http://localhost/cgi-bin/mapserv?map=/path/to/this/mapfile/world.map&layers=world&mode=map
> MAP
>   IMAGETYPE        AGG
>   EXTENT             -180 -93 180 86
>   SIZE                   600 300
>   SHAPEPATH       "../../data/"
>   IMAGECOLOR     70 130 180
>
>   OUTPUTFORMAT
>    NAME 'AGG'
>    DRIVER AGG/PNG
>    IMAGEMODE RGB
>    MIMETYPE "image/png"
>   END
>   LAYER
>     NAME         world
>     DATA         world_borders.shp
>     STATUS      ON
>     TYPE          POLYGON
>     CLASS
>       NAME       "World"
>       STYLE
>         COLOR                 242 239 249
>         OUTLINECOLOR   127 127 127
>         WIDTH 1
>       END
>
>     END
>   END
> END
>
>
> On Aug 18, 2008, at 3:53 PM, Tamas Szekeres wrote:
>
> Dane,
>
> I think it's reasonable but would only be feasible for the AGG renderer
> though.
>
>
> Best regards,
>
> Tamas
>
>
>
> 2008/8/19 Dane Springmeyer <blake at hailmail.net>:
>
> I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style
>
> that only integers are supported for the Style > Width parameter.
>
> Are thinner lines (a float type) a possibility or have they been considered
>
> in the MapServer code base?
>
> I can't find anything in trac to suggest so, but I thought to check here
>
> before filing a ticket.
>
> Thanks,
>
> Dane
>
>
>
> _______________________________________________
>
> mapserver-users mailing list
>
> mapserver-users at lists.osgeo.org
>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list