Opened 14 years ago

Closed 5 years ago

#324 closed enhancement (invalid)

getArea() support for LinearRing?

Reported by: rcoup Owned by: strk
Priority: minor Milestone: GEOS Fund Me
Component: Core Version: 3.2.0
Severity: Feature Request Keywords:
Cc:

Description

getArea() is not implemented for LinearRing geometry objects.

I think from a very brief look at the code it could be implemented by something along the lines of:

double
LinearRing::getArea() const
{
        const CoordinateSequence *h = getCoordinatesRO();
        return fabs(algorithm::CGAlgorithms::signedArea(h));
}

I'd imagine Polygon::getArea() should also be updated to call LinearRing::getArea() :)

Change History (3)

comment:1 by strk, 13 years ago

Milestone: GEOS Future
Type: defectenhancement

JTS drives design, consider suggesting this to the jts list: https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

comment:2 by robe, 6 years ago

Milestone: GEOS FutureGEOS Fund Me

Milestone renamed

comment:3 by dbaston, 5 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.