Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
0f45509c
Commit
0f45509c
authored
14 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH : test to remove tabs
parent
f4802736
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/IO/otbOGRIOHelper.txx
+7
-7
7 additions, 7 deletions
Code/IO/otbOGRIOHelper.txx
with
7 additions
and
7 deletions
Code/IO/otbOGRIOHelper.txx
+
7
−
7
View file @
0f45509c
...
...
@@ -622,13 +622,13 @@ unsigned int OGRIOHelper<TVectorData>
MetaDataKey::VectorDataKeywordlistKey,
kwl);
// Create the field once
if
(ogrCurrentLayer != NULL && ogrCurrentLayer->GetFeatureCount() == 0)
if (ogrCurrentLayer != NULL && ogrCurrentLayer->GetFeatureCount() == 0)
{
// Take into account the fields stored in the
// vectordatakeywordlist
for(unsigned int fieldIdx = 0 ; fieldIdx < kwl.GetNumberOfFields(); fieldIdx++)
{
if
(
ogrCurrentLayer->CreateField(kwl.GetNthField(fieldIdx).first) != OGRERR_NONE )
for
(unsigned int fieldIdx = 0 ; fieldIdx < kwl.GetNumberOfFields(); fieldIdx++)
{
if
(
ogrCurrentLayer->CreateField(kwl.GetNthField(fieldIdx).first) != OGRERR_NONE )
{
itkExceptionMacro(<< "Failed to create Field "<<kwl.GetNthField(fieldIdx).first->GetNameRef());
}
...
...
@@ -676,7 +676,7 @@ unsigned int OGRIOHelper<TVectorData>
ogrFeature = OGRFeature::CreateFeature(ogrCurrentLayer->GetLayerDefn());
// Add the fields to the features
for(unsigned int i = 0 ; i < kwl.GetNumberOfFields(); i++)
for
(unsigned int i = 0 ; i < kwl.GetNumberOfFields(); i++)
{
// Get the key of the Nth OGRFieldRefn
const char * key = kwl.GetNthField(i).first->GetNameRef();
...
...
@@ -730,7 +730,7 @@ unsigned int OGRIOHelper<TVectorData>
ogrFeature = OGRFeature::CreateFeature(ogrCurrentLayer->GetLayerDefn());
// Add the fields to the features
for(unsigned int i = 0 ; i < kwl.GetNumberOfFields(); i++)
for
(unsigned int i = 0 ; i < kwl.GetNumberOfFields(); i++)
{
// Get the key of the Nth OGRFieldRefn
const char * key = kwl.GetNthField(i).first->GetNameRef();
...
...
@@ -815,7 +815,7 @@ unsigned int OGRIOHelper<TVectorData>
ogrFeature = OGRFeature::CreateFeature(ogrCurrentLayer->GetLayerDefn());
// Add the fields to the features
for(unsigned int i = 0 ; i < kwl.GetNumberOfFields(); i++)
for
(unsigned int i = 0 ; i < kwl.GetNumberOfFields(); i++)
{
// Get the key of the Nth OGRFieldRefn
const char * key = kwl.GetNthField(i).first->GetNameRef();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment