[Chameleon] Re: Buffer Functionality

William Bronsema wbronsema at dmsolutions.ca
Thu Jul 19 08:02:54 EDT 2007


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

 

 

 

William Bronsema

Senior Applications Specialist

DM Solutions Group Inc.

 

___________________________________

http://www.dmsolutions.ca

 

From: vinod kumar [mailto:vinodkumar_gis at yahoo.com] 
Sent: Thursday, July 19, 2007 5:46 AM
To: William Bronsema
Subject: Re: [Chameleon] Re: Buffer Functionality

 

Hi

can u PLz breif me the coding. plz

----- Original Message ----
From: William Bronsema <wbronsema at dmsolutions.ca>
To: vinod kumar <vinodkumar_gis at yahoo.com>
Cc: chameleon at lists.maptools.org; "Delfos, Jacob"
<Jacob.Delfos at maunsell.com>
Sent: Wednesday, June 20, 2007 5:32:48 PM
Subject: RE: [Chameleon] Re: Buffer Functionality

Vinod,

 

I have recently added buffering to the ROIFetureTool widget.  It allows you
to create an ROI (region of interest) by selecting a feature on the map and
applying a buffer to it.  Take a look at the ROIManager/ROIRenderer.php code
and how it implements the buffering using PHPMapscript.  You will need a
later version of PHPMapscript compiled with GEOS for this to work.

 

Cheers,

Bill

 

From: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Delfos, Jacob
Sent: Tuesday, June 19, 2007 7:48 PM
To: vinod kumar
Cc: chameleon at lists.maptools.org
Subject: [Chameleon] Re: Buffer Functionality

 

Hi Vinod,

 

Sorry about the late response.

I think your question is more suited to the Chameleon list, because you're
more likely to get a (useful) answer. I have CC'd the list in here.

I believe that a buffer functionality has been integrated in the later
versions of php_mapscript, but you'd have to write a widget to apply it, I
think...

 

regards,

 

Jacob

 

 

  _____  

From: vinod kumar [mailto:vinodkumar_gis at yahoo.com] 
Sent: 15 June 2007 14:54
To: Delfos, Jacob
Subject: Hi jacob


Hi jacob

 

Is it possible to draw a buffer area around the point feature. If so please
help me out. Is there any widget in chameleon to buffer of equi distance
around a point. Rever me.

 

Regard 

V.Vinod Kumar

 

  _____  

Luggage? GPS? Comic books? 
Check out fitting gifts for grads
<http://us.rd.yahoo.com/evt=48249/*http:/search.yahoo.com/search?fr=oni_on_m
ail&p=graduation+gifts&cs=bz>  at Yahoo! Search.


This email and any attachments are intended solely for the named recipient
and are confidential. The copying or distribution of them or any information
they contain by anyone other than the named recipient is prohibited. If you
have received this document in error, please notify the sender and delete
all copies from your computer system and destroy all hard copies. It is the
recipient's responsibility to check this email and any attachments to this
email for viruses before use.

 

 

 

  _____  

Choose the right car based on your needs. Check out Yahoo!
<http://us.rd.yahoo.com/evt=48518/*http:/autos.yahoo.com/carfinder/;_ylc=X3o
DMTE3NWsyMDd2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDY2FyLWZpbmRlcg--%20>
Autos new Car Finder tool. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20070719/c2695f6e/attachment.html


More information about the Chameleon mailing list