pythonmathareashapely

Specific Algorithm that shapely.geometry.Polygon.area uses


Can anyone point me to any documentation/source code that refers to which algorithm shapely.area uses?

Thanks in advance.


Solution

  • As mentioned in my comment, shapely is just a wrapper for GEOS, so I guess what you're looking for is this:

    https://github.com/libgeos/geos/blob/main/src/algorithm/Area.cpp

    And the used algorithm seems to be the Shoelace Formula.