[mapserver-users] Re: DGN files Template usage
Jeff McKenna
mckenna at dmsolutions.ca
Tue Jul 30 08:24:20 PDT 2002
Anwar,
You should be able to follow the instructions in the OGR Howto to add dgn files
to your mapfile (http://mapserver.gis.umn.edu/doc36/ogr-howto.html).
Also, the doc is currently incorrect in the STYLEITEM AUTO section
(http://mapserver.gis.umn.edu/doc36/ogr-howto.html#binary). Styleitem Auto
allows you to use the colours and styles already embedded in dgn and mapinfo tab
files. The doc should say that specifying a CLASSITEM is optional. I have
updated the doc and committed it in CVS so the changes should be visible soon.
Here is an example of how to use STYLEITEM AUTO for a dgn file:
LAYER
NAME "test_dgn"
STATUS ON
TYPE POLYGON
CONNECTIONTYPE OGR
CONNECTION "../data/dgn/test.dgn"
# This enables use of colors and styles from the source file.
STYLEITEM "AUTO"
# Define an empty class that will be filled at runtime from the color and
# styles read on each shape in the source file.
CLASS
END
END # layer
Hope this helps.
Jeff
Shaik Anwar Hussain wrote:
>
> Hello,
>
> I am using micro station DGN files, those showing on my browser,
> its fine. Now i want to display the attributes of the dgn files using the
> layer template definition(Like shape files). Is this possible to do for DGN
> files, any ideas,
>
> Can you please tell me how to access the attribute values from DGNs.
>
> I am using Mpaserver version 3.6.
> Thnaks for your help.
>
--
Jeff McKenna
GIS Specialist
DM Solutions Group Inc.
http://www.dmsolutions.ca/
More information about the MapServer-users
mailing list