[mapserver-users] msShapefileOpen(): Unable to access file
Dave Chetan
csdave4u at gmail.com
Wed Jul 13 04:08:01 PDT 2011
Hi Brent,
After changes my Layer tag is
LAYER
NAME "DGN"
CONNECTIONTYPE OGR
STATUS ON
TILEINDEX "index_dgn.shp"
TILEITEM "location"
TYPE LINE
UNITS METERS
CLASS
NAME "DGN"
STYLE
ANGLE 360
COLOR 240 215 209
SYMBOL "LineDash"
WIDTH 1
END
END
END
and the error message is
INPUT=SHAPEFILE
Exception executing MapControl::RefreshMap
7/13/2011 4:30:13 PM|msConnPoolRegister(): General error message.
Missing CONNECTION on layer DGN.;msConnPoolRegister(): General error
message. Missing CONNECTION on layer DGN.;msConnPoolRegister():
General error message. Missing CONNECTION on layer
DGN.;msConnPoolRegister(): General error message. Missing CONNECTION
on layer DGN.;msConnPoolRegister(): General error message. Missing
CONNECTION on layer DGN.;msConnPoolRegister(): General error message.
Missing CONNECTION on layer DGN.
7/13/2011 4:30:13 PM| at OSGeo.MapServer.mapObj.draw()
at MapCreator.Controls.MapControl.RefreshMap()
Regards,
Dave C.
On 7/12/11, Brent Fraser <bfraser at geoanalytic.com> wrote:
> Dave,
>
> I've had good success rendering DGN files referenced in a TILEINDEX
> (http://lists.osgeo.org/pipermail/mapserver-users/2010-December/067444.html).
> Try adding ".shp" to the end of your TILEINDEX:
>
> TILEINDEX "index_dg.shp"
>
> as OGR handles the files differently than Mapserver's native shapefile
> mechanism.
>
> Best Regards,
> Brent Fraser
>
>
> On 7/12/2011 6:25 AM, Dave Chetan wrote:
>> Dear Jukka,
>>
>> Yes, I am able to publish single DGN.
>> But when I go for tiled dgn, I have error.
>>
>> Regards,
>> Dave C.
>>
>> On 7/12/11, Rahkonen Jukka<Jukka.Rahkonen at mmmtike.fi> wrote:
>>> Hi,
>>>
>>> I have never played with DGN files with Mapserver. I would blindly follow
>>> the documents and try first with just one DGN file as in
>>> http://mapserver.org/input/vector/dgn.html
>>> and forward next to ogrtileindex as in
>>> http://mapserver.org/input/vector/ogr.html
>>> Perhaps there is something important in the syntax of TILEINDEX given in
>>> the
>>> following example.
>>>
>>> LAYER
>>> NAME "ogr_points"
>>> TYPE POINT
>>> CONNECTIONTYPE OGR
>>> TILEINDEX "PIP_ogr_tiles.shp,0"
>>>
>>> -Jukka Rahkonen-
>>> ________________________________________
>>> Lähettäjä: Dave Chetan [csdave4u at gmail.com]
>>> Lähetetty: 12. heinäkuuta 2011 14:58
>>> Vastaanottaja: Rahkonen Jukka
>>> Kopio: mapserver-users at lists.osgeo.org
>>> Aihe: Re: [mapserver-users] msShapefileOpen(): Unable to access file
>>>
>>> Hi Rahkonen,
>>>
>>> Thanks for the prompt reply..!!
>>>
>>> If I add
>>> CONNECTIONTYPE OGR
>>>
>>> in the Layer Tag, then 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()
>>>
>>> Regards,
>>> Dave C.
>>>
>>>
>>> On 7/12/11, Rahkonen Jukka<Jukka.Rahkonen at mmmtike.fi> wrote:
>>>> 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
>>>>
>> _______________________________________________
>> 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