From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of Delfos, Jacob
Sent: 20 February 2006 15:00
To: [email protected]
Subject: [UMN_MAPSERVER-USERS] Tileindex of DGN's being opened as shapefile layerHi 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 560I 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
ENDThe DBF of the shapefile has 1 column, with these values:
location
C:\data\10nwa.dgn,0
C:\data\10nwb.dgn,0I 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]
Title: Tileindex of DGN's being opened as shapefile layer
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
- Re: [UMN_MAPSERVER-USERS] Tileindex of DGN's ... Delfos, Jacob
- Re: [UMN_MAPSERVER-USERS] Tileindex of D... Bart van den Eijnden (OSGIS)
