diff --git a/plugins/input/shape/shape.cpp b/plugins/input/shape/shape.cpp index 109b602d5..c0c534c59 100644 --- a/plugins/input/shape/shape.cpp +++ b/plugins/input/shape/shape.cpp @@ -27,49 +27,48 @@ DATASOURCE_PLUGIN(shape_datasource) shape_datasource::shape_datasource(const parameters ¶ms) - : shape_name_(params.get("file")), - type_(datasource::Vector), - file_length_(0), - indexed_(false), - desc_(params.get("name")) +: shape_name_(params.get("file")), +type_(datasource::Vector), +file_length_(0), +indexed_(false), +desc_(params.get("name")) { try { shape_io shape(shape_name_); init(shape); - for (int i=0;i0) + { + desc_.add_descriptor(attribute_descriptor(fld_name,Double,false,8)); + } + else + { + desc_.add_descriptor(attribute_descriptor(fld_name,Integer,false,4)); + } + break; + } + default: + // + std::clog << "unknown type "<0) - { - desc_.add_descriptor(attribute_descriptor(fld_name,Double,false,8)); - } - else - { - desc_.add_descriptor(attribute_descriptor(fld_name,Integer,false,4)); - } - break; - } - default: - // - std::clog << "uknown type "<(filter,shape_name_,q.property_names())); + return featureset_ptr(new shape_index_featureset(filter,shape_name_,q.property_names())); } return featureset_ptr(new shape_featureset(filter,shape_name_,q.property_names(),file_length_)); } diff --git a/plugins/input/shape/shape.hpp b/plugins/input/shape/shape.hpp index db57f9691..b271874b4 100644 --- a/plugins/input/shape/shape.hpp +++ b/plugins/input/shape/shape.hpp @@ -25,7 +25,7 @@ using namespace mapnik; -class shape_datasource : public datasource +class MAPNIK_DECL shape_datasource : public datasource { public: diff --git a/plugins/input/shape/shape_featureset.hpp b/plugins/input/shape/shape_featureset.hpp index a559f350f..d41ad342c 100644 --- a/plugins/input/shape/shape_featureset.hpp +++ b/plugins/input/shape/shape_featureset.hpp @@ -25,7 +25,7 @@ using namespace mapnik; template -class shape_featureset : public Featureset +class MAPNIK_DECL shape_featureset : public Featureset { filterT filter_; int shape_type_; diff --git a/plugins/input/shape/shape_index_featureset.hpp b/plugins/input/shape/shape_index_featureset.hpp index 0c6afbb88..083dfd494 100644 --- a/plugins/input/shape/shape_index_featureset.hpp +++ b/plugins/input/shape/shape_index_featureset.hpp @@ -24,7 +24,7 @@ #include template -class shape_index_featureset : public Featureset +class MAPNIK_DECL shape_index_featureset : public Featureset { filterT filter_; int shape_type_;