ROI widgets

View: New views
3 Messages — Rating Filter:   Alert me  

ROI widgets

by Berényi Attila :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear List,

I'm trying to make ROI widgets work...but after I define a region (circle, rectangle, polygon) I cannot get any information about that. How could I use this widgets? What I need is e.g. area calculation for a polygon, and similar tasks.

Thanks in advance,

Attila

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

Re: ROI widgets

by nsavard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Berényi Attila wrote:
> Dear List,
>
> I'm trying to make ROI widgets work...but after I define a region
> (circle, rectangle, polygon) I cannot get any information about that.
> How could I use this widgets? What I need is e.g. area calculation for
> a polygon, and similar tasks.
>
Attila,

After you define a ROI you can retrieve the extents by using the
goCWCROIManager object in JavaScript.  To test it you can add the
following line somewhere in your template:

<input type="button" onclick="alert(goCWCROIManager.geoMinX)"/>

You can also access to the extents by looking to the ROIRENDERER session
variable in PHP.

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

Re: ROI widgets

by Berényi Attila :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Norm,

Thanks for the answer, I'm close to the solution :)
I suggest everyone to use the ROIArea widget, it's a great tool!

Attila

Normand Savard írta:
Berényi Attila wrote:
Dear List,

I'm trying to make ROI widgets work...but after I define a region (circle, rectangle, polygon) I cannot get any information about that. How could I use this widgets? What I need is e.g. area calculation for a polygon, and similar tasks.

Attila,

After you define a ROI you can retrieve the extents by using the goCWCROIManager object in JavaScript.  To test it you can add the following line somewhere in your template:

<input type="button" onclick="alert(goCWCROIManager.geoMinX)"/>

You can also access to the extents by looking to the ROIRENDERER session variable in PHP.

Norm



-- 
Berényi Attila / Attila Berényi
okl. térinformatikus mérnök / MSc. GIS engineer
Burken Kft. / Burken Ltd.

H-1155 Budapest, Obsitos tér 2.
Tel1: +36-1-415-0219
Tel2: +36-1-415-0220
Fax:  +36-1-410-1314
E-mail: aberenyi@...
Web: http://www.laservision.hu

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