OpendTect  7.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OD::GeoJsonTree Class Reference
Inheritance diagram for OD::GeoJsonTree:
[legend]

Public Types

typedef JSON::Array Array
 
typedef JSON::Object Object
 
- Public Types inherited from OD::JSON::ValueSet
typedef Gason::JsonNode GasonNode
 
typedef size_type idx_type
 
typedef ValArr::size_type size_type
 
enum  ValueType { Data , SubArray , SubObject }
 

Public Member Functions

 GeoJsonTree ()
 
 GeoJsonTree (const GeoJsonTree &oth)
 
 GeoJsonTree (const Object &obj)
 
virtual ~GeoJsonTree ()
 
ValueSet * createJSON (BufferString geomtyp, const RefObjectSet< const Pick::Set > &, ConstRefMan< Coords::CoordSystem >, const BufferString &iconnm=BufferString::empty())
 
ValueSet * createJSON (BufferString geomtyp, const TypeSet< Coord > &crdset, const BufferStringSet &nms, ConstRefMan< Coords::CoordSystem >, GISWriter::Property &)
 
ValueSet * createJSON (BufferString geomtyp, const TypeSet< Coord3 > &crdset, const BufferStringSet &nms, ConstRefMan< Coords::CoordSystem >, GISWriter::Property &)
 
BufferString crsName () const
 
void doGeoJSonCheck (uiRetVal &)
 
void setProperties (const GISWriter::Property &)
 
uiRetVal use (const char *fnm)
 
uiRetVal use (od_istream &)
 
- Public Member Functions inherited from OD::JSON::Object
 Object (const Object &)
 
 Object (ValueSet *p=0)
 
Object * clone () const override
 
template<class T >
bool get (const char *, Interval< T > &) const
 
Array * getArray (const BufferStringSet &bskey)
 
const Array * getArray (const BufferStringSet &bskey) const
 
Array * getArray (const char *ky)
 
const Array * getArray (const char *ky) const
 
bool getBoolValue (const char *) const
 
bool getBoolValue (const OD::String &str) const
 
bool getBoolValue (idx_type idx) const override
 
ValueSet * getChild (const BufferStringSet &bskey)
 
const ValueSet * getChild (const BufferStringSet &bskey) const
 
ValueSet * getChild (const char *ky)
 
const ValueSet * getChild (const char *ky) const
 
double getDoubleValue (const char *) const
 
double getDoubleValue (const OD::String &str) const
 
double getDoubleValue (idx_type idx) const override
 
FilePath getFilePath (const char *) const
 
FilePath getFilePath (const OD::String &str) const
 
FilePath getFilePath (idx_type idx) const override
 
bool getGeomID (const char *, Pos::GeomID &) const
 
std::int64_t getIntValue (const char *) const
 
std::int64_t getIntValue (const OD::String &str) const
 
std::int64_t getIntValue (idx_type idx) const override
 
Object * getObject (const BufferStringSet &bskey)
 
const Object * getObject (const BufferStringSet &bskey) const
 
Object * getObject (const char *ky)
 
const Object * getObject (const char *ky) const
 
bool getStrings (const char *, BufferStringSet &) const
 
BufferString getStringValue (const char *) const
 
BufferString getStringValue (const OD::String &str) const
 
BufferString getStringValue (idx_type idx) const override
 
void getSubObjKeys (BufferStringSet &) const
 
idx_type indexOf (const char *) const
 
bool isArray () const override
 
bool isPresent (const char *ky) const
 
void remove (const char *)
 
Array * set (const char *ky, Array *)
 
void set (const char *ky, bool)
 
void set (const char *ky, const char *)
 
void set (const char *ky, const DBKey &)
 
void set (const char *ky, const FilePath &)
 
template<class T >
void set (const char *ky, const Interval< T > &)
 
void set (const char *ky, const MultiID &)
 
void set (const char *ky, const OD::String &str)
 
void set (const char *ky, const uiString &)
 
void set (const char *ky, double)
 
void set (const char *ky, float)
 
Object * set (const char *ky, Object *)
 
void set (const char *ky, std::int16_t)
 
void set (const char *ky, std::int32_t)
 
void set (const char *ky, std::int64_t)
 
void set (const char *ky, std::uint16_t)
 
void set (const char *ky, std::uint32_t)
 
