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
00062 LinearRing(const LinearRing &lr);
00063
00076 LinearRing(CoordinateSequence* points,
00077 const GeometryFactory *newFactory);
00078
00080 LinearRing(CoordinateSequence::AutoPtr points,
00081 const GeometryFactory *newFactory);
00082
00083 virtual Geometry *clone() const { return new LinearRing(*this); }
00084
00085 virtual ~LinearRing();
00086
00093 int getBoundaryDimension() const;
00094
00103 bool isSimple() const;
00104
00105 std::string getGeometryType() const;
00106
00107 virtual GeometryTypeId getGeometryTypeId() const;
00108
00109 void setPoints(CoordinateSequence* cl);
00110
00111 Geometry* reverse() const;
00112
00113 private:
00114
00115 void validateConstruction();
00116 };
00117
00118
00119 }
00120 }
00121
00122
00123
00124
00125
00126 #endif // ndef GEOS_GEOS_LINEARRING_H
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143