/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2018 Paul Ramsey * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Licence as published * by the Free Software Foundation. * See the COPYING file for more information. * ********************************************************************** * * Last port: algorithm/Length.java @ 2017-09-04 * **********************************************************************/ #pragma once #include #include #include namespace geos { namespace algorithm { // geos::algorithm /** \brief * Functions for computing length. * * @author Martin Davis */ class GEOS_DLL Length { public: /** * Computes the length of a linestring specified by a sequence of points. * * @param ring the points specifying the linestring * @return the length of the linestring */ static double ofLine(const geom::CoordinateSequence* ring); }; } // namespace geos::algorithm } // namespace geos