Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef WKBINTERFACE_H_
00009 #define WKBINTERFACE_H_
00010
00011 #include "../geoelements/geoelements.h"
00012 #include <geos/geom/GeometryFactory.h>
00013 #include <geos/io/WKBWriter.h>
00014 #include <vector>
00015
00016 namespace wkb
00017 {
00018
00019 class WKBInterface
00020 {
00021 public:
00022 WKBInterface();
00023 virtual ~WKBInterface();
00024 static WKBInterface& get_instance();
00025 std::vector<char> point_to_wkb(geo::Point const& p);
00026 private:
00027 static WKBInterface* inst;
00028 geos::io::WKBWriter wr;
00029 geos::geom::GeometryFactory fct;
00030 };
00031
00032 }
00033 #endif