00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
00016 #define GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H
00017
00018
00019 #include <geos/export.h>
00020 #include <vector>
00021
00022 #include <geos/geom/CoordinateSequenceFactory.h>
00023
00024 #include <geos/inline.h>
00025
00026
00027 namespace geos {
00028 namespace geom {
00029 class Coordinate;
00030 }
00031 }
00032
00033 namespace geos {
00034 namespace geom {
00035
00043 class GEOS_DLL CoordinateArraySequenceFactory: public CoordinateSequenceFactory {
00044
00045 public:
00046 CoordinateSequence *create() const;
00047
00048 CoordinateSequence *create(std::vector<Coordinate> *coords, std::size_t dims=0) const;
00049
00051 CoordinateSequence *create(std::size_t size, std::size_t dimension=0) const;
00052
00053 CoordinateSequence *create(const CoordinateSequence &coordSeq) const;
00054
00058 static const CoordinateSequenceFactory *instance();
00059 };
00060
00062 typedef CoordinateArraySequenceFactory DefaultCoordinateSequenceFactory;
00063
00064 }
00065 }
00066
00067 #ifdef GEOS_INLINE
00068 # include "geos/geom/CoordinateArraySequenceFactory.inl"
00069 #endif
00070
00071 #endif // ndef GEOS_GEOM_COORDINATEARRAYSEQUENCEFACTORY_H