[mapserver-users] symbol of the streets

Frank Koormann frank.koormann@intevation.de
Tue, 12 Mar 2002 19:04:15 +0100


--3MwIy2ne0vdjdPXF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Michel,

* Michel M. dos Santos (michel@omnisystem.com.br) [020312 18:02]:
>=20
> 	Thanks a lot Frank,=20
>=20
> 	See:
>=20
> 	http://creedence.org/imagens/demo2.png  (now, done by mapserver)

:)

>             LABEL
>                 ANGLE AUTO
>                 COLOR 0 0 0
>                 FONT "verdana"
>                 MINDISTANCE 300
>                 PARTIALS FALSE
>                 SIZE 11
>                 TYPE TRUETYPE
>             END

[...]

> 	Only more one question:=20
>=20
> 	The labels of the streets sometimes not follow the symbol
> 	exactly . Example in my image:
> 	R FRANCISO FERREIRA DE SOUZA
> 	R FREDERICO MAURER
> 	R ANTONIO RICARDO DOS SANTOS

I think all labels run out of the exact line. Seems to be a systematic
error. Just some thoughts:
- Maybe the font metrics for "verdana" aren't handled correctly?
  You might try arial or helvetica as a fallback
- Although the docs say something different I get fine results using=20
  a POSITION CC for the labels placed along lines.

To conclude, somthing like:
        LABEL
                TYPE TRUETYPE
                FONT arial
                SIZE 10
                COLOR 0 0 0
                ANGLE AUTO
                POSITION CC
                BUFFER 2
                PARTIALS FALSE
                MINFEATURESIZE AUTO
         END

works fine for me

regards,

        Frank

--=20
Frank Koormann                             <frank.koormann@intevation.de>
 Professional Service around Free Software       (http://intevation.net/)
 FreeGIS Project                                 (http://freegis.org/)

--3MwIy2ne0vdjdPXF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org

iEYEARECAAYFAjyOQx8ACgkQBabJQasL9w66gACgrryi3JKO2TfN2TSyHSZ2tRNU
YYoAn2BGryWnw4TQOscP9RPKfbiffSuA
=Uiq9
-----END PGP SIGNATURE-----

--3MwIy2ne0vdjdPXF--