00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef GEOS_GEOS_MULTIPOINT_H
00018 #define GEOS_GEOS_MULTIPOINT_H
00019
00020 #include <geos/platform.h>
00021 #include <geos/geom/GeometryCollection.h>
00022 #include <geos/geom/Dimension.h>
00023
00024 #include <geos/inline.h>
00025
00026 #include <string>
00027 #include <vector>
00028
00029 namespace geos {
00030 namespace geom {
00031 class Coordinate;
00032 class CoordinateArraySequence;
00033 }
00034 }
00035
00036 namespace geos {
00037 namespace geom {
00038
00043 class MultiPoint: public GeometryCollection {
00044
00045 public:
00046
00047 friend class GeometryFactory;
00048
00049 virtual ~MultiPoint();
00050
00052 Dimension::DimensionType getDimension() const;
00053
00055 int getBoundaryDimension() const;
00056
00058 Geometry* getBoundary() const;
00059
00060 std::string getGeometryType() const;
00061
00062 virtual GeometryTypeId getGeometryTypeId() const;
00063
00064
00065
00066 bool isSimple() const;
00067
00068 bool equalsExact(const Geometry *other, double tolerance=0) const;
00069
00070 Geometry *clone() const { return new MultiPoint(*this); };
00071
00072 protected:
00073
00092 MultiPoint(std::vector<Geometry *> *newPoints, const GeometryFactory *newFactory);
00093
00094 MultiPoint(const MultiPoint &mp): GeometryCollection(mp) {}
00095
00096 const Coordinate* getCoordinateN(int n) const;
00097 };
00098
00099 }
00100 }
00101
00102
00103
00104
00105
00106 #endif // ndef GEOS_GEOS_MULTIPOINT_H
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124