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
d2969376
Commit
d2969376
authored
9 years ago
by
Julien Michel
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Fixing null pointer error seen in tests
parent
d63d3247
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
Modules/Adapters/GdalAdapters/src/otbOGRVersionProxy1x.cxx
+6
-1
6 additions, 1 deletion
Modules/Adapters/GdalAdapters/src/otbOGRVersionProxy1x.cxx
Modules/Applications/AppSegmentation/app/otbSegmentation.cxx
+4
-1
4 additions, 1 deletion
Modules/Applications/AppSegmentation/app/otbSegmentation.cxx
with
10 additions
and
2 deletions
Modules/Adapters/GdalAdapters/src/otbOGRVersionProxy1x.cxx
+
6
−
1
View file @
d2969376
...
...
@@ -42,7 +42,12 @@ void OGRVersionProxy::Close(GDALDatasetType * dataset)
OGRVersionProxy
::
GDALDatasetType
*
OGRVersionProxy
::
Create
(
GDALDriverType
*
driver
,
const
char
*
name
)
{
return
driver
->
CreateDataSource
(
name
);
GDALDatasetType
*
ds
=
driver
->
CreateDataSource
(
name
);
if
(
ds
)
ds
->
SetDriver
(
driver
);
return
ds
;
}
bool
OGRVersionProxy
::
Delete
(
GDALDriverType
*
driver
,
const
char
*
name
)
...
...
This diff is collapsed.
Click to expand it.
Modules/Applications/AppSegmentation/app/otbSegmentation.cxx
+
4
−
1
View file @
d2969376
...
...
@@ -675,7 +675,10 @@ private:
//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
());
otb
::
OGRVersionProxy
::
GDALDatasetType
&
gdalDS
=
ogrDS
->
ogr
();
otb
::
OGRVersionProxy
::
GDALDriverType
*
gdalDriver
=
gdalDS
.
GetDriver
();
std
::
string
driverName
(
gdalDriver
->
GetName
());
if
(
driverName
.
find
(
"ESRI Shapefile"
)
!=
std
::
string
::
npos
)
{
otbAppLogINFO
(
<<
"REPACK the Shapefile ..."
<<
std
::
endl
);
...
...
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