GEOS 3.6.2
MultiPoint.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2011 Sandro Santilli <strk@keybit.net>
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
8 * Copyright (C) 2005 2006 Refractions Research Inc.
9 *
10 * This is free software; you can redistribute and/or modify it under
11 * the terms of the GNU Lesser General Public Licence as published
12 * by the Free Software Foundation.
13 * See the COPYING file for more information.
14 *
15 **********************************************************************
16 *
17 * Last port: geom/MultiPoint.java r320 (JTS-1.12)
18 *
19 **********************************************************************/
20
21#ifndef GEOS_GEOS_MULTIPOINT_H
22#define GEOS_GEOS_MULTIPOINT_H
23
24#include <geos/export.h>
25#include <geos/platform.h>
26#include <geos/geom/GeometryCollection.h> // for inheritance
27#include <geos/geom/Puntal.h> // for inheritance
28#include <geos/geom/Dimension.h> // for Dimension::DimensionType
29
30#include <geos/inline.h>
31
32#include <string>
33#include <vector>
34
35namespace geos {
36 namespace geom { // geos::geom
37 class Coordinate;
39 }
40}
41
42namespace geos {
43namespace geom { // geos::geom
44
45#ifdef _MSC_VER
46#pragma warning(push)
47#pragma warning(disable:4250) // T1 inherits T2 via dominance
48#endif
49
55class GEOS_DLL MultiPoint: public GeometryCollection, public Puntal
56{
57
58public:
59
60 friend class GeometryFactory;
61
62 virtual ~MultiPoint();
63
66
69
80
81 std::string getGeometryType() const;
82
84
85 bool equalsExact(const Geometry *other, double tolerance=0) const;
86
87 Geometry *clone() const { return new MultiPoint(*this); }
88
89protected:
90
109 MultiPoint(std::vector<Geometry *> *newPoints, const GeometryFactory *newFactory);
110
111 MultiPoint(const MultiPoint &mp): Geometry(mp), GeometryCollection(mp) {}
112
113 const Coordinate* getCoordinateN(int n) const;
114};
115
116#ifdef _MSC_VER
117#pragma warning(pop)
118#endif
119
120} // namespace geos::geom
121} // namespace geos
122
123#endif // ndef GEOS_GEOS_MULTIPOINT_H
The default implementation of CoordinateSequence.
Definition CoordinateArraySequence.h:37
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
DimensionType
Definition Dimension.h:31
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
virtual GeometryTypeId getGeometryTypeId() const
Return an integer representation of this Geometry type.
MultiPoint(std::vector< Geometry * > *newPoints, const GeometryFactory *newFactory)
Constructs a MultiPoint.
Geometry * clone() const
Definition MultiPoint.h:87
int getBoundaryDimension() const
Returns Dimension::False (Point has no boundary).
Dimension::DimensionType getDimension() const
Returns point dimension (0).
bool equalsExact(const Geometry *other, double tolerance=0) const
Returns true if the two Geometrys are exactly equal, up to a specified tolerance.
Geometry * getBoundary() const
Gets the boundary of this geometry.
std::string getGeometryType() const
Return a string representation of this Geometry type.
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
GeometryTypeId
Geometry types.
Definition Geometry.h:65
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25