OpendTect 8.0
Loading...
Searching...
No Matches
OD::JSON::GeoJsonTree Class Reference

#include <geojson.h>

Inheritance diagram for OD::JSON::GeoJsonTree:
[legend]

Public Member Functions

 GeoJsonTree ()
 
 ~GeoJsonTree ()
 
bool addFeatures (const Pick::Set &, const GIS::Property &)
 
bool addFeatures (const TypeSet< Coord > &, const GIS::Property &)
 
bool addFeatures (const TypeSet< Coord3 > &, const GIS::Property &)
 
bool addPoint (const Coord &, const GIS::Property &)
 
bool addPoint (const Coord3 &, const GIS::Property &)
 
bool addPoint (const LatLong &, double z, const GIS::Property &)
 
void doGeoJSonCheck (uiRetVal &)
 
void setInputCoordSys (const Coords::CoordSystem *)
 
uiRetVal use (const char *fnm)
 
uiRetVal use (od_istream &)
 
- Public Member Functions inherited from OD::JSON::Object
 Object (const Object &)
 
 Object (ValueSet *p=nullptr)
 
 ~Object ()
 
Object * clone () const override
 
DataType dType (idx_type) const
 Only for ValueType==Data.
 
template<class T>
bool get (const char *, Array1D< T > &) const
 
template<class T>
bool get (const char *, Array2D< T > &) const
 
bool get (const char *, BoolTypeSet &) const
 
bool get (const char *, BufferStringSet &) const
 
bool get (const char *, Coord &) const
 
bool get (const char *, Coord3 &) const
 
bool get (const char *, DBKeySet &) const
 
template<class T>
bool get (const char *, Interval< T > &) const
 
bool get (const char *, TypeSet< MultiID > &) const
 
template<class T>
bool get (const char *, TypeSet< T > &) const
 
bool get (const char *, uiStringSet &) const
 
bool get (const char *,::IdxPair &) 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
 
od_int64 getIntValue (const char *) const
 
od_int64 getIntValue (const OD::String &str) const
 
od_int64 getIntValue (idx_type idx) const override
 
MultiID getMultiID (const char *) const
 
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 isNull (const char *) const
 
bool isPresent (const char *ky) const
 
Object & operator= (const Object &)=delete
 
void remove (const char *)
 
Array * set (const char *ky, Array *)
 
void set (const char *ky, bool)
 
void set (const char *ky, const ::IdxPair &)
 
template<class T>
void set (const char *ky, const Array1D< T > &)
 
template<class T>
void set (const char *ky, const Array2D< T > &)
 
void set (const char *ky, const BoolTypeSet &)
 
void set (const char *ky, const BufferStringSet &)
 
void set (const char *ky, const char *)
 
void set (const char *ky, const Coord &)
 
void set (const char *ky, const Coord3 &)
 
void set (const char *ky, const DBKey &)
 
void set (const char *ky, const DBKeySet &)
 
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 TypeSet< Coord > &)
 
void set (const char *ky, const TypeSet< Coord3 > &)
 
void set (const char *ky, const TypeSet< MultiID > &)
 
template<class T>
void set (const char *ky, const TypeSet< T > &)
 
void set (const char *ky, const uiString &)
 
void set (const char *ky, const uiStringSet &)
 
void set (const char *ky, double)
 
void set (const char *ky, float)
 
Object * set (const char *ky, Object *)
 
void set (const char *ky, od_int16)
 
void set (const char *ky, od_int32)
 
void set (const char *ky, od_int64)
 
void set (const char *ky, od_uint16)
 
void set (const char *ky, od_uint32)
 
void setNull (const char *)
 
bool validIdx (idx_type idx) const
 
- 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
 
virtual BufferString dumpJSon (bool pretty=false) const
 
void dumpJSon (BufferString &, bool pretty=false) const
 
virtual void dumpJSon (StringBuilder &) const
 
bool isArrayChild (idx_type i) const
 
virtual bool isEmpty () const
 
bool isNull (idx_type i) 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
 
ValueSet & operator= (const ValueSet &)=delete
 
uiRetVal parseJSon (char *buf, int bufsz)
 
uiRetVal parseJSon (char *buf, int bufsz, bool allowmixedarr)
 
uiRetVal read (const char *fnm)
 
uiRetVal read (const char *fnm, bool allowmixedarr)
 
uiRetVal read (od_istream &)
 
uiRetVal read (od_istream &, bool allowmixedarr)
 
virtual void setEmpty ()
 
virtual size_type size () const
 
ValueSet * top ()
 
const ValueSet * top () const
 
bool validIdx_ (idx_type idx) const
 
virtual ValueType valueType (idx_type) const
 
uiRetVal write (const char *fnm, bool pretty)
 
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 * getFromJSon (char *buf, int bufsz, uiRetVal &, bool allowmixedarr)
 
static ValueSet * read (const char *fnm, uiRetVal &)
 
static ValueSet * read (const char *fnm, uiRetVal &, bool allowmixedarr)
 
static ValueSet * read (od_istream &, uiRetVal &)
 
static ValueSet * read (od_istream &, uiRetVal &, bool allowmixedarr)
 

Private Member Functions

 GeoJsonTree (const GeoJsonTree &)=delete
 
void createFeatArray ()
 
Array * createFeatCoordArray (const GIS::Property &)
 
GeoJsonTree & operator= (const GeoJsonTree &)=delete
 

Static Private Member Functions

static void addCoord (const Coord &, const Coords::CoordSystem *, Array &)
 
static void addCoord (const Coord3 &, const Coords::CoordSystem *, Array &)
 
static void addLatLong (const LatLong &, double z, Array &)
 

Private Attributes

ConstRefMan< Coords::CoordSystem > coordsys_
 
Array * featarr_ = nullptr
 
BufferString filename_
 
ConstRefMan< Coords::CoordSystem > inpcrs_
 

Additional Inherited Members

- 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 , Null }
 
- 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 *parent)
 
Array * gtArrayByIdx (idx_type) const
 
ValueSet * gtChildByIdx (idx_type) const
 
Object * gtObjectByIdx (idx_type) const
 
void setParent (ValueSet *p)
 
void use (const GasonNode &)
 
void use (const GasonNode &, bool allowmixed)
 
- Static Protected Member Functions inherited from OD::JSON::ValueSet
static ValueSet * gtByParse (char *, int, bool allowmixed, uiRetVal &, ValueSet *)
 
static ValueSet * gtByParse (char *, int, uiRetVal &, ValueSet *)
 
- Protected Attributes inherited from OD::JSON::ValueSet
ValueSet * parent_
 
ObjectSet< Value > values_
 

Constructor & Destructor Documentation

◆ GeoJsonTree() [1/2]

OD::JSON::GeoJsonTree::GeoJsonTree ( )

◆ ~GeoJsonTree()

OD::JSON::GeoJsonTree::~GeoJsonTree ( )

◆ GeoJsonTree() [2/2]

OD::JSON::GeoJsonTree::GeoJsonTree ( const GeoJsonTree & )
privatedelete

Member Function Documentation

◆ addCoord() [1/2]

static void OD::JSON::GeoJsonTree::addCoord ( const Coord & ,
const Coords::CoordSystem * ,
Array &  )
staticprivate

◆ addCoord() [2/2]

static void OD::JSON::GeoJsonTree::addCoord ( const Coord3 & ,
const Coords::CoordSystem * ,
Array &  )
staticprivate

◆ addFeatures() [1/3]

bool OD::JSON::GeoJsonTree::addFeatures ( const Pick::Set & ,
const GIS::Property &  )

◆ addFeatures() [2/3]

bool OD::JSON::GeoJsonTree::addFeatures ( const TypeSet< Coord > & ,
const GIS::Property &  )

◆ addFeatures() [3/3]

bool OD::JSON::GeoJsonTree::addFeatures ( const TypeSet< Coord3 > & ,
const GIS::Property &  )

◆ addLatLong()

static void OD::JSON::GeoJsonTree::addLatLong ( const LatLong & ,
double z,
Array &  )
staticprivate

◆ addPoint() [1/3]

bool OD::JSON::GeoJsonTree::addPoint ( const Coord & ,
const GIS::Property &  )

◆ addPoint() [2/3]

bool OD::JSON::GeoJsonTree::addPoint ( const Coord3 & ,
const GIS::Property &  )

◆ addPoint() [3/3]

bool OD::JSON::GeoJsonTree::addPoint ( const LatLong & ,
double z,
const GIS::Property &  )

◆ createFeatArray()

void OD::JSON::GeoJsonTree::createFeatArray ( )
private

◆ createFeatCoordArray()

Array * OD::JSON::GeoJsonTree::createFeatCoordArray ( const GIS::Property & )
private

◆ doGeoJSonCheck()

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

◆ operator=()

GeoJsonTree & OD::JSON::GeoJsonTree::operator= ( const GeoJsonTree & )
privatedelete

◆ setInputCoordSys()

void OD::JSON::GeoJsonTree::setInputCoordSys ( const Coords::CoordSystem * )

◆ sKeyCoord()

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

◆ sKeyCRS()

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

◆ sKeyFeatures()

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

◆ sKeyGeometry()

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

◆ sKeyName()

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

◆ sKeyProperties()

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

◆ sKeyType()

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

◆ use() [1/2]

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

◆ use() [2/2]

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

Member Data Documentation

◆ coordsys_

ConstRefMan<Coords::CoordSystem> OD::JSON::GeoJsonTree::coordsys_
private

◆ featarr_

Array* OD::JSON::GeoJsonTree::featarr_ = nullptr
private

◆ filename_

BufferString OD::JSON::GeoJsonTree::filename_
private

◆ inpcrs_

ConstRefMan<Coords::CoordSystem> OD::JSON::GeoJsonTree::inpcrs_
private

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