MapTools.org

[maplab-users] Re: [Fwd: query]

Dean Gadoury gadoury@dmsolutions.ca
Fri, 18 Jul 2003 09:57:01 -0400
Just a note: you can put the value for TEMPLATE in either the CLASS or 
LAYER object. If you only have one class there will be no difference. If 
you have more than one class and you want all classes to return results, 
put the TEMPLATE value in the LAYER object. If you have more than one 
class you will need to put a value for TEMPLATE in each class you want 
queried. That way you can prevent certain classes from being queried if 
you want.

Jeff McKenna wrote:

> Hi Paul,
>
> Yes it is possible to query the dbf files of shapefiles using MapLab. 
> Simply add a TEMPLATE in the CLASS object of the layer that you want 
> to query.  MapLab looks for the word "TEMPLATE" in the class object.  
> The template value can be anything, the file does not exist so just 
> make up something. e.g.:
>
>   LAYER
>     NAME "oceans"
>     STATUS ON
>     DATA "ocean75m"
>     TYPE POLYGON
>     UNITS METERS
>     CLASS
>       COLOR 0 0 200
>       TEMPLATE "ttt"
>     END
>   END
>
> obviously "ttt" is not a valid file, but MapLab just looks for the 
> presence of TEMPLATE in the CLASS object.  Hope this helps.
>
> By the way, any further MapLab questions should be sent to the MapLab 
> user list (http://lists.dmsolutions.ca/mailman/listinfo/maplab-users) 
> so that developers and other MapLab users can help you.  Thanks.
>
>
> Jeff
>
>
>
>
>
>>
>> Can you point me to a resource where I can get some information on 
>> how to
>> add query layers using maplab? Is it possible to query the dbf files of
>> shapefiles using maplab?
>>
>> Paul
>>
>>
>>
>>
>
>

-- 
___________________________

Dean Gadoury

DM Solutions Group
72 Chamberlain Ave. Third Floor
Ottawa, Ontario. K1S 1V9
613 565-5056 ext. 24

gadoury@dmsolutions.ca
www.dmsolutions.ca






This archive was generated by Pipermail.