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
00020 #include <geos/export.h>
00021 #include <vector>
00022
00023 #include <geos/geom/CoordinateSequenceFactory.h>
00024
00025 #include <geos/inline.h>
00026
00027
00028 namespace geos {
00029 namespace geom {
00030 class Coordinate;
00031 }
00032 }
00033
00034 namespace geos {
00035 namespace geom {
00036
00044 class GEOS_DLL CoordinateArraySequenceFactory: public CoordinateSequenceFactory {
00045
00046 public:
00047
00052 CoordinateSequence *create(std::vector<Coordinate> *coords) const;
00053
00054 CoordinateSequence *create(std::vector<Coordinate> *coords, size_t dims) const;
00055
00057 CoordinateSequence *create(size_t size, size_t dimension=3) const;
00058
00062 static const CoordinateSequenceFactory *instance();
00063 };
00064
00066 typedef CoordinateArraySequenceFactory DefaultCoordinateSequenceFactory;
00067
00068 }
00069 }
00070
00071 #ifdef GEOS_INLINE
00072 # include "geos/geom/CoordinateArraySequenceFactory.inl"
00073 #endif
00074
00075 #endif // ndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091