[Chameleon] Re: Buffer Functionality

William Bronsema wbronsema at dmsolutions.ca
Fri Sep 21 10:46:25 EDT 2007


Hi Robert,

Hmmm, it sounds like you may not be able to use the buffer functionality.

If upgrading to the latest Chameleon and MS4W is not an option you could
potentially just upgrade the parts you need, but it's NOT a simple thing and
I can't guarantee success.

What you need to do is upgrade 2 widgets and your PHPMapscript.

To upgrade the widgets is pretty straight forward, just download the latest
Chameleon 2.6 and just upgrade the ROIFeatureTool and ROIManager widgets
(that should be it).  

PHPMapscript might be a little more of a challenge.  You will need to build
PHPMapscript against your current version of PHP and latest version of
Mapserver and include the GEOS libraries (required for the buffer
functionality).  Unless you are familiar with building modules for PHP, this
might be all but impossible.

Even if you get through all that, I have not tried this and cannot guarantee
that this will work or if you will need to update other widgets as well.

Good luck, sorry that I don't have better news.

Cheer,
Bill


William Bronsema
Senior Applications Specialist
DM Solutions Group Inc.

___________________________________
http://www.dmsolutions.ca


-----Original Message-----
From: Buchholz, Robert [mailto:Robert.Buchholz at LUA.Brandenburg.de] 
Sent: Friday, September 21, 2007 10:02 AM
To: William Bronsema
Subject: AW: [Chameleon] Re: Buffer Functionality

Hey Bill,

i am using Chameleon 2.4 on MS4W 1.6, because I have additional application
(MapLab) that need different php version (afaik) .
So i am interested in keeping it like this and trying to add a widget or
modify existing template.
Do you see any chance?

Saludos,
Robert


-----Ursprüngliche Nachricht-----
Von: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] Im Auftrag von William
Bronsema
Gesendet: Freitag, 21. September 2007 15:13
An: Buchholz, Robert; chameleon at lists.maptools.org
Betreff: RE: [Chameleon] Re: Buffer Functionality

Robert,

This functionality was just added in March of this year.  You will need to
be running Chameleon 2.6 RC1 to have this functionality.

Can you confirm which version you installed?

If you do get it working, what you will see is a textbox appear in which you
can supply a buffer value (in the current ground units of the map).  Since
the textbox is fairly ugly and not user friendly I typically leave the
buffer setting to false which makes the textbox a hidden element and use my
own input with javascript to programmatically set the buffer value.

Hope that helps.

Cheers,
Bill


William Bronsema
Senior Applications Specialist
DM Solutions Group Inc.

___________________________________
http://www.dmsolutions.ca


-----Original Message-----
From: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Buchholz, Robert
Sent: Friday, September 21, 2007 6:50 AM
To: chameleon at lists.maptools.org
Subject: [Chameleon] Re: Buffer Functionality

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.
-----------------------------------------

_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon


_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon




More information about the Chameleon mailing list