[maplab-users] query work now

charley cheng chengcharlie2003 at yahoo.ca
Wed Jul 28 02:48:49 EDT 2004


Hi! Zak,
 
I final get the query work, the problem is that I select the standard html tools under map tools option of GMapfactory. The i button can not draw the rectengle around my point. I guess that the query function need the coordinate of piont, it is hard to get the correct coodinate by click only, it is necessary to draw the rectangle to include the point.
 
Thank you very much for  your help
 
Charlie

Zak James <zak-ms at hoppsan.org> wrote:
Charlie,

Are you getting any error messages in your browser window or webserver 
error log? Did you try turning the logging for gmapfactory on? It's 
hard to make suggestions because the information you're giving isn't 
very specific.

zak
--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca


On Jul 27, 2004, at 3:49 PM, charley cheng wrote:

> Hi! Dear list,
>
> I have to post my question again. I still could not find the easy way 
> to made query function work in maplab.
>
> I checked the turtorial example with maplab, for the popplace layer, 
> it put ttt_query.html as template value. However, the i button does 
> not work in the tutorial example either.
>
> Sorry for keeping ask the same question!
>
> Thank you!
>
> Charlie
>
> Note: forwarded message attached.
>
>
>
> ---------------------------------
> Post your free ad now! Yahoo! Canada Personals
>
> From: charley cheng 
> Date: July 22, 2004 1:38:10 PM EDT
> To: maplab help 
> Subject: how to make the i button work
>
>
> Hi! Dear lists,
>
> The maplab i button (query) does not work. According to the previous 
> forum from Jeff Mckenna (see below), I put the template html with path 
> or attribute value in DBF or ttt only in the template seting in 
> mapedit. The return html is same, " the following layers did not 
> return any results:---- plus all name of layer---".
>
> If I want to query dbf information in maplab, how I made the i button 
> work? In other word, how to set template parameter in mapedit?
>
> Some previous forum mentioned the query template does not work in 
> maplab and the only way is to modify query.phtml in GMf_apps. Is it 
> true?
>
> Thank you very much!!
>
> Charlie
>
>
>
>
>
> 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
>>
>>
>
>
>
>
> ---------------------------------
> Post your free ad now! Yahoo! Canada Personals
>
>
> _______________________________________________
> Maplab-users mailing list
> Maplab-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users




---------------------------------
Post your free ad now! Yahoo! Canada Personals
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20040728/8c546cc0/attachment.htm


More information about the Maplab-users mailing list