21 namespace MAKVRinTerra
27 ,
public boost::enable_shared_from_this<DtGdbVectorFeature>
31 typedef boost::shared_ptr<DtGdbVectorFeature>
Ptr;
43 virtual void setAsPointGeometry(
const DtPoint&);
46 virtual void setAsLinearGeometry(
const std::vector<DtPoint>&);
49 virtual void setAsArealGeometry(
const std::vector<DtPoint>&);
69 static Ptr Make(std::istream&, boost::shared_ptr<DtSpecificationManager> mgr,
DtProj::CPtr projection);
74 virtual boost::optional<Attribute> attribute(
const Key & k)
const;
76 virtual void forEachAttribute(ForEachFunction f)
const;
78 virtual unsigned numberOfAttributes(
const Key::String &)
const;
91 virtual void print(std::ostream&);
119 virtual std::string label()
const;
125 virtual bool loaded(
double = 0.0)
const;
127 virtual unsigned numberOfFeatures()
const;
128 virtual bool elided()
const;
129 virtual bool empty()
const;
138 virtual void print(std::ostream&);
161 virtual std::string label()
const;
201 virtual void print(
const std::string& file);
202 virtual void print(std::ostream&);
209 virtual bool saveAsShapeFiles(
const std::string& directory, std::string&
error);
221 std::set<DtSpecificationID>
ids;
235 virtual bool saveShapeFileForLayer(
int featureType,
const SpecificationLayer&,
const std::string& directory, std::string& error)
const;
238 virtual std::string fixupNameToLength(
const std::string& name,
int length)
const;
241 virtual bool addAttributesToLayer(
const AttributeMap&, OGRLayer*, std::string& error)
const;
Represents a set of DtFeature objects or others which conform to the DtFeature concept.
Definition: featureSet.h:101
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
std::set< DtSpecificationID > ids
Definition: gdbVectorNetworkFeatureSet.h:221
std::map< std::string, int > AttributeMap
Definition: gdbVectorNetworkFeatureSet.h:213
DtSpecificationID mySpecID
Definition: gdbVectorNetworkFeatureSet.h:103
boost::function< void()> DetachCallback
Callback type for disconnecting other callbacks.
Definition: featureSet.h:125
unsigned int DtSpecificationID
Definition: specificationManager.h:22
boost::shared_ptr< DtSpecificationManager > mySpecificationManager
Definition: gdbVectorNetworkFeatureSet.h:101
Represents a set of feature sets that represent a gdb vector network.
Definition: gdbVectorNetworkFeatureSet.h:147
Feature subclasses that are ultimately used to inspect the specification manager for values...
Definition: gdbVectorNetworkFeatureSet.h:25
DtProj::CPtr myProjection
Definition: gdbVectorNetworkFeatureSet.h:102
boost::shared_ptr< DtGdbVectorFeature > Ptr
Definition: gdbVectorNetworkFeatureSet.h:31
boost::shared_ptr< DtFeatureGeometry > myGeometry
Definition: gdbVectorNetworkFeatureSet.h:100
std::vector< DtGdbVectorFeature::Ptr > myFeatures
Definition: gdbVectorNetworkFeatureSet.h:141
std::string myFile
Definition: gdbVectorNetworkFeatureSet.h:260
DtSpecificationID specificationID() const
Definition: gdbVectorNetworkFeatureSet.h:54
DtProj::CPtr myTransformToProjection
Definition: gdbVectorNetworkFeatureSet.h:255
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
DtGdbFeatureSetCollection * myPointFeatureSet
Definition: gdbVectorNetworkFeatureSet.h:247
Definition: networkNode.h:38
DtGdbFeatureSetCollection * myArealFeatureSet
Definition: gdbVectorNetworkFeatureSet.h:249
Represents some coordinate system.
Definition: proj.h:44
Represents a set of characeters a DtFeature object can have.
Definition: query.h:38
boost::function< void()> DeleteCallback
User supplied callback called when feature is deleted.
Definition: feature.h:183
AttributeMap attributes
Definition: gdbVectorNetworkFeatureSet.h:222
bool isDeleted() const
Check to see if feature has been deleted.
Definition: gdbVectorNetworkFeatureSet.h:85
std::string myFile
Definition: gdbVectorNetworkFeatureSet.h:142
boost::shared_ptr< const DtProj > CPtr
Definition: proj.h:48
Definition: specification.h:27
Represents a collection of DtGdbVectorFeatures.
Definition: gdbVectorNetworkFeatureSet.h:107
Definition: asyncJobServer.h:39
DtGdbFeatureSetCollection * myLinearFeatureSet
Definition: gdbVectorNetworkFeatureSet.h:248
DtProj::CPtr myProjection
Definition: gdbVectorNetworkFeatureSet.h:254
Definition: networkEdge.h:28
DtLoadType
Used to indicate whether to load features.
Definition: featureSet.h:36
DetachCallback addDeleteCallback(const DeleteCallback &) const
Add a user supplied callback to the feature to be called when the feature is deleted.
Definition: gdbVectorNetworkFeatureSet.h:80
DtFeatureSet used to combine multiple feature sets into one.
Definition: featureSetList.h:26
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:156
std::map< int, SpecificationLayer > SpecificationLayers
Definition: gdbVectorNetworkFeatureSet.h:225
Organize by feature type.
Definition: gdbVectorNetworkFeatureSet.h:219
Definition: networkElement.h:38
Represents a feature geometry.
Definition: featureGeometry.h:35
OriginalLabelMap myOriginalLabelMap
Definition: gdbVectorNetworkFeatureSet.h:259
boost::shared_ptr< DtSpecificationManager > mySpecificationManager
Copy of the vector network specification manager.
Definition: gdbVectorNetworkFeatureSet.h:252
std::map< std::string, std::string > OriginalLabelMap
Original labels mapped to lowercase labels – for export.
Definition: gdbVectorNetworkFeatureSet.h:258
Definition: vectorNetwork.h:37
void print(double **a, int r, int c, char *str)