AGG and vertical line symbol
thomas bonfort
thomas.bonfort at GMAIL.COM
Wed Feb 6 11:44:45 PST 2008
this was also fixed in trunk since the 5.0 but didn't make it into the
5.0 branch.
you can use the hatch symbol which is designed for this kind of symbology
SYMBOL
NAME 'hatch'
TYPE HATCH
END
and then in your style block
STYLE
SYMBOL 'hatch'
SIZE 10 # the spacing between lines in hatch
WIDTH 1 # the width of each individual hatch line
ANGLE 90 #can be any other angle to
COLOR ....
...
END
regards,
thomas
On Feb 6, 2008 8:34 PM, Hunter, David - St. Louis Park, MN
<David.Hunter at fnis.com> wrote:
> I turn AGG on with this:
>
> OUTPUTFORMAT
> NAME 'AGG_Q'
> DRIVER AGG/PNG
> IMAGEMODE RGB
> FORMATOPTION "QUANTIZE_FORCE=ON"
> FORMATOPTION "QUANTIZE_DITHER=OFF"
> FORMATOPTION "QUANTIZE_COLORS=256"
> END
>
> When I test with GD, I remove the above OUTPUTFORMAT block, and add this
> line at the MAP level:
>
> IMAGETYPE PNG24
>
> Note that that the PNG24 and JPEG AGG drivers produce the same result.
>
> The layer that produces the hatched polygons is defined like this:
>
> # Hydrants
> LAYER
> NAME "Hydrants"
> TILEINDEX "PPC/hydrants"
> STATUS DEFAULT
> TYPE POLYGON
> TRANSPARENCY 50
>
> MAXSCALE 3920
> CLASS
> EXPRESSION ('[WATER_SUPP]' = 'H' || '[WATER_SUPP]' = 'D' ||
> '[WATER_SUPP]' = 'S')
> NAME "Creditable Water Supply Area"
> SYMBOL "line-vertical"
> COLOR 102 153 204
> OUTLINECOLOR 102 153 204
> SIZE 5
> END
> CLASS
> EXPRESSION ('[WATER_SUPP]' = 'U')
> NAME "Non-Creditable Water Supply Area"
> SYMBOL "line-horizontal"
> COLOR 102 102 102
> OUTLINECOLOR 102 102 102
> SIZE 2
> END
> END
>
>
>
> Attached are sample maps produced with AGG and GD.
>
>
>
>
> -----Original Message-----
> From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
> Sent: Wednesday, February 06, 2008 1:11 PM
> To: Hunter, David - St. Louis Park, MN
> Cc: MAPSERVER-USERS at lists.umn.edu
> Subject: Re: [UMN_MAPSERVER-USERS] AGG and vertical line symbol
>
> if your trying to get hatching, you should probably be going with the
> hatch symbol.
> if not, could you post your layer definition and a screenshot of what
> you're getting
> regards,
> thomas
>
> On Feb 6, 2008 6:56 PM, Hunter, David - St. Louis Park, MN
> <David.Hunter at fnis.com> wrote:
> >
> >
> >
> >
> > When I use
> >
> >
> >
> > SYMBOL "line-vertical"
> >
> >
> >
> > in a class with AGG, the lines are broken up, looking like vertical
> dashes.
> > Is there a workaround for this, or another symbol that works?
> >
> >
> >
> > David S. Hunter
> > Lead Software Engineer
> > Fidelity National Geographic Solutions
> > division of Fidelity National Information Services
> > 5353 Gamble Drive, Suite 201
> > St. Louis Park, MN 55416
> > Email: david.hunter at fnis.com
> > Phone: 952.542.1440 ext. 256
> > Fax: 952.542.3859
> >
> >
> >
> >
> >
> >
>
>
More information about the MapServer-users
mailing list