Commit bdf4c48f authored by Luc Hermitte's avatar Luc Hermitte

ENH: OTB-134/OGR first draft of layers iterator

parent 1cd5db54
......@@ -122,6 +122,30 @@ otb::ogr::DataSource::New(OGRDataSource * source)
/*===========================================================================*/
/*================================[ layers ]=================================*/
/*===========================================================================*/
otb::ogr::DataSource::const_iterator otb::ogr::DataSource::cbegin() const
{
// return const_iterator(*this, 0);
assert(!"not-ready");
return const_iterator();
}
otb::ogr::DataSource::const_iterator otb::ogr::DataSource::cend() const
{
// return const_iterator(*this, GetLayersCount());
assert(!"not-ready");
return const_iterator();
}
otb::ogr::DataSource::iterator otb::ogr::DataSource::begin()
{
return iterator(*this, 0);
}
otb::ogr::DataSource::iterator otb::ogr::DataSource::end()
{
return iterator(*this, GetLayersCount());
}
otb::ogr::Layer otb::ogr::DataSource::CreateLayer(
std::string const& name,
OGRSpatialReference * poSpatialRef/* = NULL */,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment