[mapserver-users] Access network share drive for data in mapfile throwing error
Andy Colson
andy at squeakycode.net
Thu Mar 7 07:59:58 PST 2013
On 3/7/2013 9:48 AM, Sowmya Tiramdasu wrote:
> Hi,
>
> I am trying to access data directly from a network share folder in my
> mapfile. But it is not working . It is throwing the following error.
>
> msDrawMap(): Image handling error. Failed to draw layer named
> 'ControlPoints'.
>
> msShapefileOpen(): Unable to access file.
> (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic
> Control Points\Geographic Control Points.shp)
>
> msShapefileOpen(): Unable to access file.
> (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic
> Control Points\Geographic Control Points.shp)
>
> msSHPLayerGetItems(): Shapefile error. Shapefile layer has not been opened.
>
> KmlRenderer::startNewLayer: General error message. msLayerOpen failed
>
> msShapefileOpen(): Unable to access file.
> (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic
> Control Points\Geographic Control Points.shp)
>
> msShapefileOpen(): Unable to access file.
> (\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic
> Control Points\Geographic Control Points.shp)
>
> I tried to search in the old email archives. In one of the email chains
> they suggested me to check if gdal/ogr can actually open the files. I
> did gdal info for tiff files and they are giving the right information.
> Similarly ogrinfo for shp files and they too are fine.
>
> Can anyone please suggest what is the problem and give me solution to
> fix this. Find below snapshot of my mapfile for your reference.
>
> LAYER
>
> NAME KeenelandStatePlane38
>
> DATA
> "\\DISKSTATION1\data\SheridanData\Keeneland\Imagery\StatePlane\SPSPSPO-00039.tif"
>
> STATUS OFF
>
> TYPE RASTER
>
> OPACITY 75
>
> PROJECTION
>
> "init=EPSG:102679"
>
> END
>
> DEBUG 5
>
> END
>
> LAYER
>
> NAME ControlPoints
> #Photogrammetric points
>
> DATA
> "\\DISKSTATION1\data\SheridanData\Keeneland\Vector Data\Geographic
> Control Points\Geographic Control Points.shp"
>
> STATUS OFF
>
> TYPE POINT
>
> CLASS
>
> STYLE
>
> #
> Symbol to be used (reference)
>
> SYMBOL
> "circle"
>
> # Size
> of the symbol in pixels
>
> SIZE 8
>
> COLOR
> 190 20 190
>
> #
> Outline colour (RGB) - black
>
>
> OUTLINECOLOR 0 0 0
>
> END
>
> END
>
> PROJECTION
>
> "init=epsg:102679"
>
> END
>
> END
>
> Thanks in advance,
>
> Sowmya.
The error: Unable to access file. (\DISKSTATION1\..
Is missing a slash on front. Maybe in your mapfile, try three slashes
up front:
>DATA "\\\DISKSTATION1\data...
-Andy
More information about the MapServer-users
mailing list