00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef GEOS_GEOS_LINEARRING_H
00022 #define GEOS_GEOS_LINEARRING_H
00023
00024 #include <geos/export.h>
00025 #include <string>
00026 #include <vector>
00027 #include <geos/platform.h>
00028 #include <geos/geom/LineString.h>
00029
00030 #include <geos/inline.h>
00031
00032
00033 namespace geos {
00034 namespace geom {
00035 class Coordinate;
00036 class CoordinateArraySequence;
00037 }
00038 }
00039
00040 namespace geos {
00041 namespace geom {
00042
00058 class GEOS_DLL LinearRing : public LineString {
00059
00060 public:
00061
00066 static const unsigned int MINIMUM_VALID_SIZE = 4;
00067
00068 LinearRing(const LinearRing &lr);
00069
00082 LinearRing(CoordinateSequence* points,
00083 const GeometryFactory *newFactory);
00084
00086 LinearRing(CoordinateSequence::AutoPtr points,
00087 const GeometryFactory *newFactory);
00088
00089 virtual Geometry *clone() const { return new LinearRing(*this); }
00090
00091 virtual ~LinearRing();
00092
00099 int getBoundaryDimension() const;
00100
00109 bool isSimple() const;
00110
00111 bool isClosed() const;
00112
00113 std::string getGeometryType() const;
00114
00115 virtual GeometryTypeId getGeometryTypeId() const;
00116
00117 void setPoints(CoordinateSequence* cl);
00118
00119 Geometry* reverse() const;
00120
00121 private:
00122
00123 void validateConstruction();
00124 };
00125
00126
00127 }
00128 }
00129
00130
00131
00132
00133
00134 #endif // ndef GEOS_GEOS_LINEARRING_H
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151