10 #include <boost/scoped_ptr.hpp>
11 #include <boost/shared_ptr.hpp>
19 #include <tbb/spin_rw_mutex.h>
27 namespace MAKVRinTerra
35 boost::shared_ptr<OGRFeature> feature,
39 unsigned numberOfAttributes(
const Key::String &)
const;
41 boost::optional<Attribute> attribute(
const Key & k)
const;
66 typedef boost::shared_ptr<DtOgrDataSource>
Ptr;
67 typedef boost::shared_ptr<GDALDataset>
GDALPtr;
72 static DtFeatureSet* Make(std::string file, std::string layerName =
"");
77 std::string label()
const;
78 bool isIndexed()
const;
89 typedef boost::shared_ptr<GDALDataset>
GDALPtr;
92 const std::string& path,
95 const std::string& srcPath,
96 const std::string& configLayerName =
"");
98 std::string label()
const;
103 const boost::optional<DtFeatureGeometry>&,
106 bool loaded(
double)
const;
110 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:66
boost::function< void(const Feature &)> ForEachFunction
Callback type type for iterating through features.
Definition: featureSet.h:153
#define DT_DLL_features
stop complaining about multiple independent base classes for boost::noncopyable this should probably ...
Definition: featuresDefines.h:41
tbb::spin_rw_mutex myThreadedGDALDataSetsMutex
Definition: ogrFeatureSet.h:122
boost::shared_ptr< GDALDataSource > myGDALDataSource
Definition: ogrFeatureSet.h:146
DtProj::CPtr myGeometryProjection
Definition: ogrFeatureSet.h:136
boost::function< void()> DetachCallback
Callback type for disconnecting other callbacks.
Definition: featureSet.h:125
Definition: ogrFeatureSet.h:63
std::string myDatasetFile
Definition: ogrFeatureSet.h:126
Key used to lookup attributes.
Definition: feature.h:68
std::vector< DtFeatureGeometry > GeometryVector
Definition: ogrFeatureSet.h:32
std::map< unsigned int, GDALPtr > ThreadedGDALDataSets
Definition: ogrFeatureSet.h:123
boost::shared_ptr< GDALDataset > GDALPtr
Definition: ogrFeatureSet.h:89
boost::shared_ptr< const DtFeature > CPtr
Definition: feature.h:46
boost::shared_ptr< OGRFeature > myFeature
Definition: ogrFeatureSet.h:58
Definition: ogrFeatureSet.h:113
Definition: ogrFeatureSet.h:29
boost::function< void()> DetachCallback
Callback used to detach the user from a feature so the users callback is not called anymore...
Definition: feature.h:180
Definition: ogrFeatureSet.h:85
boost::function< void(const Key &, const Attribute &)> ForEachFunction
Callback used to iterating through attributes with ForEachAttribute.
Definition: feature.h:151
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:52
boost::function< void()> DeleteCallback
User supplied callback called when feature is deleted.
Definition: feature.h:183
boost::shared_ptr< GDALDataset > GDALPtr
Definition: ogrFeatureSet.h:67
DtFeatureGeometry myGeometry
Definition: ogrFeatureSet.h:59
boost::shared_ptr< const DtProj > CPtr
Definition: proj.h:48
boost::optional< DtFeatureGeometry > myGeometryFilter
Definition: ogrFeatureSet.h:137
DetachCallback addDeleteCallback(const DeleteCallback &) const
Add a user supplied callback to the feature to be called when the feature is deleted.
Definition: ogrFeatureSet.h:47
Create a new MAK exception type that inherits from boost::exception.
Definition: taggedException.h:15
std::set< DtFeature::Key > AttributeSet
Definition: ogrFeatureSet.h:133
std::string myLayerName
Definition: ogrFeatureSet.h:140
std::string myConfigLayerName
Definition: ogrFeatureSet.h:141
DtLoadType
Used to indicate whether to load features.
Definition: featureSet.h:36
DtFeature::CPtr myDefaults
Definition: ogrFeatureSet.h:60
std::string myFile
Definition: ogrFeatureSet.h:81
std::string myDatasetFile
Definition: ogrFeatureSet.h:135
DtFeature::CPtr myDefaults
Definition: ogrFeatureSet.h:142
DtFeatureSet used to combine multiple feature sets into one.
Definition: featureSetList.h:26
Represents a GIS feature.
Definition: feature.h:37
ThreadedGDALDataSets myThreadedGDALDataSets
Definition: ogrFeatureSet.h:124
boost::function< void()> LoadedCallback
Callback type type for async notification of feature set loading.
Definition: featureSet.h:156
bool myIndexedFlag
Definition: ogrFeatureSet.h:143
std::string myLabel
Definition: ogrFeatureSet.h:144
Represents a feature geometry.
Definition: featureGeometry.h:35
int myLayerNumber
Definition: ogrFeatureSet.h:139
DtTaggedException< DtOgrLayer > Exception
Definition: ogrFeatureSet.h:88
GDALPtr myDataSource
Definition: ogrFeatureSet.h:82
AttributeSet myAttributes
Definition: ogrFeatureSet.h:138