[Chameleon] query problem in chameleon

Jason Fournier jfournier at dmsolutions.ca
Sun Jul 18 10:01:42 EDT 2004


Having just looked quickly you might want to try putting the TEMPLATE on 
the LAYER object rather than the CLASS object.



mickel delay wrote:
> Dear list
> 
> Hi 
> i have a map file that contain an ecw raster  and a
> ovf layer(OGR connection) that display  location of
> park city with a star symbol in raster layer in
> chameleon.
> i want to use query tools in chameleon and when i
> click in each star then show result of query in html
> form.
> i change my map file for this goal and use from query
> tools in chameleon but this message appear in query
> form.
> "no queryable layers found"
> i enclose map file layers and ovf file .please direct
> me ASAP.
> regards .
> mickel
> ovf file
> ///
> <OGRVRTDataSource>
> 
>     <OGRVRTLayer name="capitalNames">
>         <SrcDataSource>ODBC:ovf</SrcDataSource>
>      <SrcLayer>queryresult</SrcLayer>
>     <GeometryType>wkbPoint</GeometryType>
>         <LayerSRS>WGS84</LayerSRS>
>     <GeometryField encoding="PointFromColumns"
> x="longitude" y="latitude"/>
>     </OGRVRTLayer>
> 
> </OGRVRTDataSource>
> ///
>  LAYER
>     NAME "ortofoto"
>     STATUS ON
>     DATA "c:/ms4w/apps/gmap/htdocs/map/ecw/city.ecw"
>     TYPE RASTER
>   END
>   LAYER
>     NAME "MyVirtualLayer"
>     STATUS ON
>     DATA "capitalNames"
>     TYPE POINT
>     CONNECTIONTYPE OGR
>     CONNECTION "c:/ms4w/apps/gmap/htdocs/virtual.ovf"
>     TOLERANCE 5
>        METADATA
>       "DESCRIPTION"    "MyVirtualLayer"
>       "RESULT_FIELDS"    "longitude"
>     END
>     
>     PROJECTION
>     "init=epsg:4326"
>     END
>     CLASS
>       NAME "longitude"
>       symbol 2
>       size 20
>       color 255 6 76
>       TEMPLATE "ttt_query.html"
>     END
>     END
> 
> END
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
________________________
Jason Fournier
Applications Development
DM Solutions Group Inc.
jfournier at dmsolutions.ca
www.dmsolutions.ca
613.565.5056 x18



More information about the Chameleon mailing list