[mapserver-users] RE: Problems with Query Template (Chameleon)

Jeff McKenna jmckenna at gatewaygeomatics.com
Wed Apr 13 05:34:21 PDT 2011


Hello Andy,

I may not have your solution, but I can let you know what I would do in 
this situation:

- make sure GDAL/OGR is accessing your file properly (testing with the 
ogrinfo command on your old installation version and with your new 
installation GDAL version, and compare the ogrinfo results)
- test a simple query on your problem file in something other than 
Chameleon (e.g. install the MS4W addon "MapServer Itasca Demo 
Application" and try modifying that for your own mapfile, it is a 
MapServer CGI viewer with a query tool that you desire)
- once you know if it is an issue specific to Chameleon then move this 
question to the Chameleon mailing list
- if it isn't a Chameleon issue, you might have discovered an issue with 
MapServer/OGR....so don't give up!

Hope this helps.

-jeff

-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/






On 11-04-12 6:28 PM, Andy Hird wrote:
> Steve
>
> Thanks for the reply.
>
> There are no errors being logged and as I say it works for files which
> are not MapInfo Tab files. For instance the following works fine.
>
> LAYER
>
> NAME "10K StreetView"
>
> STATUS ON
>
> TYPE RASTER
>
> MINSCALEDENOM 6000                #600
>
> MAXSCALEDENOM 22499             #2999
>
> TILEINDEX "C:\ms4w\apps\XXXX\data\10K.shp"
>
> TILEITEM "LOCATION"
>
> CLASS
>
> TEMPLATE "templates/XXXX.html"  #TOLERANCE 6 TOLERANCEUNITS PIXELS
>
> END
>
> END
>
> I assume that this is because it’s a shp file which has a dbf file.
>
> This does not work:
>
> LAYER
>
> NAME "MasterMap Area"
>
> TYPE POLYGON
>
> MINSCALEDENOM 1
>
> MAXSCALEDENOM 5999
>
> STATUS ON
>
> CONNECTIONTYPE OGR
>
> CONNECTION "C:\ms4w\apps\XXXX\data\MM_Topo_Area.TAB"
>
> STYLEITEM "AUTO"
>
> CLASS
>
> TEMPLATE "templates/XXXX.html"  #TOLERANCE 6 TOLERANCEUNITS PIXELS
>
> END # Class section
>
> HEADER "templates/XXXX_header.html"
>
> FOOTER "templates/XXXX_footer.html"
>
> END
>
> Its bugging me like crazy as I can’t figure it out, - the second part of
> my question was:
>
> “However If someone can provide example of placing a button on a html
> page that would call query functionality that would be very helpful too.”
>
> If it’s easier for someone to advise on that it would be appreciated.
>
> Thanks
>
> Andy




More information about the MapServer-users mailing list