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

2011-07-13 Thread Dave Chetan
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 bfra...@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 Jukkajukka.rahko...@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 [csdav...@gmail.com]
 Lähetetty: 12. heinäkuuta 2011 14:58
 Vastaanottaja: Rahkonen Jukka
 Kopio: mapserver-users@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 Jukkajukka.rahko...@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

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

2011-07-13 Thread Brent Fraser

Dave,

Strange, it should work.  I'm using mapserver v5.6.3, with a layer def of:

  LAYER # LINE
NAME 'LINE'
CONNECTIONTYPE OGR
STATUS on
TILEINDEX G:\GeoData\1_250k\Alberta\AltaLIS\250k_west.shp
TYPE LINE
PROJECTION
  'proj=tmerc'
  'ellps=GRS80'
  'lat_0=0.0'
  'lon_0=-117.0'
  'x_0=50.0'
  'y_0=-500'
  'k=0.9996'
  'units=m'
  'nadgrids=@null'
  'no_defs'
END
INCLUDE AltaLIS_250k_render_inc.map
  END

and the content of the location attribute reported by ogrinfo is :

  LOCATION (String) = G:\GeoData\1_250k\Alberta\AltaLIS\82gpos.dgn


Try adding a PROJECTION object to your LAYER def.  And try using a full 
path in the TILEINDEX.


Best Regards,
Brent Fraser


On 7/13/2011 5:08 AM, Dave Chetan wrote:

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 Fraserbfra...@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 Jukkajukka.rahko...@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 [csdav...@gmail.com]
Lähetetty: 12. heinäkuuta 2011 14:58
Vastaanottaja: Rahkonen Jukka
Kopio: mapserver-users@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 Jukkajukka.rahko...@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

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

2011-07-13 Thread Rahkonen Jukka
Hi,

One remark: the missing connection error was a fault alarm (CONNECTION is not 
needed with TILEINDEX).  We got those lines into log file at least with 
Mapserver 5.2 series but it has been corrected later.  Version 6.0 does not 
produce those. I do not remember what was the situation with 5.4.x and 5.6.x.
Add DEBUG 5 into your layer, let's hope it will generate something useful into 
into Mapserver log.

-Jukka Rahkonen-

Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] k#228;ytt#228;j#228;n Brent Fraser 
[bfra...@geoanalytic.com] puolesta
Lähetetty: 13. heinäkuuta 2011 16:55
Vastaanottaja: Dave Chetan
Kopio: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] msShapefileOpen(): Unable to access file

Dave,

Strange, it should work.  I'm using mapserver v5.6.3, with a layer def of:

   LAYER # LINE
 NAME 'LINE'
 CONNECTIONTYPE OGR
 STATUS on
 TILEINDEX G:\GeoData\1_250k\Alberta\AltaLIS\250k_west.shp
 TYPE LINE
 PROJECTION
   'proj=tmerc'
   'ellps=GRS80'
   'lat_0=0.0'
   'lon_0=-117.0'
   'x_0=50.0'
   'y_0=-500'
   'k=0.9996'
   'units=m'
   'nadgrids=@null'
   'no_defs'
 END
 INCLUDE AltaLIS_250k_render_inc.map
   END

and the content of the location attribute reported by ogrinfo is :

   LOCATION (String) = G:\GeoData\1_250k\Alberta\AltaLIS\82gpos.dgn


Try adding a PROJECTION object to your LAYER def.  And try using a full
path in the TILEINDEX.

Best Regards,
Brent Fraser


On 7/13/2011 5:08 AM, Dave Chetan wrote:
 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 Fraserbfra...@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 Jukkajukka.rahko...@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 [csdav...@gmail.com]
 Lähetetty: 12. heinäkuuta 2011 14:58
 Vastaanottaja: Rahkonen Jukka
 Kopio: mapserver-users@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 Jukkajukka.rahko...@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

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

2011-07-12 Thread Dave Chetan
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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2011-07-12 Thread Rahkonen Jukka
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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2011-07-12 Thread Dave Chetan
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.rahko...@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@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2011-07-12 Thread Rahkonen Jukka
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 [csdav...@gmail.com]
Lähetetty: 12. heinäkuuta 2011 14:58
Vastaanottaja: Rahkonen Jukka
Kopio: mapserver-users@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.rahko...@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@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2011-07-12 Thread Dave Chetan
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.rahko...@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 [csdav...@gmail.com]
 Lähetetty: 12. heinäkuuta 2011 14:58
 Vastaanottaja: Rahkonen Jukka
 Kopio: mapserver-users@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.rahko...@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@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2011-07-12 Thread Brent Fraser

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 Jukkajukka.rahko...@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 [csdav...@gmail.com]
Lähetetty: 12. heinäkuuta 2011 14:58
Vastaanottaja: Rahkonen Jukka
Kopio: mapserver-users@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 Jukkajukka.rahko...@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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver