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 , 13 years ago
Milestone: | → GEOS Future |
---|---|
Type: | defect → enhancement |
comment:3 by , 5 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
JTS drives design, consider suggesting this to the jts list: https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user