[mapserver-users] Trouble with MS 6.2.1 and native vector tileindex

Rahkonen Jukka jukka.rahkonen at mmmtike.fi
Tue Jun 4 04:56:26 PDT 2013


Hi,

I have been using for some years a biggish shapefile directory through shapefile tileindex. The layer is in production with Mapserver 6.0 (MS4W) and the layer is defined like this

LAYER
  NAME "bunch_of_shapes"
  TYPE POLYGON
  #CONNECTIONTYPE OGR #don't use, it breaks classification and GetFeatureInfo
  #left here as a reminder on 2010-10-20 JRA
  TILEINDEX "/data/tindex/polygon_idx.shp,0"

As you notice, two and a half years ago I had troubles with vector tile index and OGR connection but the native Mapserver method has been working perfectly. Now I am testing MS 6.2.1 on Linux and these settings do not work for me anymore.  I am getting these errors into the MS_ERRORFILE

[Tue Jun  4 13:45:10 2013].955587 msDrawMap(): rendering using outputformat named AGG_Q (AGG/PNG).
[Tue Jun  4 13:45:10 2013].955603 msDrawMap(): WMS/WFS set-up and query, 0.000s
[Tue Jun  4 13:45:10 2013].955679 msShapefileOpen(): Unable to access file. (/maasto1/MM18K2BP.SHP,0)
[Tue Jun  4 13:45:10 2013].955695 msShapefileOpen(): Unable to access file. (/maasto1/MM18K2BP.SHP,0)
[Tue Jun  4 13:45:10 2013].955707 msShapefileOpen(): Unable to access file. (/maasto1/MM18K2BP.SHP,0)
[Tue Jun  4 13:45:10 2013].955714 msTiledSHPTryOpen(): Unable to access file. Unable to open shapefile '/maasto1/MM18K2BP.SHP,0' for layer 'bunch_of_shapes' ... fatal error.
[Tue Jun  4 13:45:10 2013].955721 msDrawMap(): Image handling error. Failed to draw layer named 'bunch_of_shapes'.
[Tue Jun  4 13:45:10 2013].955747 mapserv request processing time (msLoadMap not incl.): 0.001s

The shapefile in the message is the first tile in ogrtileindex shapefile. I was using this command for creating the tileindex:

ogrtileindex polygon_idx.shp /maasto1/*.SHP

If I use CONNECTIONTYPE OGR this very same tileindex works fine and I can see the layer on a map. However, I have not tested if the classification and GetFeatureInfo problems from year 2010 are still present.

Has there been any chances in the native vector tileindex system since MS version 6.0?

Regards,

-Jukka Rahkonen-



More information about the mapserver-users mailing list