00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef GEOS_GEOS_MULTILINESTRING_H
00022 #define GEOS_GEOS_MULTILINESTRING_H
00023
00024 #include <geos/export.h>
00025 #include <geos/geom/GeometryCollection.h>
00026 #include <geos/geom/Lineal.h>
00027 #include <geos/geom/Dimension.h>
00028
00029 #include <string>
00030 #include <vector>
00031
00032 #include <geos/inline.h>
00033
00034
00035 namespace geos {
00036 namespace geom {
00037 class Coordinate;
00038 class CoordinateArraySequence;
00039 }
00040 }
00041
00042 namespace geos {
00043 namespace geom {
00044
00045 #ifdef _MSC_VER
00046 #pragma warning(push)
00047 #pragma warning(disable:4250) // T1 inherits T2 via dominance
00048 #endif
00049
00051 class GEOS_DLL MultiLineString: public GeometryCollection, public Lineal {
00052
00053 public:
00054
00055 friend class GeometryFactory;
00056
00057 virtual ~MultiLineString();
00058
00060 Dimension::DimensionType getDimension() const;
00061
00067 int getBoundaryDimension() const;
00068
00070 Geometry* getBoundary() const;
00071
00072 std::string getGeometryType() const;
00073
00074 virtual GeometryTypeId getGeometryTypeId() const;
00075
00076 bool isClosed() const;
00077
00078 bool equalsExact(const Geometry *other, double tolerance=0) const;
00079
00080 Geometry *clone() const;
00081
00091 MultiLineString* reverse() const;
00092
00093 protected:
00094
00114 MultiLineString(std::vector<Geometry *> *newLines,
00115 const GeometryFactory *newFactory);
00116
00117 MultiLineString(const MultiLineString &mp);
00118 };
00119
00120 #ifdef _MSC_VER
00121 #pragma warning(pop)
00122 #endif
00123
00124 }
00125 }
00126
00127 #ifdef GEOS_INLINE
00128 # include "geos/geom/MultiLineString.inl"
00129 #endif
00130
00131 #endif // ndef GEOS_GEOS_MULTILINESTRING_H