Tileindex of DGN's being opened as shapefile layer

Delfos, Jacob jacob.delfos at MAUNSELL.COM
Sun Feb 19 22:59:56 PST 2006


Hi All,

I'm having some trouble creating a tile-index of DGN's, using php_mapscript (Chameleon). My tileindex is a shapefile. But I think the layer should be treated as OGR, yet the connectiontype seems to indicate it thinks it is a shapefile layer. According to my PHP log, it tries to open it as a shapefile, which obviously fails:

[20-Feb-2006 14:45:49] PHP Warning:  [MapServer Error]: msDrawMap(): Failed to draw layer named 'DGNs'.
 in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560
[20-Feb-2006 14:45:49] PHP Warning:  [MapServer Error]: msTiledSHPOpenFile(): Unable to open a single tile to use as a template in layer DGNs.
 in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560
[20-Feb-2006 14:45:49] PHP Warning:  [MapServer Error]: msSHPOpenFile(): (c:/data/hongkong/10nwb.dgn)
 in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560
[20-Feb-2006 14:45:49] PHP Warning:  [MapServer Error]: msSHPOpenFile(): (c:/data/hongkong/10nwb.dgn)
 in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560
[20-Feb-2006 14:45:49] PHP Warning:  [MapServer Error]: msSHPOpenFile(): (c:/data/hongkong/10nwa.dgn)
 in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560
[20-Feb-2006 14:45:49] PHP Warning:  [MapServer Error]: msSHPOpenFile(): (c:/data/hongkong/10nwa.dgn)
 in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560

I based my layer definition on http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#tileindex-with-ogr :

LAYER
  NAME "DGNs"
  TYPE LINE
  STYLEITEM "AUTO"
  CONNECTIONTYPE OGR
  TILEINDEX "dindex.shp,0"
  STATUS ON
  CLASS
     COLOR 150 150 150
  END
END

The DBF of the shapefile has 1 column, with these values:

location
C:\data\10nwa.dgn,0
C:\data\10nwb.dgn,0

I am using php_mapscript 4.6.1, with php 5.05. Can someone tell me what I'm doing wrong?

Regards,

Jacob


JACOB DELFOS
GIS ANALYST
Maunsell Australia Pty Ltd
629 Newcastle Street, Leederville, WA 6007
PO Box 81, Leederville, WA 6902
Western Australia
ABN 20 093 846 925

Tel     + 61 8 9281 6185
Fax    + 61 8 9281 6297
jacob.delfos at maunsell.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060220/5cc518e5/attachment.htm>


More information about the MapServer-users mailing list