[Mapserver-users] OGR + DGN STYLEITEM "AUTO" config
Schepel, Menno
menno.schepel at tao.es
Mon Apr 26 01:22:18 PDT 2004
Hi list,
Some days ago I posted a question about using the STYLEITEM "AUTO" option
for visualizing a DGN file through the OGR library using Mapserver 4.01 on
IIS. Maybe I did not describe the problem correctly since I did not receive
any comments, so I´ll give it another try.
I can´t figure out what to put in my symbol file in order to make the
STYLEITEM "AUTO" option (available within layers read through the OGR
library) work. I can visualize a DGN in single color using this layer
config:
LAYER
STATUS OFF
GROUP DGN
CONNECTIONTYPE OGR
CONNECTION "C:\inetpub\wwwroot\vinya\data\granollersv7.dgn"
NAME "Granollers"
TYPE Line
TOLERANCE 10
METADATA
WMS_TITLE "Granollers DGN"
WMS_SRS "EPSG:23031"
WMS_GROUP_TITLE "OGR-DGN Test Files"
END
PROJECTION
"init=epsg:23031"
END
CLASS
COLOR 255 0 0
END
DUMP TRUE
TEMPLATE "templates/Granollers.html"
HEADER "templates/Granollers_header.html"
FOOTER "templates/Granollers_footer.html"
END
But I would like to be able to see all the colours and styles that are
encapsulated within this layer. I have used the OGRINFO command from the
openEV_FW library and it generates info about styles and elements that can
be found within the DGN file (in this case a line and a label):
OGRFeature(elements):461
Type (Integer) = 3
Level (Integer) = 12
GraphicGroup (Integer) = 0
ColorIndex (Integer) = 1
Weight (Integer) = 0
Style (Integer) = 0
EntityNum (Integer) = (null)
MSLink (Integer) = (null)
Text (String) = (null)
Style = PEN(id:"ogr-pen-0",c:#ff0000)
LINESTRING (440671.760 4604784.860,440668.760 4604784.830)
OGRFeature(elements):1102
Type (Integer) = 17
Level (Integer) = 18
GraphicGroup (Integer) = 0
ColorIndex (Integer) = 4
Weight (Integer) = 0
Style (Integer) = 0
EntityNum (Integer) = (null)
MSLink (Integer) = (null)
Text (String) = P
Style = LABEL(t:"P",c:#00ffff,s:0.750g)
POINT (440535.710 4605552.610)
I have found some examples of using MapInfo files in the forum and on the
sites of MapServer and DM solutions, but until now I did not see an example
using DGN. The manual is mentioning that it should be possible, however.
What do I have to put in the symbol file in order that it will recognize the
different styles used within the DGN?
Is there someone who has some experience with this that they could share?
Thanks,
Menno.
Menno Schepel, consultor GIS
-------------------------------------------------
TAO - grupo gedas
Desarrollo Public Sector
Passeig de Gràcia
88 Pral, 08008 Barcelona
España/Spain
T: +34 - 93 496 1111 ext. 245
M: +34 - 609 831 859
F: +34 - 93 487 36 46
E: Menno.Schepel at tao.es
I: http://www.tao.es
--------------------------------------------------
More information about the MapServer-users
mailing list