Tileindex of DGN's being opened as shapefile layer

Delfos, Jacob jacob.delfos at MAUNSELL.COM
Thu Mar 2 20:01:51 EST 2006


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
<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/20060303/b668f4f1/attachment.html


More information about the mapserver-users mailing list