OpendTect 8.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
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 ()
 
Objectclone () const override
 
template<class T >
bool get (const char *, Array1D< T > &) const
 
template<class T >
bool get (const char *, Array2D< T > &) const
 
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
 
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
 
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
 
Objectoperator= (const Object &)=delete
 
void remove (const char *)
 
Arrayset (const char *ky, Array *)
 
void set (const char *ky, bool)
 
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 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, 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)
 
- 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
 
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 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
 
ValueSetoperator= (const ValueSet &)=delete
 
uiRetVal parseJSon (char *buf, int bufsz)
 
uiRetVal read (const char *fnm)
 
uiRetVal read (od_istream &)
 
virtual void setEmpty ()
 
virtual size_type size () const
 
ValueSettop ()
 
const ValueSettop () 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 ValueSetgetFromJSon (char *buf, int bufsz, uiRetVal &)
 
static ValueSetread (const char *fnm, uiRetVal &)
 
static ValueSetread (od_istream &, uiRetVal &)
 

Private Member Functions

void createFeatArray ()
 
ArraycreateFeatCoordArray (const GIS::Property &)
 
 mOD_DisableCopy (GeoJsonTree)
 

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::CoordSystemcoordsys_
 
Arrayfeatarr_ = nullptr
 
BufferString filename_
 
ConstRefMan< Coords::CoordSysteminpcrs_
 

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 }
 
- 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 *parent)
 
ArraygtArrayByIdx (idx_type) const
 
ValueSetgtChildByIdx (idx_type) const
 
ObjectgtObjectByIdx (idx_type) const
 
void setParent (ValueSet *p)
 
void use (const GasonNode &)
 
- Static Protected Member Functions inherited from OD::JSON::ValueSet
static ValueSetgtByParse (char *, int, uiRetVal &, ValueSet *)
 
- Protected Attributes inherited from OD::JSON::ValueSet
ValueSetparent_
 
ObjectSet< Valuevalues_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ GeoJsonTree()

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

◆ ~GeoJsonTree()

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

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 & )

◆ mOD_DisableCopy()

OD::JSON::GeoJsonTree::mOD_DisableCopy ( GeoJsonTree )
private

◆ 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-2025