- Public Member Functions inherited from OD::JSON::ValueSet
virtual ~ValueSet ()
 
Array & array (idx_type i)
 
const Array & array (idx_type i) const
 
Array & asArray ()
 
const Array & asArray () const
 
Object & asObject ()
 
const Object & asObject () const
 
ValueSet & child (idx_type i)
 
const ValueSet & child (idx_type i) const
 
BufferString dumpJSon (bool pretty=false) const
 
void dumpJSon (BufferString &, bool pretty=false) const
 
void dumpJSon (StringBuilder &) const
 
bool isArrayChild (idx_type i) const
 
virtual bool isEmpty () const
 
bool isObjectChild (idx_type i) const
 
bool isPlainData (idx_type i) const
 
bool isTop () const
 
const BufferString & key (idx_type) const
 
Object & object (idx_type i)
 
const Object & object (idx_type i) const
 
uiRetVal parseJSon (char *buf, int bufsz)
 
uiRetVal read (od_istream &)
 
virtual void setEmpty ()
 
virtual size_type size () const
 
ValueSet * top ()
 
const ValueSet * top () const
 
virtual ValueType valueType (idx_type) const
 
uiRetVal write (od_ostream &, bool pretty=false)
 
uiRetVal writePretty (od_ostream &)
 

Static Public Member Functions

static const char * sKeyCoord ()
 
static const char * sKeyCRS ()
 
static const char * sKeyFeatures ()
 
static const char * sKeyGeometry ()
 
static const char * sKeyName ()
 
static const char * sKeyProperties ()
 
static const char * sKeyType ()
 
- Static Public Member Functions inherited from OD::JSON::ValueSet
static ValueSet * getFromJSon (char *buf, int bufsz, uiRetVal &)
 
static ValueSet * read (od_istream &, uiRetVal &)
 

Protected Member Functions

void addCoord (const Coord &coords, Array &poly)
 
void addCoord (const Coord3 &coords, Array &poly)
 
Object * createCRSArray (Array *featarr)
 
Array * createFeatArray (BufferString)
 
Array * createFeatCoordArray (Array *featarr, BufferString typ, GISWriter::Property)
 
bool isAntiMeridianCrossed (const TypeSet< Coord3 > &)
 
void setCRS (ConstRefMan< Coords::CoordSystem >)
 
- Protected Member Functions inherited from OD::JSON::Object
Array * gtArrayByKey (const char *) const
 
Array * gtArrayByKeys (const BufferStringSet &) const
 
ValueSet * gtChildByKey (const char *) const
 
ValueSet * gtChildByKeys (const BufferStringSet &) const
 
Object * gtObjectByKey (const char *) const
 
Object * gtObjectByKeys (const BufferStringSet &) const
 
void set (KeyedValue *)
 
template<class T >
void setVal (const char *, T)
 
void setVS (const char *, ValueSet *)
 
- Protected Member Functions inherited from OD::JSON::ValueSet
 ValueSet (const ValueSet &)
 
 ValueSet (ValueSet *p)
 
Array * gtArrayByIdx (idx_type) const
 
ValueSet * gtChildByIdx (idx_type) const
 
Object * gtObjectByIdx (idx_type) const
 
void setParent (ValueSet *p)
 
void use (const GasonNode &)
 

Protected Attributes

ConstRefMan< Coords::CoordSystem > coordsys_ = SI().getCoordSystem()
 
Array * featarr_ = nullptr
 
BufferString filename_
 
bool isfeatmulti_ = false
 
bool isfeatpoint_ = true
 
bool isfeatpoly_ = false
 
Array * polyarr_ = nullptr
 
Object * topobj_ = new Object()
 
- Protected Attributes inherited from OD::JSON::ValueSet
ValueSet * parent_
 
ObjectSet< Value > values_
 

Additional Inherited Members

- Static Protected Member Functions inherited from OD::JSON::ValueSet
static ValueSet * gtByParse (char *, int, uiRetVal &, ValueSet *)
 

Detailed Description

<>

Member Typedef Documentation

◆ Array

◆ Object

Constructor & Destructor Documentation

◆ GeoJsonTree() [1/3]

OD::GeoJsonTree::GeoJsonTree ( )

◆ GeoJsonTree() [2/3]

OD::GeoJsonTree::GeoJsonTree ( const GeoJsonTree &  oth)

