[Mapserver-west] Displaying DGN files

Chris Clements CClements at westernforest.com
Thu Sep 8 17:03:07 EDT 2005


I think I got it now, I added:

STYLEITEM "AUTO"

To the MAP file and it is now displaying.  i thought that was optional, but
it appears to be required at least in this instance.

Chris

-----Original Message-----
From: Chris Clements [mailto:CClements at westernforest.com]
Sent: Thursday, September 08, 2005 12:01 PM
To: mapserver-west at lists.maptools.org
Subject: [Mapserver-west] Displaying DGN files



Hi All,

i am trying to display a DGN file in MapServer, but am not getting anything
to show up.  This is a DGN v.7 file and contains lines on level 46.  My map
file is pasted below.  There are no errors reported when I call it through
Internet Explorer, a mapserv -v on the my version of MapServer (4.2.3 on
Windows XP Pro) shows Input=OGR.  I can look at the information regarding
the dgn file using OGRINFO (that is where the extents came from), but when I
call the map file through Internet Explorer, all I get is a blank image
returned.  If I change the IMAGECOLOR to something like 200 200 200, it does
show the extent as a gray box, so it is reading the MAP file.  The dgn
projection is NAD 83, UTM Zone 10.

Is there something that I am missing?

Thanks for any help,
Chris

------ DGN Mapfile

MAP
  IMAGETYPE      PNG
  
  OUTPUTFORMAT
    NAME png
    DRIVER "GD/PNG"
    MIMETYPE "image/png"
    IMAGEMODE RGB
    EXTENSION "png"
  END
  
  EXTENT         411334 5362445 426114 5372500  
  SIZE           400 300   
  IMAGECOLOR     254 254 254
  FONTSET 	 "C:\Mapserver\fonts\fonts.list"
  SYMBOLSET	 "C:\Mapserver\symbols\symbols.sym"
  
  PROJECTION
    "init=epsg:26910"
  END

  # Start of LAYER DEFINITIONS ---------------------------------------------
     
   LAYER # dgn blocks layer begins here
        NAME         	layout
        STATUS       	DEFAULT
        TYPE         	LINE
        CONNECTIONTYPE 	OGR
        CONNECTION   	"d:\TFL251\Data\92c050.dgn"       
                
        CLASS
        END
   
    END # dgn blocks layer ends here 
        
  # End of LAYER DEFINITIONS -------------------------------

END # end of map file/object

_______________________________________________
Mapserver-west mailing list
Mapserver-west at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/mapserver-west


More information about the Mapserver-west mailing list