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. Functions which register callbacks return a DetachCa...
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. This feature set will contain s...
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
void print(double **a, int r, int c, const char *str)
Definition: networkNode.h:38
DtGdbFeatureSetCollection * myArealFeatureSet
Definition: gdbVectorNetworkFeatureSet.h:249
Represents some coordinate system. The terms "coordinate system", "projection", "spatial reference"...
Definition: proj.h:44
Represents a set of characeters a DtFeature object can have. DtQuery objects are the way to communica...
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. Note: this is not related to C++ delete or destructors...
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. See DtFeatureSetTemplate::filter.
Definition: featureSet.h:36
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
DetachCallback addDeleteCallback(const DeleteCallback &) const
Add a user supplied callback to the feature to be called when the feature is deleted. If the feature is already deleted the callback may or may not be called by the implementation of this function. The callback is guaranteed to only be called once.
Definition: gdbVectorNetworkFeatureSet.h:80
DtFeatureSet used to combine multiple feature sets into one. This class allows all feature set algori...
Definition: featureSetList.h:26
Represents a GIS feature. Features consist of a DtFeatureGeometry (2.5D geometric vector data) and a ...
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. The attribute map will be the union of all attributes of that given feature...
Definition: gdbVectorNetworkFeatureSet.h:219
Definition: networkElement.h:38
Represents a feature geometry.
Definition: featureGeometry.h:39
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