Title: Tileindex of DGN's being opened as shapefile layer

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
[EMAIL PROTECTED]

Reply via email to