<HTML dir=ltr><HEAD>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY>
<DIV><FONT color=#000000 size=2 face=Arial><SPAN style="COLOR: black; FONT-SIZE: 10pt">Hi All,<SPAN class=Apple-converted-space> </SPAN><BR><BR>I have a tileindex which is based on a postgis layer and everything works well.<SPAN class=Apple-converted-space> </SPAN><BR>I've put the 2 layers in one group in order to be able to get information from the index layer available for the users. When I use a shape file as an index this works fine. But when I use a postgis layer as index the following error occurs.<SPAN class=Apple-converted-space> </SPAN><BR><BR><BR>==error==<SPAN class=Apple-converted-space> </SPAN><BR>msShapefileOpen(): Unable to access file. (/mapserver/www/cgi-bin/maps/_tmk-index) msShapefileOpen(): Unable to access file. (/mapserver/www/cgi-bin/maps/_tmk-index) msShapefileOpen(): Unable to access file. (/mapserver/www/cgi-bin/maps/_tmk-index) msShapefileOpen(): Unable to access file. (/mapserver/www/cgi-bin/maps/_tmk-index)<SPAN class=Apple-converted-space> </SPAN><BR>====<SPAN class=Apple-converted-space> </SPAN><BR><BR>It seems mapserver expects a shapefile and can not handle the postgis index layer for the getfeatureinfo.<SPAN class=Apple-converted-space> </SPAN><BR><BR>Does someone has any idea what can be wrong?<SPAN class=Apple-converted-space> </SPAN><BR><BR>Thanks in advance,<SPAN class=Apple-converted-space> </SPAN><BR><BR>Ronnie<SPAN class=Apple-converted-space> </SPAN><BR><BR>====part of the map file==<SPAN class=Apple-converted-space> </SPAN><BR> LAYER<SPAN class=Apple-converted-space> </SPAN><BR>    GROUP "Topographische_en_militaire_kaart"<SPAN class=Apple-converted-space> </SPAN><BR>    NAME "_tmk-index"<SPAN class=Apple-converted-space> </SPAN><BR>    METADATA<SPAN class=Apple-converted-space> </SPAN><BR>     WMS_TITLE "Topographische_en_militaire_kaart-index"<SPAN class=Apple-converted-space> </SPAN><BR>     WMS_ABSTRACT "Topographische en militaire kaart-index"<SPAN class=Apple-converted-space> </SPAN><BR>     WMS_NAME "Topographische_en_militaire_kaart-index"<SPAN class=Apple-converted-space> </SPAN><BR>     WMS_SRS "EPSG:4326 EPSG:900913 EPSG:3785 EPSG:28992"<SPAN class=Apple-converted-space> </SPAN><BR>     gml_include_items "location"<SPAN class=Apple-converted-space> </SPAN><BR>     WMS_FEATURE_INFO_MIME_TYPE "text/html"<SPAN class=Apple-converted-space> </SPAN><BR>    END<SPAN class=Apple-converted-space> </SPAN><BR>    EXTENT 10000 305000 280000 619000<SPAN class=Apple-converted-space> </SPAN><BR>    PROJECTION<SPAN class=Apple-converted-space> </SPAN><BR>     "init=epsg:28992"<SPAN class=Apple-converted-space> </SPAN><BR>    END<SPAN class=Apple-converted-space> </SPAN><BR>    CONNECTION "user=postgres password=P0stG!s dbname=gisdb host=localhost port=5432"<SPAN class=Apple-converted-space> </SPAN><BR>    CONNECTIONTYPE postgis<SPAN class=Apple-converted-space> </SPAN><BR>    DATA "geom from (SELECT kaartbladid ,location,geom FROM vw_bladgrenzen_rd WHERE serie_id = 2) as grens USING UNIQUE kaartbladid "<SPAN class=Apple-converted-space> </SPAN><BR><BR>    STATUS ON<SPAN class=Apple-converted-space> </SPAN><BR>    DUMP TRUE<SPAN class=Apple-converted-space> </SPAN><BR>    TEMPLATE "/mapserver/www/infotemplates/tmk_scan_leeg.html"<SPAN class=Apple-converted-space> </SPAN><BR>    TYPE POLYGON<SPAN class=Apple-converted-space> </SPAN><BR>    UNITS METERS<SPAN class=Apple-converted-space> </SPAN><BR>    MAXSCALE 8000000<SPAN class=Apple-converted-space> </SPAN><BR>    MINSCALE 500<SPAN class=Apple-converted-space> </SPAN><BR>  END<SPAN class=Apple-converted-space> </SPAN><BR><BR><BR> LAYER<SPAN class=Apple-converted-space> </SPAN><BR>    GROUP "Topographische_en_militaire_kaart"<SPAN class=Apple-converted-space> </SPAN><BR>    NAME "tmk-scan"<SPAN class=Apple-converted-space> </SPAN><BR>    METADATA<SPAN class=Apple-converted-space> </SPAN><BR>     WMS_TITLE "Topographische_en_militaire_kaart-scan"<SPAN class=Apple-converted-space> </SPAN><BR>     WMS_ABSTRACT "Topographische en militaire kaart-scan"<SPAN class=Apple-converted-space> </SPAN><BR>     WMS_NAME "nsw-landgoederen"<SPAN class=Apple-converted-space> </SPAN><BR>     WMS_SRS "EPSG:4326 EPSG:900913 EPSG:3785 EPSG:28992"<SPAN class=Apple-converted-space> </SPAN><BR>     gml_include_items "all"<SPAN class=Apple-converted-space> </SPAN><BR>     WMS_FEATURE_INFO_MIME_TYPE "text/html"<SPAN class=Apple-converted-space> </SPAN><BR>    END<SPAN class=Apple-converted-space> </SPAN><BR>    EXTENT 10000 305000 280000 619000<SPAN class=Apple-converted-space> </SPAN><BR>    PROJECTION<SPAN class=Apple-converted-space> </SPAN><BR>     "init=epsg:28992"<SPAN class=Apple-converted-space> </SPAN><BR>    END<SPAN class=Apple-converted-space> </SPAN><BR>    TILEINDEX "_tmk-index"<SPAN class=Apple-converted-space> </SPAN><BR>    TILEITEM "location"<SPAN class=Apple-converted-space> </SPAN><BR>    STATUS ON<SPAN class=Apple-converted-space> </SPAN><BR>    DUMP TRUE<SPAN class=Apple-converted-space> </SPAN><BR>    TEMPLATE "/mapserver/www/infotemplates/tmk_scan_leeg.html"<SPAN class=Apple-converted-space> </SPAN><BR>    TYPE RASTER<SPAN class=Apple-converted-space> </SPAN><BR>    UNITS METERS<SPAN class=Apple-converted-space> </SPAN><BR>    MAXSCALE 8000000<SPAN class=Apple-converted-space> </SPAN><BR>    MINSCALE 500<SPAN class=Apple-converted-space> </SPAN><BR>    PROCESSING "BANDS=1,2,3"<SPAN class=Apple-converted-space> </SPAN><BR>    OFFSITE 0 0 0<SPAN class=Apple-converted-space> </SPAN><BR>  END<SPAN class=Apple-converted-space> </SPAN><BR></SPAN></FONT></DIV></BODY></HTML>