[mapserver-users] msShapefileOpen(): Unable to access file

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue Jul 12 04:30:10 PDT 2011


Hi,

I guess that Mapserver is seaching for shapefiles as default. Read the document http://mapserver.org/input/vector/ogr.html and have a try with CONNECTIONTYPE=OGR.

-Jukka Rahkonen
________________________________________
 Dave Chetan wrote:


Hi,

I am publishing DGN data using tile option. I am getting error
"msShapefileOpen(): Unable to access file".

Following are the details of Input data, steps executed and error log.

Please, if anyone can help in resolving the issue.

Source files are DGN
  D:\Tile\DGN\Final\1.dgn
  D:\Tile\DGN\Final\3.dgn
  D:\Tile\DGN\Final\5.dgn
  D:\Tile\DGN\Final\7.dgn
  D:\Tile\DGN\Final\9.dgn

Step1)-
Creation of Index tile

ogrtindex.exe d:\Tile\DGN\Final\index_dgn.shp d:\Tile\DGN\Final\*.dgn

Ogrtindex created "index_dgn.shp" index file

Step2)-
Map file
....
  EXTENT 699218.75297987 2251967.57943806 755021.241547886 2291053.54827586
  SHAPEPATH "D:\Tile\DGN\Final"
.....


    LAYER
    NAME "DGN"
    STATUS ON
    TILEINDEX "index_dgn"
    TILEITEM "location"
    TYPE LINE
    UNITS METERS
    CLASS
      NAME "DGN"
      STYLE
        ANGLE 360
        COLOR 240 215 209
        SYMBOL "LineDash"
        WIDTH 1
      END
    END
  END



Error

7/12/2011 4:21:33 PM|msDrawMap(): Image handling error. Failed to draw
layer named 'DGN'.;msTiledSHPOpenFile(): Shapefile error. Unable to
open a single tile to use as a template in layer
DGN.;msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file.
(d:\Tile\DGN\Final\1.dgn,0)
7/12/2011 4:21:33 PM|   at OSGeo.MapServer.mapObj.draw()
   at MapCreator.Controls.MapControl.RefreshMap()



In the Layer Tag if I add following line

    CONNECTIONTYPE OGR

the error is

7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw
layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR
connection in layer `DGN'.  File not found or unsupported format.
7/12/2011 4:29:20 PM|   at OSGeo.MapServer.mapObj.draw()
   at MapCreator.Controls.MapControl.RefreshMap()
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list