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 ()
 
ValueSetcreateJSON (BufferString geomtyp, const RefObjectSet< const Pick::Set > &, ConstRefMan< Coords::CoordSystem >, const BufferString &iconnm=BufferString::empty())
 
ValueSetcreateJSON (BufferString geomtyp, const TypeSet< Coord > &crdset, const BufferStringSet &nms, ConstRefMan< Coords::CoordSystem >, GISWriter::Property &)
 
ValueSetcreateJSON (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)
 
Objectclone () const override
 
template<class T >
bool get (const char *, Interval< T > &) const
 
ArraygetArray (const BufferStringSet &bskey)
 
const ArraygetArray (const BufferStringSet &bskey) const
 
ArraygetArray (const char *ky)
 
const ArraygetArray (const char *ky) const
 
bool getBoolValue (const char *) const
 
bool getBoolValue (const OD::String &str) const
 
bool getBoolValue (idx_type idx) const override
 
ValueSetgetChild (const BufferStringSet &bskey)
 
const ValueSetgetChild (const BufferStringSet &bskey) const
 
ValueSetgetChild (const char *ky)
 
const ValueSetgetChild (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
 
ObjectgetObject (const BufferStringSet &bskey)
 
const ObjectgetObject (const BufferStringSet &bskey) const
 
ObjectgetObject (const char *ky)
 
const ObjectgetObject (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 *)
 
Arrayset (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)
 
Objectset (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 ()
 
Arrayarray (idx_type i)
 
const Arrayarray (idx_type i) const
 
ArrayasArray ()
 
const ArrayasArray () const
 
ObjectasObject ()
 
const ObjectasObject () const
 
ValueSetchild (idx_type i)
 
const ValueSetchild (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 BufferStringkey (idx_type) const
 
Objectobject (idx_type i)
 
const Objectobject (idx_type i) const
 
uiRetVal parseJSon (char *buf, int bufsz)
 
uiRetVal read (od_istream &)
 
virtual void setEmpty ()
 
virtual size_type size () const
 
ValueSettop ()
 
const ValueSettop () 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 ValueSetgetFromJSon (char *buf, int bufsz, uiRetVal &)
 
static ValueSetread (od_istream &, uiRetVal &)
 

Protected Member Functions

void addCoord (const Coord &coords, Array &poly)
 
void addCoord (const Coord3 &coords, Array &poly)
 
ObjectcreateCRSArray (Array *featarr)
 
ArraycreateFeatArray (BufferString)
 
ArraycreateFeatCoordArray (Array *featarr, BufferString typ, GISWriter::Property)
 
bool isAntiMeridianCrossed (const TypeSet< Coord3 > &)
 
void setCRS (ConstRefMan< Coords::CoordSystem >)
 
- Protected Member Functions inherited from OD::JSON::Object
ArraygtArrayByKey (const char *) const
 
ArraygtArrayByKeys (const BufferStringSet &) const
 
ValueSetgtChildByKey (const char *) const
 
ValueSetgtChildByKeys (const BufferStringSet &) const
 
ObjectgtObjectByKey (const char *) const
 
ObjectgtObjectByKeys (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)
 
ArraygtArrayByIdx (idx_type) const
 
ValueSetgtChildByIdx (idx_type) const
 
ObjectgtObjectByIdx (idx_type) const
 
void setParent (ValueSet *p)
 
void use (const GasonNode &)
 

Protected Attributes

ConstRefMan< Coords::CoordSystemcoordsys_ = SI().getCoordSystem()
 
Arrayfeatarr_ = nullptr
 
BufferString filename_
 
bool isfeatmulti_ = false
 
bool isfeatpoint_ = true
 
bool isfeatpoly_ = false
 
Arraypolyarr_ = nullptr
 
Objecttopobj_ = new Object()
 
- Protected Attributes inherited from OD::JSON::ValueSet
ValueSetparent_
 
ObjectSet< Valuevalues_
 

Additional Inherited Members

- Static Protected Member Functions inherited from OD::JSON::ValueSet
static ValueSetgtByParse (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