◆ GeoJsonTree() [3/3]

OD::GeoJsonTree::GeoJsonTree ( const Object &  obj)

◆ ~GeoJsonTree()

virtual OD::GeoJsonTree::~GeoJsonTree ( )
inlinevirtual

Member Function Documentation

◆ addCoord() [1/2]

void OD::GeoJsonTree::addCoord ( const Coord &  coords,
Array &  poly 
)
protected

◆ addCoord() [2/2]

void OD::GeoJsonTree::addCoord ( const Coord3 &  coords,
Array &  poly 
)
protected

◆ createCRSArray()

Object* OD::GeoJsonTree::createCRSArray ( Array *  featarr)
protected

◆ createFeatArray()

Array* OD::GeoJsonTree::createFeatArray ( BufferString  )
protected

◆ createFeatCoordArray()

Array* OD::GeoJsonTree::createFeatCoordArray ( Array *  featarr,
BufferString  typ,
GISWriter::Property   
)
protected

◆ createJSON() [1/3]

ValueSet* OD::GeoJsonTree::createJSON ( BufferString  geomtyp,
const RefObjectSet< const Pick::Set > &  ,
ConstRefMan< Coords::CoordSystem >  ,
const BufferString &  iconnm = BufferString::empty() 
)

◆ createJSON() [2/3]

ValueSet* OD::GeoJsonTree::createJSON ( BufferString  geomtyp,
const TypeSet< Coord > &  crdset,
const BufferStringSet &  nms,
ConstRefMan< Coords::CoordSystem >  ,
GISWriter::Property &   
)

◆ createJSON() [3/3]

ValueSet* OD::GeoJsonTree::createJSON ( BufferString  geomtyp,
const TypeSet< Coord3 > &  crdset,
const BufferStringSet &  nms,
ConstRefMan< Coords::CoordSystem >  ,
GISWriter::Property &   
)

◆ crsName()

BufferString OD::GeoJsonTree::crsName ( ) const

◆ doGeoJSonCheck()

void OD::GeoJsonTree::doGeoJSonCheck ( uiRetVal &  )

◆ isAntiMeridianCrossed()

bool OD::GeoJsonTree::isAntiMeridianCrossed ( const TypeSet< Coord3 > &  )
protected

◆ setCRS()

void OD::GeoJsonTree::setCRS ( ConstRefMan< Coords::CoordSystem >  )
protected

◆ setProperties()

void OD::GeoJsonTree::setProperties ( const GISWriter::Property &  )

◆ sKeyCoord()

static const char* OD::GeoJsonTree::sKeyCoord ( )
inlinestatic

◆ sKeyCRS()

static const char* OD::GeoJsonTree::sKeyCRS ( )
inlinestatic

◆ sKeyFeatures()

static const char* OD::GeoJsonTree::sKeyFeatures ( )
inlinestatic

◆ sKeyGeometry()

static const char* OD::GeoJsonTree::sKeyGeometry ( )
inlinestatic

◆ sKeyName()

static const char* OD::GeoJsonTree::sKeyName ( )
inlinestatic

◆ sKeyProperties()

static const char* OD::GeoJsonTree::sKeyProperties ( )
inlinestatic

◆ sKeyType()

static const char* OD::GeoJsonTree::sKeyType ( )
inlinestatic

◆ use() [1/2]

uiRetVal OD::GeoJsonTree::use ( const char *  fnm)

◆ use() [2/2]

uiRetVal OD::GeoJsonTree::use ( od_istream &  )

Member Data Documentation

◆ coordsys_

ConstRefMan<Coords::CoordSystem> OD::GeoJsonTree::coordsys_ = SI().getCoordSystem()
protected

◆ featarr_

Array* OD::GeoJsonTree::featarr_ = nullptr
protected

◆ filename_

BufferString OD::GeoJsonTree::filename_
protected

◆ isfeatmulti_

bool OD::GeoJsonTree::isfeatmulti_ = false
protected

◆ isfeatpoint_

bool OD::GeoJsonTree::isfeatpoint_ = true
protected

◆ isfeatpoly_

bool OD::GeoJsonTree::isfeatpoly_ = false
protected

◆ polyarr_

Array* OD::GeoJsonTree::polyarr_ = nullptr
protected

◆ topobj_

Object* OD::GeoJsonTree::topobj_ = new Object()
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024