Deep Learning SDK for Geospatial Data
 1.0.0+
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Vector

Detailed Description

Contains vector features and vector set creation for vector data.

Namespaces

 dg::deepcore::vector
 Contains vector-handling functionality.
 

Classes

class  dg::deepcore::vector::BufferedFeatureSet
 Assists a creation of a vector feature set in memory. More...
 
struct  dg::deepcore::vector::FieldDefinition
 Represents a definition of a vector attribute field. More...
 
struct  dg::deepcore::vector::Field
 Represents a vector attribute field. More...
 
class  dg::deepcore::vector::Feature
 Base class for vector features. More...
 
class  dg::deepcore::vector::FeatureSet
 Assists in creation, reading, and writing of a vector feature set. More...
 
class  dg::deepcore::vector::FeatureSetIterator
 Assists in iteration of Layers in a FeatureSet. More...
 
class  dg::deepcore::vector::Layer
 Assists in reading and writing a layer in a vector feature set. More...
 
class  dg::deepcore::vector::LayerIterator
 Assists in iteration of Features in a Layer. More...
 

Typedefs

using dg::deepcore::vector::FieldValue = boost::variant< int, double, std::string, time_t >
 Represents a vector attribute field value. More...
 
using dg::deepcore::vector::Fields = std::map< std::string, Field >
 Represent a list of vector attribute fields. More...
 

Enumerations

enum  dg::deepcore::vector::VectorOpenMode { dg::deepcore::vector::READONLY, dg::deepcore::vector::OVERWRITE, dg::deepcore::vector::APPEND }
 Mode for opening existing vector feature sets. More...
 
enum  dg::deepcore::vector::FieldType {
  dg::deepcore::vector::FieldType::UNKNOWN = -1, dg::deepcore::vector::FieldType::INTEGER = 0, dg::deepcore::vector::FieldType::REAL = 2, dg::deepcore::vector::FieldType::STRING = 4,
  dg::deepcore::vector::FieldType::DATE = 9, dg::deepcore::vector::FieldType::TIME = 10
}
 Represents a vector attribute field type. More...
 

Functions

 dg::deepcore::vector::BufferedFeatureSet::BufferedFeatureSet (const std::string &format)
 Constructs a buffered vector feature set. More...
 
uint8_t * dg::deepcore::vector::BufferedFeatureSet::buffer (size_t &length, bool takeOwnership=false)
 Returns the buffer containing the serialized vector feature set. This causes the vector feature set to be closed, so it's not possible to add features after this function is called. More...
 
std::vector< uint8_t > dg::deepcore::vector::BufferedFeatureSet::buffer ()
 Returns an std::vector containing the serialized vector feature set. This causes the vector feature set to be closed, so it's not possible to add features after this function is called. More...
 
std::string dg::deepcore::vector::BufferedFeatureSet::bufferAsString ()
 Returns an std::string containing the serialized vector feature set. This causes the vector feature set to be closed, so it's not possible to add features after this function is called. More...
 

Typedef Documentation

Represent a list of vector attribute fields.

Represents a vector attribute field value.

Enumeration Type Documentation

Represents a vector attribute field type.

Enumerator
UNKNOWN 
INTEGER 
REAL 
STRING 
DATE 
TIME 

Mode for opening existing vector feature sets.

Enumerator
READONLY 

Open an existing feature set for reading. Does not allow editing.

OVERWRITE 

Overwrite any existing feature set at the output location. Create if none exists.

APPEND 

Append to feature set at the output location. Create if none exists.

Function Documentation

dg::deepcore::vector::BufferedFeatureSet::BufferedFeatureSet ( const std::string &  format)

Constructs a buffered vector feature set.

Parameters
[in]formatFile format. Allowed formats are shp, kml, geojson, postgis, and elasticsearch.
uint8_t * dg::deepcore::vector::BufferedFeatureSet::buffer ( size_t &  length,
bool  takeOwnership = false 
)

Returns the buffer containing the serialized vector feature set. This causes the vector feature set to be closed, so it's not possible to add features after this function is called.

Parameters
[out]lengthThe length of the buffer.
[in]takeOwnershipIf true, the user will be responsible for freeing the returned buffer.
Returns
A pointer to the buffer containing the serialized vector feature set.
vector< uint8_t > dg::deepcore::vector::BufferedFeatureSet::buffer ( )

Returns an std::vector containing the serialized vector feature set. This causes the vector feature set to be closed, so it's not possible to add features after this function is called.

Returns
An std::vector containing the serialized vector feature set.
string dg::deepcore::vector::BufferedFeatureSet::bufferAsString ( )

Returns an std::string containing the serialized vector feature set. This causes the vector feature set to be closed, so it's not possible to add features after this function is called.

Returns
An std::string containing the serialized vector feature set.