00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
00017 #define GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
00018
00019 #include <vector>
00020
00021 #include <geos/geom/CoordinateSequenceFactory.h>
00022
00023 #include <geos/inline.h>
00024
00025
00026 namespace geos {
00027 namespace geom {
00028 class Coordinate;
00029 }
00030 }
00031
00032 namespace geos {
00033 namespace geom {
00034
00042 class CoordinateArraySequenceFactory: public CoordinateSequenceFactory {
00043
00044 public:
00045
00050 CoordinateSequence *create(std::vector<Coordinate> *coords) const;
00051
00052 CoordinateSequence *create(std::vector<Coordinate> *coords, size_t dims) const;
00053
00055 CoordinateSequence *create(size_t size, size_t dimension=3) const;
00056
00060 static const CoordinateSequenceFactory *instance();
00061 };
00062
00064 typedef CoordinateArraySequenceFactory DefaultCoordinateSequenceFactory;
00065
00066 }
00067 }
00068
00069 #ifdef GEOS_INLINE
00070 # include "geos/geom/CoordinateArraySequenceFactory.inl"
00071 #endif
00072
00073 #endif // ndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089