<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Tileindex of DGN's being opened as shapefile layer</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=248075900-03032006><FONT face=Arial
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=248075900-03032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=248075900-03032006><FONT face=Arial
color=#0000ff size=2>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?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=248075900-03032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=248075900-03032006><FONT face=Arial
color=#0000ff size=2>regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=248075900-03032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=248075900-03032006><FONT face=Arial
color=#0000ff size=2>Jacob</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=248075900-03032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Delfos,
Jacob<BR><B>Sent:</B> 20 February 2006 15:00<BR><B>To:</B>
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS]
Tileindex of DGN's being opened as shapefile layer<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Hi All,</FONT> </P>
<P><FONT face=Arial size=2>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:</FONT></P>
<P><FONT face="Courier New" size=2>[20-Feb-2006 14:45:49] PHP Warning:
[MapServer Error]: msDrawMap(): Failed to draw layer named 'DGNs'.</FONT>
<BR><FONT face="Courier New" size=2> in
C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560</FONT> <BR><FONT
face="Courier New" size=2>[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.</FONT></P>
<P><FONT face="Courier New" size=2> in
C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560</FONT> <BR><FONT
face="Courier New" size=2>[20-Feb-2006 14:45:49] PHP Warning: [MapServer
Error]: msSHPOpenFile(): (c:/data/hongkong/10nwb.dgn)</FONT> <BR><FONT
face="Courier New" size=2> in
C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560</FONT> <BR><FONT
face="Courier New" size=2>[20-Feb-2006 14:45:49] PHP Warning: [MapServer
Error]: msSHPOpenFile(): (c:/data/hongkong/10nwb.dgn)</FONT> <BR><FONT
face="Courier New" size=2> in
C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560</FONT> <BR><FONT
face="Courier New" size=2>[20-Feb-2006 14:45:49] PHP Warning: [MapServer
Error]: msSHPOpenFile(): (c:/data/hongkong/10nwa.dgn)</FONT> <BR><FONT
face="Courier New" size=2> in
C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560</FONT> <BR><FONT
face="Courier New" size=2>[20-Feb-2006 14:45:49] PHP Warning: [MapServer
Error]: msSHPOpenFile(): (c:/data/hongkong/10nwa.dgn)</FONT> <BR><FONT
face="Courier New" size=2> in
C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560</FONT> </P>
<P><FONT face=Arial size=2>I based my layer definition on </FONT><A
href="http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#tileindex-with-ogr"><U><FONT
face=Arial color=#0000ff
size=2>http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#tileindex-with-ogr</FONT></U></A><FONT
face=Arial size=2> :</FONT> </P>
<P><FONT face=Arial size=2>LAYER</FONT> <BR><FONT face=Arial size=2>
NAME "DGNs"</FONT> <BR><FONT face=Arial size=2> TYPE LINE</FONT>
<BR><FONT face=Arial size=2> STYLEITEM "AUTO"</FONT> <BR><FONT
face=Arial size=2> CONNECTIONTYPE OGR</FONT> <BR><FONT face=Arial
size=2> TILEINDEX "dindex.shp,0"</FONT> <BR><FONT face=Arial
size=2> STATUS ON</FONT> <BR><FONT face=Arial size=2> CLASS</FONT>
<BR><FONT face=Arial size=2> COLOR 150 150 150</FONT>
<BR><FONT face=Arial size=2> END</FONT> <BR><FONT face=Arial
size=2>END</FONT> </P>
<P><FONT face=Arial size=2>The DBF of the shapefile has 1 column, with these
values:</FONT> </P>
<P><FONT face=Arial size=2>location</FONT> <BR><FONT face=Arial
size=2>C:\data\10nwa.dgn,0</FONT> <BR><FONT face=Arial
size=2>C:\data\10nwb.dgn,0</FONT> </P>
<P><FONT face=Arial size=2>I am using php_mapscript 4.6.1, with php 5.05. Can
someone tell me what I'm doing wrong?</FONT> </P>
<P><FONT face=Arial size=2>Regards,</FONT> </P>
<P><FONT face=Arial size=2>Jacob</FONT> </P><BR>
<P><B><FONT face=Arial color=#009500>J</FONT><FONT face=Arial color=#009500
size=1>ACOB</FONT> <FONT face=Arial color=#009500>D</FONT><FONT face=Arial
color=#009500 size=1>ELFOS<BR></FONT><FONT face=Arial
color=#009500>GIS</FONT><FONT face=Arial color=#009500 size=1></FONT> <FONT
face=Arial color=#009500>A</FONT><FONT face=Arial color=#009500
size=1>NALYST</FONT><BR></B><FONT face=Arial color=#000000 size=2>Maunsell
Australia Pty Ltd<BR>629 Newcastle Street, Leederville, WA 6007</FONT>
<BR><FONT face=Arial color=#000000 size=2>PO Box 81, Leederville, WA
6902</FONT> <BR><FONT face=Arial color=#000000 size=2>Western Australia</FONT>
<BR><FONT face=Arial color=#000000 size=2>ABN 20 093 846 925<BR><BR>Tel
+ 61 8 9281 6185<BR>Fax + 61 8 9281
6297<BR></FONT><U><FONT face=Arial color=#009c21
size=2>jacob.delfos@maunsell.com</FONT></U> </P></BLOCKQUOTE></BODY></HTML>