Tileindex of DGN's being opened as shapefile layer

Bart van den Eijnden (OSGIS) bartvde at XS4ALL.NL
Thu Mar 2 23:57:29 PST 2006


Hi Jacob,

I can only state that I have seen this problem as well myself with 
Mapinfo TAB files in a tileindex, I was also using them through 
PHP/Mapscript. In the end I used Mapinfo seamless layers to get around 
that, but that won't be an option for your DGN's.

Best regards,
Bart

Delfos, Jacob wrote:

> Hi,
>  
> Just to provide some additional information: the map displays fine in 
> mapserver, but not in php_mapscript. It appears that php_mapscript 
> assigns a shapefile connectiontype to this layer, causing it to try to 
> open the DGN's as shapefile. In the mapserver CGI, this doesn't 
> happen. Can anyone with a better understanding of the difference 
> between the two tell me what I can do to get around it?
>  
> regards,
>  
> Jacob
>  
>
>     ------------------------------------------------------------------------
>     *From:* UMN MapServer Users List
>     [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Delfos, Jacob
>     *Sent:* 20 February 2006 15:00
>     *To:* MAPSERVER-USERS at LISTS.UMN.EDU
>     *Subject:* [UMN_MAPSERVER-USERS] 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
>     _jacob.delfos at maunsell.com_
>


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl



More information about the MapServer-users mailing list