OpenCPN Partial API docs
Loading...
Searching...
No Matches
OGRS57DataSource Class Reference

Public Member Functions

void SetOptionList (char **)
 
const char * GetOption (const char *)
 
int Open (const char *pszName, int bTestOpen=FALSE, CallBackFunction p_callback=NULL)
 
int OpenMin (const char *pszName, int bTestOpen=FALSE)
 
int Create (const char *pszName, char **papszOptions)
 
bool IsSencPath (const char *path, const char *parent="SENC")
 OpenCPN copies new cell files into a cache directory named 'SENC'.
 
const char * GetName ()
 
int GetLayerCount ()
 
OGRLayer * GetLayer (int)
 
void AddLayer (OGRS57Layer *)
 
int TestCapability (const char *)
 
OGRSpatialReference * GetSpatialRef ()
 
int GetModuleCount ()
 
S57ReaderGetModule (int)
 
S57WriterGetWriter ()
 
S57ClassRegistrarGetS57Registrar ()
 
void SetS57Registrar (S57ClassRegistrar *p)
 
OGRErr GetDSExtent (OGREnvelope *psExtent, int bForce=TRUE)
 

Detailed Description

Definition at line 90 of file ogr_s57.h.

Constructor & Destructor Documentation

◆ OGRS57DataSource()

OGRS57DataSource::OGRS57DataSource ( )

Definition at line 38 of file ogrs57datasource.cpp.

◆ ~OGRS57DataSource()

OGRS57DataSource::~OGRS57DataSource ( )

Definition at line 74 of file ogrs57datasource.cpp.

Member Function Documentation

◆ AddLayer()

void OGRS57DataSource::AddLayer ( OGRS57Layer poNewLayer)

Definition at line 619 of file ogrs57datasource.cpp.

◆ GetDSExtent()

OGRErr OGRS57DataSource::GetDSExtent ( OGREnvelope *  psExtent,
int  bForce = TRUE 
)

Definition at line 645 of file ogrs57datasource.cpp.

◆ GetLayer()

OGRLayer * OGRS57DataSource::GetLayer ( int  iLayer)

Definition at line 606 of file ogrs57datasource.cpp.

◆ GetLayerCount()

int OGRS57DataSource::GetLayerCount ( )
inline

Definition at line 137 of file ogr_s57.h.

◆ GetModule()

S57Reader * OGRS57DataSource::GetModule ( int  i)

Definition at line 632 of file ogrs57datasource.cpp.

◆ GetModuleCount()

int OGRS57DataSource::GetModuleCount ( )
inline

Definition at line 144 of file ogr_s57.h.

◆ GetName()

const char * OGRS57DataSource::GetName ( )
inline

Definition at line 136 of file ogr_s57.h.

◆ GetOption()

const char * OGRS57DataSource::GetOption ( const char *  pszOption)

Definition at line 121 of file ogrs57datasource.cpp.

◆ GetS57Registrar()

S57ClassRegistrar * OGRS57DataSource::GetS57Registrar ( )
inline

Definition at line 148 of file ogr_s57.h.

◆ GetSpatialRef()

OGRSpatialReference * OGRS57DataSource::GetSpatialRef ( )
inline

Definition at line 142 of file ogr_s57.h.

◆ GetWriter()

S57Writer * OGRS57DataSource::GetWriter ( )
inline

Definition at line 146 of file ogr_s57.h.

◆ IsSencPath()

bool OGRS57DataSource::IsSencPath ( const char *  path,
const char *  parent = "SENC" 
)

OpenCPN copies new cell files into a cache directory named 'SENC'.

Check if the last folder in the "path" is 'SENC' (or any other name specified by the parent parameter). If so, the cache file may be removed after ingesting.

Parameters
pathpoints to a C-string file path
parentpoints to a C-string cache folder name
Returns
true if last folder in "path" matches "parent"

Definition at line 591 of file ogrs57datasource.cpp.

◆ Open()

int OGRS57DataSource::Open ( const char *  pszName,
int  bTestOpen = FALSE,
CallBackFunction  p_callback = NULL 
)

Definition at line 140 of file ogrs57datasource.cpp.

◆ OpenMin()

int OGRS57DataSource::OpenMin ( const char *  pszName,
int  bTestOpen = FALSE 
)

Definition at line 363 of file ogrs57datasource.cpp.

◆ SetOptionList()

void OGRS57DataSource::SetOptionList ( char **  papszNewOptions)

Definition at line 110 of file ogrs57datasource.cpp.

◆ SetS57Registrar()

void OGRS57DataSource::SetS57Registrar ( S57ClassRegistrar p)
inline

Definition at line 149 of file ogr_s57.h.

◆ TestCapability()

int OGRS57DataSource::TestCapability ( const char *  )

Definition at line 131 of file ogrs57datasource.cpp.


The documentation for this class was generated from the following files: