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
Julien Cabieces
otb
Commits
9da20479
Commit
9da20479
authored
12 years ago
by
OTB Bot
Browse files
Options
Downloads
Patches
Plain Diff
STYLE
parent
87784e82
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Applications/Segmentation/otbSegmentation.cxx
+15
-15
15 additions, 15 deletions
Applications/Segmentation/otbSegmentation.cxx
Code/Segmentation/otbOGRLayerStreamStitchingFilter.txx
+1
-1
1 addition, 1 deletion
Code/Segmentation/otbOGRLayerStreamStitchingFilter.txx
with
16 additions
and
16 deletions
Applications/Segmentation/otbSegmentation.cxx
+
15
−
15
View file @
9da20479
...
...
@@ -725,23 +725,23 @@ private:
AddProcess
(
fusionFilter
,
"Stitching polygons"
);
fusionFilter
->
GenerateData
();
//REPACK the Layer in case of Shapefile.
//This request will remove features marked as deleted in the .dbf filename,
//and recomputed FID for each features (without holes).
//REPACK the Layer in case of Shapefile.
//This request will remove features marked as deleted in the .dbf filename,
//and recomputed FID for each features (without holes).
//Note : the GetDriver() Method has not been encapsulated in otb::ogr::DataSource,
//so we must access the OGR pointer by using .ogr()
std
::
string
driverName
(
ogrDS
->
ogr
().
GetDriver
()
->
GetName
());
if
(
driverName
.
find
(
"ESRI Shapefile"
)
!=
std
::
string
::
npos
)
{
otbAppLogINFO
(
<<
"REPACK the Shapefile ..."
<<
std
::
endl
);
//In Shapefile format, the name of the DaaSource is also the name of the Layer.
std
::
string
shpLayerName
=
itksys
::
SystemTools
::
GetFilenameWithoutExtension
(
GetParameterString
(
"mode.vector.out"
));
std
::
string
repack
(
"REPACK "
);
repack
=
repack
+
shpLayerName
;
ogrDS
->
ExecuteSQL
(
repack
,
NULL
,
NULL
);
}
}
std
::
string
driverName
(
ogrDS
->
ogr
().
GetDriver
()
->
GetName
());
if
(
driverName
.
find
(
"ESRI Shapefile"
)
!=
std
::
string
::
npos
)
{
otbAppLogINFO
(
<<
"REPACK the Shapefile ..."
<<
std
::
endl
);
//In Shapefile format, the name of the DaaSource is also the name of the Layer.
std
::
string
shpLayerName
=
itksys
::
SystemTools
::
GetFilenameWithoutExtension
(
GetParameterString
(
"mode.vector.out"
));
std
::
string
repack
(
"REPACK "
);
repack
=
repack
+
shpLayerName
;
ogrDS
->
ExecuteSQL
(
repack
,
NULL
,
NULL
);
}
}
}
}
EdisonSegmentationFilterType
::
Pointer
m_Filter
;
...
...
This diff is collapsed.
Click to expand it.
Code/Segmentation/otbOGRLayerStreamStitchingFilter.txx
+
1
−
1
View file @
9da20479
...
...
@@ -123,7 +123,7 @@ OGRLayerStreamStitchingFilter<TInputImage>
startReporter = 50;
stopReporter = 100;
}
itk::ProgressReporter progress(this,0,2*nbRowStream*nbColStream,100,startReporter);*/
itk::ProgressReporter progress(this,0,2*nbRowStream*nbColStream,100,startReporter);
*/
for(unsigned int x=1; x<=nbColStream; x++)
{
...
...
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