[mapserver-users] Spam: odd behaviour with labels using AGG
Rodriguez, Heraldo
hrodriguez at siscat.com.ar
Mon Sep 1 09:52:48 PDT 2008
http://img217.imageshack.us/img217/2537/cabildoagg3po6.png
In the meantime i'll try to apply the patch and see what happen.
Thanks a lot.
Lic. Heraldo G. Rodriguez
hrodriguez at siscat.com.ar
TEL: 54-11-4326-4002 int 255
Dpto. Desarrollo
Sistemas Catastrales S.A
-----Mensaje original-----
De: thomas bonfort [mailto:thomas.bonfort at gmail.com]
Enviado el: lunes, 01 de septiembre de 2008 13:27
Para: Rodriguez, Heraldo
CC: mapserver-users at lists.osgeo.org
Asunto: Re: [mapserver-users] Spam: odd behaviour with labels using AGG
can you link to a screenshot of the problem please?
also could you try with the trunk version, or apply the patch of
http://trac.osgeo.org/mapserver/ticket/2756 and report if that fixes
the problem
cheers,
thomas
On Mon, Sep 1, 2008 at 5:08 PM, Rodriguez, Heraldo
<hrodriguez at siscat.com.ar> wrote:
> Hi everyone,
> We have just upgraded from mapserver 4.8.2 to 5.2 in order
> to use the new AGG rendering engine.
> The graphics look great, but labels show a weird
> behaviour . All labels seem to overlap and collide with others ( using
> the same map and using gd instead of agg we have no problems with
> labels)
> We are using javamapscript ,
> We compiled mapserver with the following parameters
>
> ./configure --with-postgis=/usr/bin/pg_config --enable-debug
> --with-threads --without-pdf --without-tiff
> --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config
> --with-freetype=/usr/bin --with-png=/usr/bin
> --with-libiconv=/usr/local/bin/iconv --without-xpm --with-zlib=/usr
> --without-eppl --with-agg=/usr/local --without-mygis
>
> in a Debian 4.0 etch.
>
> Tha layer with problems is calles
>
> Any help would be appreciated. Thanks in advance .
>
> Our Map file is the following
>
> MAP
> IMAGETYPE AGG
> EXTENT -9289.683594 -10641.172852 13757.177734
> 13053.350586
> SIZE 490 500
> IMAGECOLOR 255 255 0
> TEMPLATEPATTERN 'template1*'
> FONTSET "/usr/local/mapserver/font.list"
>
> OUTPUTFORMAT
> NAME png
> DRIVER "GD/PNG"
> MIMETYPE "image/png"
> IMAGEMODE RGBA
> TRANSPARENT ON
> EXTENSION "png"
> END
>
> OUTPUTFORMAT
> NAME PNG24
> DRIVER "GD/PNG"
> MIMETYPE "image/png"
> IMAGEMODE RGBA
> TRANSPARENT ON
> EXTENSION "png"
> END
>
> OUTPUTFORMAT
> NAME AGG
> DRIVER AGG/PNG
> IMAGEMODE RGB
> extension "png"
> mimetype "image/png"
> END
>
> OUTPUTFORMAT
> NAME AGGA
> DRIVER AGG/PNG
> IMAGEMODE RGBA
> END
>
>
>
>
> SCALEBAR
> IMAGECOLOR 255 255 255
> LABEL
> COLOR 0 0 0
> SIZE TINY
> END
> STYLE 0
> SIZE 100 2
> COLOR 0 0 0
> OUTLINECOLOR 0 0 0
> UNITS Meters
> INTERVALS 2
> TRANSPARENT ON
> STATUS EMBED
> END # Scalebar object
>
>
> SYMBOL
> NAME "triangle"
> TYPE vector
> FILLED true
> POINTS
> 0 4
> 2 0
> 4 4
> 0 4
> END
> END
>
> # SYMBOL
> # NAME "cartoline"
> # TYPE cartoline
> # LINECAP round #[butt|round|square|triangle]
> # LINEJOIN miter #[round|miter|bevel]
> # LINEJOINMAXSIZE 3
> ## STYLE
> ## 40 17 1 17 1 17 1 17
> ## END
> #END
>
> # SYMBOL
> # NAME "carto2"
> # TYPE cartoline
> # LINECAP round #[butt|round|square|triangle]
> # LINEJOIN miter #[round|miter|bevel]
> # LINEJOINMAXSIZE 3
> # STYLE
> # 3 4
> # END
> # END
>
> SYMBOL
> NAME 'rectangle-train'
> TYPE ELLIPSE
> POINTS
> 1 1
> END
> FILLED TRUE
> PATTERN
> 10 10 10 10
> END
> END
>
> SYMBOL
> NAME "circle"
> TYPE ellipse
> FILLED true
> POINTS
> 1 1
> END
> END
>
>
>
> SYMBOL
> NAME 'punkt'
> TYPE ELLIPSE
> POINTS
> 1 1
> END
> FILLED TRUE
> END
>
> SYMBOL
> NAME "prueba"
> TYPE TRUETYPE
> FONT "cartografia"
> CHARACTER "1"
> END
>
>
>
> LEGEND
> KEYSIZE 12 8
> Label
> Size 7
> type truetype
> font "vera"
> end
> STATUS ON
> END
>
> QUERYMAP
> Color 255 255 0
> Style Hilite
> END
>
> LAYER
> NAME entorno
> CONNECTION "user=***** password=******* dbname=****
> host=*****.sc.com port=5432"
> CONNECTIONTYPE postgis
> # DATA entorno/the_geom
> DATA "the_geom FROM entorno"
> GROUP Geograficos
> STATUS ON
> TYPE POLYGON
> CLASSITEM "destino"
> CLASS
> NAME "Rio de la Plata"
> EXPRESSION 'RIO DE LA PLATA'
> TEMPLATE './QueryTemplates/entorno.html'
> STYLE
> # COLOR 209 221 235
> # g Earth
> COLOR 153 179 204
> OUTLINECOLOR 209 221 235
> END
> END
>
> CLASS
> NAME "Provincia"
> EXPRESSION 'PROVINCIA DE BUENOS AIRES'
> TEMPLATE './QueryTemplates/entorno.html'
> STYLE
> # COLOR 236 237 223
> COLOR 230 231 217
> # COLOR 230 231 217
> # OUTLINECOLOR 236 237 223
> END
> END
>
> CLASS
> NAME "Entorno Capital"
> TEMPLATE './QueryTemplates/entorno.html'
> STYLE
> # COLOR 255 255 255
> # g Earth
> # COLOR 235 230 220
> # COLOR 237 234 226
> COLOR 255 255 255
> # COLOR 247 244 238
> # OUTLINECOLOR 255 255 255
> END
> END
> END
>
>
>
> LAYER
> NAME calles
> CONNECTION "user=***** password=******* dbname=****
> host=*****.sc.com port=5432"
> CONNECTIONTYPE postgis
> DATA "the_geom FROM calles"
>
> GROUP Geograficos
> STATUS ON
> TYPE LINE
>
> # columna agregada a la tabla por cuestiones de las
> etiquetas
> LABELITEM rotulo
> SYMBOLscaledenom 40000
> CLASSITEM nombre
> labelMaxscaledenom 25000
> CLASS
> NAME "calles"
> TEMPLATE './QueryTemplates/calles.html'
> STYLE
> color 255 255 255
> OUTLINECOLOR 106 106 106
> # SYMBOL "cartoline"
> END
> Label
> minsize 3
> Size 3
> maxsize 9
> type truetype
> ANGLE FOLLOW
> Priority 5
> buffer 10
> PARTIALS false
> FORCE false
> MINDISTANCE 300
> outlinecolor 255 255 255
> font "vera"
> color 35 35 35
> end
>
> END
> END
>
> LAYER
> NAME manzanas
> CONNECTION "user=***** password=******* dbname=****
> host=*****.sc.com port=5432"
> CONNECTIONTYPE postgis
> GROUP Geograficos
> DATA "the_geom FROM manzanas"
> STATUS ON
> TYPE POLYGON
> LABELITEM manz
> LabelMaxscaledenom 2500
> CLASS
> NAME "Manzanas"
> TEMPLATE './QueryTemplates/manzanas.html'
> STYLE
> # COLOR 252 224 131
> # COLOR 246 231 175
> COLOR 237 234 226 #g earth
> # COLOR 248 218 161
> # COLOR 246 231 195
> # COLOR 247 231 215
> OUTLINECOLOR 255 255 255
> END
> Label
> Size 9
> type truetype
> ANGLE FOLLOW
> PARTIALS false
> POSITION UC
> font "vera"
> color 66 66 66
> end
> END
> END
>
>
> LAYER
> NAME parcelas
> CONNECTION "user=***** password=******* dbname=****
> host=*****.sc.com port=5432"
> CONNECTIONTYPE postgis
> DATA "the_geom FROM parcelas"
> STATUS ON
> TYPE POLYGON
> OPACITY 80
> MAXscaledenom 15000
> LABELITEM parcela
> LabelMaxscaledenom 1200
> CLASS
> NAME "parcelas"
> TEMPLATE './QueryTemplates/plazas.html'
> STYLE
> COLOR 242 239 233 #g
> earth
> OUTLINECOLOR 210 210 210
> END
> Label
> minsize 7
> Size 7
> maxsize 8
> type truetype
> PARTIALS false
> Buffer 0
> MINDISTANCE 10
> font "vera"
> color 86 86 86
> minfeaturesize 1
> FORCE true
> end
> END
> END
>
> LAYER
> NAME parcelas_lab
> CONNECTION "user=***** password=******* dbname=****
> host=*****.sc.com port=5432"
> CONNECTIONTYPE postgis
> DATA "the_geom FROM parcelas_lab"
> STATUS Off
> TYPE POINT
> OPACITY 80
> MAXscaledenom 1200
> LABELITEM parcela
> LabelMaxscaledenom 1200
> CLASS
> NAME "parcelas_lab"
> TEMPLATE './QueryTemplates/plazas.html'
> STYLE
> COLOR 242 239 233
> # Minsize 4
> # size 4
> # MAXSIZE 6
> END
> Label
> minsize 7
> Size 7
> maxsize 8
> type truetype
> PARTIALS false
> # POSITION uc
> Buffer 0
> MINDISTANCE 10
> # OUTLINECOLOR 255 255 255
> font "vera"
> color 86 86 86
> # color 237 234 226
> minfeaturesize 1
> FORCE true
> end
>
> END
> END
>
>
> LAYER
> NAME plazas
> CONNECTION "user=***** password=******* dbname=****
> host=*****.sc.com port=5432"
> CONNECTIONTYPE postgis
> DATA "the_geom FROM plazas"
> STATUS ON
> GROUP Geograficos
> TYPE POLYGON
> LabelMaxscaledenom 10000
> LABELITEM destino
> TEMPLATE './QueryTemplates/entorno.html'
> CLASS
> NAME "Plazas"
> # TEMPLATE './QueryTemplates/plazas.html'
> STYLE
> # COLOR 189 230 175
transparente
> # COLOR 124 206 100 original
> # COLOR 140 210 120
> # g Earth
> COLOR 167 204 149
> # COLOR 15 164 141
> OUTLINECOLOR 255 255 255
> END
> Label
> Minsize 6
> Size 8
> MAXSIZE 9
> type truetype
> PARTIALS false
> Position CC
> Buffer 0
> outlinecolor 255 255 255
> font "vera"
> COLOR 25 25 25
> minfeaturesize 35
> end
> END
>
> END
>
>
>
> LAYER
> NAME plazas_lab
> CONNECTION "user=***** password=******* dbname=****
> host=*****.sc.com port=5432"
> CONNECTIONTYPE postgis
> DATA "the_geom FROM pzlab"
> STATUS Off
> GROUP Geograficos
> TYPE POINT
> LabelMaxscaledenom 10000
> LABELITEM destino
> TEMPLATE './QueryTemplates/entorno.html'
> CLASS
> NAME "Plazas"
> # TEMPLATE './QueryTemplates/plazas.html'
> STYLE
> # COLOR 189 230 175
transparente
> # COLOR 124 206 100 original
> # COLOR 140 210 120
> # g Earth
> COLOR 167 204 149
> # COLOR 15 164 141
> OUTLINECOLOR 255 255 255
> END
> Label
> Minsize 6
> Size 8
> MAXSIZE 9
> type truetype
> # ANGLE AUTO
> PARTIALS false
> Position CC
> Buffer 0
> # MINDISTANCE 200
> outlinecolor 255 255 255
> font "vera"
> # color 0 0 200
> COLOR 25 25 25
> minfeaturesize 35
> end
> END
> END
>
>
>
> LAYER
> NAME secciones
> CONNECTION "user=***** password=******* dbname=****
> host=*****.sc.com port=5432"
> CONNECTIONTYPE postgis
> DATA "the_geom FROM secciones"
> GROUP Geograficos
> STATUS ON
> TYPE POLYGON
> LABELITEM seccion_id
> LabelMaxscaledenom 70000
> LabelMinscaledenom 4000
> CLASS
> NAME "Secciones"
> TEMPLATE './QueryTemplates/barrios.html'
> STYLE
> OUTLINECOLOR 48 123 193
> width 2
> END
>
> Label
> Minsize 8
> Size 8
> MAXSIZE 9
> type truetype
> PARTIALS false
> POSITION uc
> Buffer 0
> outlinecolor 255 255 255
> font "vera"
> COLOR 48 123 193
> end
>
> END
> END
>
>
> LAYER
> NAME circunscripciones
> CONNECTION "user=***** password=******* dbname=****
> host=*****.sc.com port=5432"
> CONNECTIONTYPE postgis
> DATA "the_geom FROM circunscripciones"
> GROUP Geograficos
> STATUS ON
> TYPE POLYGON
> LABELITEM circuns_id
> LabelMaxscaledenom 90000
> LabelMinscaledenom 4000
> CLASS
> NAME "Circunscripciones"
> TEMPLATE './QueryTemplates/barrios.html'
> STYLE
> OUTLINECOLOR 255 123 193
> width 2
> END
>
> Label
> Minsize 8
> Size 10
> MAXSIZE 12
> type truetype
> PARTIALS false
> POSITION uc
> Buffer 0
> outlinecolor 255 255 255
> font "vera"
> COLOR 255 123 193
> MINDISTANCE 400
> end
>
> END
> END
>
> LAYER
> NAME vias
> CONNECTION "user=***** password=******* dbname=****
> host=*****.sc.com port=5432"
> CONNECTIONTYPE postgis
> DATA "the_geom FROM vias"
> GROUP Geograficos
> STATUS ON
> TYPE LINE
> LABELMAXscaledenom 2700
> MAXscaledenom 2700
> LABELITEM ffcc
> SYMBOLscaledenom 1000
> CLASS
> NAME "vias"
> TEMPLATE './QueryTemplates/vias.html'
>
> STYLE
> COLOR 186 186 186
> SYMBOL 'punkt'
> MAXSIZE 6
> SIZE 6
> END
> STYLE
> COLOR 255 250 115
> SYMBOL 'punkt'
> MAXSIZE 4
> SIZE 4
> END
>
> STYLE
> COLOR 186 186 186
> SYMBOL 'rectangle-train'
> MAXSIZE 4
> SIZE 4
> END
>
> Label
> MAXSIZE 11
> Size 11
> type truetype
> ANGLE FOLLOW
> PARTIALS false
> POSITION UC
> MINDISTANCE 250
> outlinecolor 255 255 255
> font "vera"
> color 5 5 5
> end
>
>
> END
> END
>
> SYMBOL #North Arrow
> NAME "northarrow1"
> TYPE pixmap
> IMAGE "north.png"
> END
>
> LAYER
> NAME "North Arrow"
> POSTLABELCACHE TRUE
> STATUS ON
> TRANSFORM FALSE
> TYPE POINT
> OPACITY 80
> FEATURE
> POINTS 20 25 END
> END
> CLASS
> SYMBOL 'northarrow1'
> STYLE END
> END
> END
>
>
>
> END
> _______________________________________________
> 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