GEOS 3.15.0dev
Length.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2018 Paul Ramsey <pramsey@cleverlephant.ca>
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************
14 *
15 * Last port: algorithm/Length.java @ 2017-09-04
16 *
17 **********************************************************************/
18
19#pragma once
20
21#include <geos/export.h>
22#include <geos/geom/Coordinate.h>
23#include <geos/geom/CoordinateSequence.h>
24
25#include <vector>
26
27namespace geos {
28namespace algorithm { // geos::algorithm
29
35class GEOS_DLL Length {
36public:
37
44 static double ofLine(const geom::CoordinateSequence* ring);
45
52 static double ofLine(const std::vector<geom::CoordinateXY>& ring);
53
54};
55
56
57} // namespace geos::algorithm
58} // namespace geos
59
60
Functions for computing length.
Definition Length.h:35
static double ofLine(const std::vector< geom::CoordinateXY > &ring)
static double ofLine(const geom::CoordinateSequence *ring)
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
Basic namespace for all GEOS functionalities.
Definition geos.h:38