10 #include <boost/scoped_ptr.hpp>
11 #include <boost/shared_ptr.hpp>
24 #include <ogrsf_frmts.h>
30 namespace MAKVRinTerra
38 boost::shared_ptr<OGRFeature> feature,
42 unsigned numberOfAttributes(
const Key::String &)
const;
44 boost::optional<Attribute> attribute(
const Key & k)
const;
69 typedef boost::shared_ptr<DtOgrDataSource>
Ptr;
74 static DtFeatureSet* Make(std::string file, std::string layerName =
"");
79 std::string label()
const;
80 bool isIndexed()
const;
93 boost::shared_ptr<GDALDataset>,
96 const std::string& srcPath,
97 const std::string& configLayerName =
"");
99 std::string label()
const;
104 const boost::optional<DtFeatureGeometry>&,
107 bool loaded(
double)
const;
111 bool isIndexed()
const;
Represents a set of DtFeature objects or others which conform to the DtFeature concept.
Definition: featureSet.h:101
boost::shared_ptr< DtOgrDataSource > Ptr
Definition: ogrFeatureSet.h:69
boost::function< void(const Feature &)> ForEachFunction
Callback type type for iterating through features.
Definition: featureSet.h:151
#define DT_DLL_features
stop complaining about multiple independent base classes for boost::noncopyable this should probably ...
Definition: featuresDefines.h:36
DtProj::CPtr myGeometryProjection
Definition: ogrFeatureSet.h:120
boost::function< void()> DetachCallback
Callback type for disconnecting other callbacks.
Definition: featureSet.h:123
Definition: ogrFeatureSet.h:66
Key used to lookup attributes.
Definition: feature.h:66
std::vector< DtFeatureGeometry > GeometryVector
Definition: ogrFeatureSet.h:35
boost::shared_ptr< const DtFeature > CPtr
Definition: feature.h:44
boost::shared_ptr< GDALDataset > myDataSource
Definition: ogrFeatureSet.h:119
boost::shared_ptr< OGRFeature > myFeature
Definition: ogrFeatureSet.h:61
Definition: ogrFeatureSet.h:32
boost::shared_ptr< GDALDataset > myDataSource
Definition: ogrFeatureSet.h:84
boost::function< void()> DetachCallback
Callback used to detach the user from a feature so the users callback is not called anymore...
Definition: feature.h:178
Definition: ogrFeatureSet.h:87
boost::function< void(const Key &, const Attribute &)> ForEachFunction
Callback used to iterating through attributes with ForEachAttribute.
Definition: feature.h:149
Represents a set of characeters a DtFeature object can have.
Definition: query.h:38
bool isDeleted() const
Check to see if feature has been deleted.
Definition: ogrFeatureSet.h:55
boost::function< void()> DeleteCallback
User supplied callback called when feature is deleted.
Definition: feature.h:181
DtFeatureGeometry myGeometry
Definition: ogrFeatureSet.h:62
boost::shared_ptr< const DtProj > CPtr
Definition: proj.h:48
boost::optional< DtFeatureGeometry > myGeometryFilter
Definition: ogrFeatureSet.h:121
DetachCallback addDeleteCallback(const DeleteCallback &) const
Add a user supplied callback to the feature to be called when the feature is deleted.
Definition: ogrFeatureSet.h:50
Create a new MAK exception type that inherits from boost::exception.
Definition: taggedException.h:15
std::set< DtFeature::Key > AttributeSet
Definition: ogrFeatureSet.h:117
std::string myLayerName
Definition: ogrFeatureSet.h:124
std::string myConfigLayerName
Definition: ogrFeatureSet.h:125
DtLoadType
Used to indicate whether to load features.
Definition: featureSet.h:36
DtFeature::CPtr myDefaults
Definition: ogrFeatureSet.h:63
std::string myFile
Definition: ogrFeatureSet.h:83
DtFeature::CPtr myDefaults
Definition: ogrFeatureSet.h:126
DtFeatureSet used to combine multiple feature sets into one.
Definition: featureSetList.h:21
Represents a GIS feature.
Definition: feature.h:37
boost::function< void()> LoadedCallback
Callback type type for async notification of feature set loading.
Definition: featureSet.h:154
bool myIndexedFlag
Definition: ogrFeatureSet.h:127
std::string myLabel
Definition: ogrFeatureSet.h:128
Represents a feature geometry.
Definition: featureGeometry.h:35
int myLayerNumber
Definition: ogrFeatureSet.h:123
DtTaggedException< DtOgrLayer > Exception
Definition: ogrFeatureSet.h:90
AttributeSet myAttributes
Definition: ogrFeatureSet.h:122