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

GeoJSON Writer. More...

#include <geojsonwriter.h>

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

Public Member Functions

 ~GeoJSONWriter ()
 
- Public Member Functions inherited from GIS::Writer
virtual ~Writer ()
 
uiString errMsg ()
 
virtual Writer & setDescription (const char *)
 
virtual Writer & setElemName (const char *)
 before open()
 
virtual Writer & setProperties (const Property &)
 
virtual Writer & setSurveyName (const char *)
 before open()
 
uiString successMsg ()
 

Private Member Functions

 GeoJSONWriter ()
 
 GeoJSONWriter (const GeoJSONWriter &)=delete
 
bool close () override
 
void getDefaultProperties (const GIS::FeatureType &, GIS::Property &) const override
 
BufferString getExtension () const override
 
bool isOK () const override
 
bool open (const char *fnm, bool useexisting) override
 
GeoJSONWriter & operator= (const GeoJSONWriter &)=delete
 
GIS::Writer & setInputCoordSys (const Coords::CoordSystem *) override
 
GIS::Writer & setStream (const char *, bool useexisting) override
 
bool writeLine (const Pick::Set &) override
 
bool writeLine (const TypeSet< Coord > &, const char *nm=nullptr) override
 
bool writeLine (const TypeSet< Coord3 > &, const char *nm=nullptr) override
 
bool writeLines (const Pick::Set &) override
 
bool writePoint (const Coord &, const char *nm=nullptr) override
 
bool writePoint (const Coord3 &, const char *nm=nullptr) override
 
bool writePoint (const LatLong &, const char *nm=nullptr, double z=0.) override
 
bool writePoints (const Pick::Set &) override
 
bool writePoints (const TypeSet< Coord > &, const char *nm=nullptr) override
 
bool writePoints (const TypeSet< Coord3 > &, const char *nm=nullptr) override
 
bool writePolygon (const Pick::Set &) override
 
bool writePolygon (const TypeSet< Coord > &, const char *nm=nullptr) override
 
bool writePolygon (const TypeSet< Coord3 > &, const char *nm=nullptr) override
 
bool writePolygons (const Pick::Set &) override
 

Private Attributes

GeoJsonTree * geojsontree_
 

Additional Inherited Members

- Protected Member Functions inherited from GIS::Writer
 Writer ()
 
bool doLineCheck (int sz)
 
bool doPolygonCheck (int sz)
 
const Coords::CoordSystem * getOutputCRS () const
 
od_ostream & strm ()
 
const od_ostream & strm () const
 
- Protected Attributes inherited from GIS::Writer
uiString errmsg_
 
ConstRefMan< Coords::CoordSystem > inpcrs_
 
Property properties_
 
od_ostream * strm_ = nullptr
 

Detailed Description

GeoJSON Writer.

Constructor & Destructor Documentation

◆ ~GeoJSONWriter()

OD::JSON::GeoJSONWriter::~GeoJSONWriter ( )

◆ GeoJSONWriter() [1/2]

OD::JSON::GeoJSONWriter::GeoJSONWriter ( )
private

◆ GeoJSONWriter() [2/2]

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

Member Function Documentation

◆ close()

bool OD::JSON::GeoJSONWriter::close ( )
overrideprivatevirtual

Reimplemented from GIS::Writer.

◆ getDefaultProperties()

void OD::JSON::GeoJSONWriter::getDefaultProperties ( const GIS::FeatureType & ,
GIS::Property &  ) const
overrideprivatevirtual

Implements GIS::Writer.

◆ getExtension()

BufferString OD::JSON::GeoJSONWriter::getExtension ( ) const
inlineoverrideprivatevirtual

Implements GIS::Writer.

◆ isOK()

bool OD::JSON::GeoJSONWriter::isOK ( ) const
overrideprivatevirtual

Reimplemented from GIS::Writer.

◆ open()

bool OD::JSON::GeoJSONWriter::open ( const char * fnm,
bool useexisting )
overrideprivatevirtual

Implements GIS::Writer.

◆ operator=()

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

◆ setInputCoordSys()

GIS::Writer & OD::JSON::GeoJSONWriter::setInputCoordSys ( const Coords::CoordSystem * )
overrideprivatevirtual

Reimplemented from GIS::Writer.

◆ setStream()

GIS::Writer & OD::JSON::GeoJSONWriter::setStream ( const char * ,
bool useexisting )
overrideprivatevirtual

Implements GIS::Writer.

◆ writeLine() [1/3]

bool OD::JSON::GeoJSONWriter::writeLine ( const Pick::Set & )
overrideprivatevirtual

Implements GIS::Writer.

◆ writeLine() [2/3]

bool OD::JSON::GeoJSONWriter::writeLine ( const TypeSet< Coord > & ,
const char * nm = nullptr )
overrideprivatevirtual

Implements GIS::Writer.

◆ writeLine() [3/3]

bool OD::JSON::GeoJSONWriter::writeLine ( const TypeSet< Coord3 > & ,
const char * nm = nullptr )
overrideprivatevirtual

Implements GIS::Writer.

◆ writeLines()

bool OD::JSON::GeoJSONWriter::writeLines ( const Pick::Set & )
overrideprivatevirtual

Reimplemented from GIS::Writer.

◆ writePoint() [1/3]

bool OD::JSON::GeoJSONWriter::writePoint ( const Coord & ,
const char * nm = nullptr )
overrideprivatevirtual

Implements GIS::Writer.

◆ writePoint() [2/3]

bool OD::JSON::GeoJSONWriter::writePoint ( const Coord3 & ,
const char * nm = nullptr )
overrideprivatevirtual

Implements GIS::Writer.

◆ writePoint() [3/3]

bool OD::JSON::GeoJSONWriter::writePoint ( const LatLong & ,
const char * nm = nullptr,
double z = 0. )
overrideprivatevirtual

Implements GIS::Writer.

◆ writePoints() [1/3]

bool OD::JSON::GeoJSONWriter::writePoints ( const Pick::Set & )
overrideprivatevirtual

Implements GIS::Writer.

◆ writePoints() [2/3]

bool OD::JSON::GeoJSONWriter::writePoints ( const TypeSet< Coord > & ,
const char * nm = nullptr )
overrideprivatevirtual

Implements GIS::Writer.

◆ writePoints() [3/3]

bool OD::JSON::GeoJSONWriter::writePoints ( const TypeSet< Coord3 > & ,
const char * nm = nullptr )
overrideprivatevirtual

Implements GIS::Writer.

◆ writePolygon() [1/3]

bool OD::JSON::GeoJSONWriter::writePolygon ( const Pick::Set & )
overrideprivatevirtual

Implements GIS::Writer.

◆ writePolygon() [2/3]

bool OD::JSON::GeoJSONWriter::writePolygon ( const TypeSet< Coord > & ,
const char * nm = nullptr )
overrideprivatevirtual

Implements GIS::Writer.

◆ writePolygon() [3/3]

bool OD::JSON::GeoJSONWriter::writePolygon ( const TypeSet< Coord3 > & ,
const char * nm = nullptr )
overrideprivatevirtual

Implements GIS::Writer.

◆ writePolygons()

bool OD::JSON::GeoJSONWriter::writePolygons ( const Pick::Set & )
overrideprivatevirtual

Reimplemented from GIS::Writer.

Member Data Documentation

◆ geojsontree_

GeoJsonTree* OD::JSON::GeoJSONWriter::geojsontree_
private

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