Skip to content
Snippets Groups Projects
Commit 56365e0b authored by Grégoire Mercier's avatar Grégoire Mercier
Browse files

MRG

parents 9fa5cb46 a5afdc88
No related branches found
No related tags found
No related merge requests found
......@@ -311,6 +311,7 @@ PostGISTable<TConnectionImplementation, TPrecision, SpatialDimension>
if ( !m_TableName.empty() ) {
connectionSTR +="tables=";
connectionSTR += m_TableName;
// connectionSTR += "' ";
}
otbGenericMsgDebugMacro(<<"OGR connection string " << connectionSTR);
......
......@@ -126,8 +126,8 @@ VectorDataToGISTableFilter< TVectorData, TGISTable >
output->GetConnection()->ConnectToDB();
/**Name of the table is settedd automaticcaly to "vector_data_to_gis"*/
output->SetTableName ("vector_data_to_gis");
// output->SetTableName ("vector_data_to_gis");
output->SetTableName (this->GetGISTableName());
/**Create the PostgreSQL table*/
//output->CreateTable(m_DropExistingGISTable);
......
......@@ -100,7 +100,7 @@ public:
virtual bool CanWriteFile(const char*) const;
/** Writes the data to disk from the data structure provided */
virtual void Write(VectorDataConstPointerType data);
virtual void Write(VectorDataConstPointerType data, char ** papszOptions = NULL);
protected:
/** Construtor.*/
......
......@@ -546,7 +546,7 @@ bool KMLVectorDataIO<TData>::CanWriteFile( const char* filename ) const
}
template<class TData>
void KMLVectorDataIO<TData>::Write(const VectorDataConstPointerType data)
void KMLVectorDataIO<TData>::Write(const VectorDataConstPointerType data, char ** papszOptions)
{
itk::TimeProbe chrono;
chrono.Start();
......
......@@ -99,7 +99,7 @@ public:
virtual bool CanWriteFile(const char*) const;
/** Writes the data to disk from the memory buffer provided */
virtual void Write(VectorDataConstPointerType data);
virtual void Write(VectorDataConstPointerType data, char ** papszOptions = NULL);
protected:
/** Construtor.*/
......
......@@ -191,7 +191,7 @@ bool OGRVectorDataIO<TData>::CanWriteFile( const char* filename ) const
}
template<class TData>
void OGRVectorDataIO<TData>::Write(const VectorDataConstPointerType data)
void OGRVectorDataIO<TData>::Write(const VectorDataConstPointerType data, char ** papszOptions)
{
itk::TimeProbe chrono;
chrono.Start();
......@@ -225,7 +225,7 @@ void OGRVectorDataIO<TData>::Write(const VectorDataConstPointerType data)
// m_DataSource = OGRSFDriverRegistrar::Open(this->m_FileName.c_str(), TRUE);
m_DataSource = ogrDriver->CreateDataSource(this->m_FileName.c_str(),NULL);
m_DataSource = ogrDriver->CreateDataSource(this->m_FileName.c_str(),papszOptions);
// check the created data source
......
......@@ -150,7 +150,7 @@ public:
/** Writes the data to disk from the memory buffer provided. Make sure
* that the IORegions has been set properly. The buffer is cast to a
* pointer to the beginning of the image data. */
virtual void Write(VectorDataConstPointerType data) = 0;
virtual void Write(VectorDataConstPointerType data, char ** papszOptions = NULL) = 0;
protected:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment