[mapserver-users] Admin boundaries styling

Frank Broniewski brfr at metrico.lu
Wed Dec 18 00:58:22 PST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm trying to get the styling right for administrative boundaries. The
data source is a polygon shapefile with administrative boundaries of a
certain level. I want to have a dashed line style to symbolize the
boundary. The layer is used as TYPE LINE.


The style I'm using:

STYLE
  Color 100 100 100
  Gap 4
  Linecap butt
  Linejoin miter
  Linejoinmaxsize 3
  Pattern 2 6 2 6 2 6 End
  Symbol "circle"
  Width 2
END

Problem is that the pattern overlaps where a boundary is drawn more
than once due to the shared nature of adjacent adminstrative units.
Since the source is a shapefile there's no topology that would prevent
the issue and my PostGis DB doesn't support that (yet)*. Here's a
screenshot that displays the issue:
http://www.geometrico.lu/devel/mapserver/boundary-styling.png
As you can see the styling varies greatly. So - does anyone have a
clue on how to get the styling right? It should look like in the lower
right corner of the screenshot ...

Many thanks,

Frank


* BTW: can Mapserver handle PostGIS topology geometry types?


- -- 
Frank BRONIEWSKI

METRICO s.à r.l.
géomètres
technologies d'information géographique
rue des Romains 36
L-5433 NIEDERDONVEN

tél.: +352 26 74 94 - 28
fax.: +352 26 74 94 99
http://www.metrico.lu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSsWOfAAoJEHopqW0d1cQVUjcH+wamQP8jJo8BzrX9JYp6mn2h
rzbk4LYyH6Xf144dnJkfrt7G8eziABT0Zg/RDqE6trqkBGlPxO16wOFbIPunEAZC
O+veftAYv4pyZbXKvAJF2yXW1L1P/OJNppRO3WnfkZGVDybsWecGkoowl0NdPBgL
Ps4FLcVXhgNxpdOZpwgMMDOHs1VGVuZgRXx02SLm8lmzffnixSCuMUtL45Q9HBon
62SCRi/nJ1AYAMVC9+2PeRs4Uni+cIAMRS0nXeE988JcXvDmWsazKXZCwG9iuZhz
WUOuIEpTg2wcH3zEemyHkxJnutW5ryUDCbF/u7cCiCgVHq+NesGEfVS6kWqGW2U=
=Mm2w
-----END PGP SIGNATURE-----


More information about the mapserver-users mailing list