[Mapserver-users] display specific layers from DGN

Frank Warmerdam warmerdam at pobox.com
Thu Jan 29 08:06:02 PST 2004


J. Delfos wrote:
> Hi List,
> 
> I am trying to display specific layers from a DGN file. I found an 
> example
> in the archive of the list that suggested how to do it, but it doesn't
> work for me;
> 
> LAYER
>     NAME "Water_dgn"
>     TYPE POLYGON
>     CONNECTIONTYPE OGR
>     CONNECTION "data/dgn/wat.dgn"
>             DATA "1"
>     STATUS ON
>     CLASS
>       ...
>     END
> ...
> END
> 
> Does anyone have a better idea of how to single out the layer? (Aside 
> from
> editing the DGN, of course). 

Jacob,

DGN files when read through OGR are represented as a single layer (called
elements with "id" 0).  However, there is a Level attribute, so you can filter
or classify on that.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the MapServer-users mailing list