00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef GEOS_GEOS_MULTIPOINT_H
00022 #define GEOS_GEOS_MULTIPOINT_H
00023
00024 #include <geos/export.h>
00025 #include <geos/platform.h>
00026 #include <geos/geom/GeometryCollection.h>
00027 #include <geos/geom/Dimension.h>
00028
00029 #include <geos/inline.h>
00030
00031 #include <string>
00032 #include <vector>
00033
00034 namespace geos {
00035 namespace geom {
00036 class Coordinate;
00037 class CoordinateArraySequence;
00038 }
00039 }
00040
00041 namespace geos {
00042 namespace geom {
00043
00048 class GEOS_DLL MultiPoint: public GeometryCollection {
00049
00050 public:
00051
00052 friend class GeometryFactory;
00053
00054 virtual ~MultiPoint();
00055
00057 Dimension::DimensionType getDimension() const;
00058
00060 int getBoundaryDimension() const;
00061
00071 Geometry* getBoundary() const;
00072
00073 std::string getGeometryType() const;
00074
00075 virtual GeometryTypeId getGeometryTypeId() const;
00076
00077 bool equalsExact(const Geometry *other, double tolerance=0) const;
00078
00079 Geometry *clone() const { return new MultiPoint(*this); };
00080
00081 protected:
00082
00101 MultiPoint(std::vector<Geometry *> *newPoints, const GeometryFactory *newFactory);
00102
00103 MultiPoint(const MultiPoint &mp): GeometryCollection(mp) {}
00104
00105 const Coordinate* getCoordinateN(int n) const;
00106 };
00107
00108 }
00109 }
00110
00111
00112
00113
00114
00115 #endif // ndef GEOS_GEOS_MULTIPOINT_H
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133