[mapserver-users] Access network share drive for data in mapfile throwing error

Sowmya Tiramdasu stiramdasu at lp360.com
Thu Mar 7 09:51:02 PST 2013


Hi Andy, 

 Thanks for your suggestion. Giving an extra slash worked :) 

Stephen : I think the windows path doesn't give any problem. So the slashes
are not the issue here. Anyways thanks for your suggestion. 

Thanks, 
Sowmya. 

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson
Sent: Thursday, March 07, 2013 10:00 AM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Access network share drive for data in
mapfile throwing error

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
_______________________________________________
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