[Mapserver-users] Does anyone know how to view an individual layer in a DGN file?
Oliver Wesp
wesp at gdv.com
Fri Dec 12 07:58:53 PST 2003
I suppose you can specify a single layer within your DGN-File using
LAYER
NAME "Water_dgn"
TYPE POLYGON
CONNECTIONTYPE OGR
CONNECTION "data/dgn/wat.dgn"
DATA "1"
STATUS ON
CLASS
...
END
...
END
for example. This should reference Layer Number 1 within your DGN-File.
According to the OGR HowTo you can also specify a layer by his name. But
in the OGR HowTo you will also find the following about DGN and I wonder
if that means that it's not possible to display just a certain layer.
"The entire DGN file is represented in OGR as one layer (see
http://ogr.maptools.org/drv_dgn.html for more info)"
best regards
Oliver
Stephen Clark wrote:
> Hi all,
>
> I have some Microstation DGN file that are comprised of several layers
> of data.
>
> How would I view only one layer at a time using a layer file?
>
>
> Here is what I have to view the entire DGN file:
>
> LAYER
> NAME "FDP_2001_dgn"
> TYPE LINE
> STATUS ON
> CONNECTIONTYPE OGR
> CONNECTION
> "d:/sclark1/server_data_copy/datasets/forest-data/TPL/fdp-dgn-utm/fdp_2001_utm.dgn"
> CLASS
> COLOR 0 255 0
> END
> PROJECTION
> "AUTO"
> END
> METADATA
> WMS_TITLE "FDP 2001"
> WMS_ABSTRACT "N/A"
> WMS_SRS "EPSG:26910"
> END
> END
>
> There are approximately 24 layers in the file.
>
> Thanks,
> Stephen
>
>
--
Dipl.-Geogr. Oliver Wesp
Gesellschaft fuer geografische Datenverarbeitung
Binger Strasse 49-51
D-55218 Ingelheim
fon: +49 6132 714818
fax: +49 6132 714828
http: www.gdv.com
More information about the MapServer-users
mailing list