[Chameleon] ROIFeatureTool

William Bronsema wbronsema at dmsolutions.ca
Fri Oct 5 08:48:35 EDT 2007


Hi Robert,

 

In the Chameleon samples the "selected layer" is the one in the legend that
is has it's radio button selected, not it's checkbox.  The checkbox is for
layer status.  Unfortunately in the Chameleon ROI sample the feature ROI
does not work because all the layers are WMS and/or rasters.

 

As a bit of background, ROIs are regions of interest.  Take the rectangle
ROI for instance.  It will define a rectangle on the map as a region of
interest that other widgets can work with.  If you pick "add mode" then as
you add multiple rectangles, they will accumulate on the map in an additive
way.  If you pick "replace mode" then when you create a second rectangle, it
replaces the first only ever allowing you to have a single rectangle region
of interest.  "Subtract mode" allows you to create holes in your region of
interest.  Create a rectangle with "add" or "replace" mode then switch to
"subtract" mode and draw a smaller rectangle inside the first.  You will see
a "hole" appear in the ROI.

 

Other shapes can be used and mixed and matched - circles, polygons, and
features.  The feature ROI only works on vector layers (ie. road shapefile).
The feature ROI is just a click type tool, no dragging.  When you try to
drag, the black bar with circle is indicating that dragging is not possible.

 

The error report widget only reports errors with loading widgets.  It does
not track any javascript or apache errors.  The Apache error you are getting
can be ignored, it is a common notice with the ms4w installation.

 

 

At this point I would try the app and be sure that the correct vector layer
is being selected in the legend via it's radio button and make sure you are
in "add" or "replace" mode.  Be sure that you have the ROI feature tool
selected, then try to click on a feature on the map for the selected layer.

 

 

HTH

 

Cheers,

Bill

 

William Bronsema

Senior Applications Specialist

DM Solutions Group Inc.

 

___________________________________

http://www.dmsolutions.ca

 

From: Buchholz, Robert [mailto:Robert.Buchholz at LUA.Brandenburg.de] 
Sent: Friday, October 05, 2007 3:06 AM
To: William Bronsema
Cc: chameleon at lists.maptools.org
Subject: AW: [Chameleon] ROIFeatureTool

 

Hi Bill,

 

I select a layer (.shp) by the checkbox, I can identify its features by the
i-button (identify feature) at the nav tools.

At the ROItools I use the button "Define a ROI  by selecting existing
features" and click to the same feature as before and

->nothing happens by clicking in with the mouse. 

If I click and move the mouse a black circle with a black bar is presented.

 

I do not know what is the 

-add mode

-replace Mode

-substract mode

for?

 

I can not stop the 

-rectangular tool

-circle tool

 

The "clear selected query area" is not clearing.

 

 

The chameleon error report looks like disabled. ->Warnings->No Errors (how
to enable?)

error.log of Apache states:

[client 0.0.0.0.0] File does not exist: C:/ms4w/Apache/htdocs/favicon.ico

 

Does this help?

 

Greetings,

Robert

 

 

  _____  

Von: William Bronsema [mailto:wbronsema at dmsolutions.ca] 
Gesendet: Donnerstag, 4. Oktober 2007 18:03
An: Buchholz, Robert
Cc: chameleon at lists.maptools.org
Betreff: RE: [Chameleon] ROIFeatureTool

Robert,

 

Can you be more specific as to what error you are getting?

 

Bill

 

 

William Bronsema

Senior Applications Specialist

DM Solutions Group Inc.

 

___________________________________

http://www.dmsolutions.ca

 

From: Buchholz, Robert [mailto:Robert.Buchholz at LUA.Brandenburg.de] 
Sent: Thursday, October 04, 2007 11:58 AM
To: William Bronsema
Cc: chameleon at lists.maptools.org
Subject: AW: [Chameleon] ROIFeatureTool

 

Hi Bill,

 

Ok, if I have this file. Then this widget that sets the active layer?

In my case it is the LegendTemplate.html, because I added the
CustomTreeLegend widget.

The LegendTemplate.html states:

...onclick="CWCSelectLayer('[leg_layer_name]', true)"...

Can I assume that this widget sets the active layer???

If yes, the error as mentioned in your link is still there and I do not have
a idea how to improve -get Select by feature/Buffer working-

If not, what to look for?

 

I hope to get this run by yours and lists experiance,

Robert

 

  _____  

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


More information about the Chameleon mailing list