Draw, indicate area (and perimeter) of a closed polygon?

Area, perimeter, as part of description of a closed polygon ?
It could also be useful as a tool to calculate an surface area on a bitmap layer.

@twinsun - I understand your contribution as an idea for a new feature. Thus I would like to point to this page
Here you can file an enhancement request.

Hello, some months ago I did some tests with a drawing, containing several shapes (closed polygons as a polypolygonshape, I think)
So, on mouseclick the question was , which shape I had selected.
The macro worked.
You have first to check the mouse coordinates and then run through all shapes, if the shape “contains” the mouse-coordinates, there exist C++ code in the internet, i converted to LO-basic )
If your question is still valid, I could try to “reanimate” the macro. And, i suppose, this is only part of the real question ?!

on administrators request I try to give more details.
first, I have no exact solution for the question. But what did I do and why.
I have got a drawing with several shapes (polgonshapes with LINES as edges).
I wanted to move a shape close to another shape without any gap. (sewing together and make a group)
So first you have to select two shapes. You have to mouseclick th shapes and in the macro, you have to identify the shapes , where you clicked inside.
Then you have access to the objebt “shape” and can move it, compute perimeters, chage colors/bitmaps or anything else.
( I found no other solution within LO (or OO) to identifiy a shape by mouseclick and to calculate anything you want do )

I see also, that it is a pity, that within LO it seems, that this “simple” topic: “return to me the name/address of a selected shape” has to be coded by the macro-developper. It should be a call to a subroutine

@JohannF, as per my other comment, feel free to provide greater detail about how you managed this (or a link to the macro). Thanks.

i try to extend my answer