[Chameleon] Re: Buffer Functionality
Buchholz, Robert
Robert.Buchholz at LUA.Brandenburg.de
Fri Sep 21 06:49:52 EDT 2007
Dear List, hey Wiliam,
adding the
buffer ="true" to the sample_ogc.html to the ROIFeatureTool widget result in my application in:
-Error Report-> Warning(s)->Warning: following attributes are invalid for a roifeaturetool widget: BUFFER.
-I imagened to find a button to press...opening another window...asking for bufferdistance, feature to buffer.
I do have set one layer active.
Some help would be very nice,
Robert
Hi Vinod,
Do you have a LegendTemplate widget that sets the active layer?
Please be sure to include the Chameleon mailing list when you ask or reply
to a question, other people might have a similar issue or know the solution.
Cheers,
Bill
William Bronsema
Senior Applications Specialist
DM Solutions Group Inc.
___________________________________
http://www.dmsolutions.ca
From: vinod kumar [mailto:vinodkumar_gis at yahoo.com]
Sent: Friday, July 20, 2007 12:24 AM
To: William Bronsema
Subject: Re: [Chameleon] Re: Buffer Functionality
Hi William,
Sorry to disturbu you again. Once I clicK the ROI button and click over the
map I get a Blured cross image on the right top corner and I am not able to
do buffer functionality. plz help me out. Thanks in advance
cheers,
V.Vinod
----- Original Message ----
From: William Bronsema <wbronsema at dmsolutions.ca>
To: vinod kumar <vinodkumar_gis at yahoo.com>
Cc: chameleon at lists.maptools.org
Sent: Thursday, July 19, 2007 5:32:54 PM
Subject: RE: [Chameleon] Re: Buffer Functionality
Hi Vinod,
Just add the ROIFeatureTool widget to your template, it should look
something like this:
<cwc2 type="ROIFeatureTool"
visible="true"
styleresource="NavButton"
image="images/icon_roi_feature.png"
imagetip="Define an ROI by feature"
buffer="true"
toolset="Navigation">
<image state="normal"/>
<image state="selected"/>
<image state="hover"/>
</cwc2>
Note the "buffer" parameter. If this is set to true then a textbox will be
visible beside the button., if false, then the textbox will be hidden. The
textbox id is called "featureBuffer" so you can use javascript to set it if
it is hidden. This textbox is the buffer amount you wish to use in your
feature ROI selection. It is is the same units as your mapfile. I.e. if
your map is in metres then entering 5000 in this textbox would set a feature
buffer size of 5000 metres.
This widget works with Chameleon's concept of the "active layer". The
active layer is the layer in the mapfile that will be queried in order to
create a feature ROI with the supplied buffer. The active layer is usually
set through the LegendTemplate widget. Checkout the Chameleon samples to
see how this is implemented.
Hope this helps.
Cheers,
Bill
-----------------------------------------
Robert Buchholz
Sachbearbeiter (Trainee)
Referat GIS-Zentrale
Mail: Robert.Buchholz at LUA.Brandenburg.de
Internet: http://www.brandenburg.de/lua
Kein Zugang für elektronisch signierte sowie für verschlüsselte elektronische Daten.
-----------------------------------------
More information about the Chameleon
mailing list