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
2eacfafc
Commit
2eacfafc
authored
14 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH : add NTF datum in ossimWktTranslator
parent
d28450c1
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
Utilities/otbossimplugins/gdal/ossimOgcWktTranslator.cpp
+8
-1
8 additions, 1 deletion
Utilities/otbossimplugins/gdal/ossimOgcWktTranslator.cpp
with
8 additions
and
1 deletion
Utilities/otbossimplugins/gdal/ossimOgcWktTranslator.cpp
+
8
−
1
View file @
2eacfafc
...
...
@@ -601,7 +601,7 @@ bool ossimOgcWktTranslator::toOssimKwl( const ossimString& wktString,
// Several UNIT nodes can be present in the tree, but only the one
// necessary for the PROJCS is required.
const
char
*
units
=
NULL
;
OGR_SRSNode
*
node
=
((
OGRSpatialReference
*
)
hSRS
)
->
Get
AttrNode
(
"PROJCS"
);
OGR_SRSNode
*
node
=
((
OGRSpatialReference
*
)
hSRS
)
->
Get
Root
(
);
int
nbChild
=
node
->
GetChildCount
();
for
(
int
i
=
0
;
i
<
nbChild
;
i
++
)
{
...
...
@@ -905,6 +905,7 @@ bool ossimOgcWktTranslator::toOssimKwl( const ossimString& wktString,
// extract out the datum
//
const
char
*
datum
=
OSRGetAttrValue
(
hSRS
,
"DATUM"
,
0
);
ossimString
oDatum
=
"WGE"
;
if
(
datum
)
...
...
@@ -949,6 +950,8 @@ void ossimOgcWktTranslator::initializeDatumTable()
ossimString
(
"WGS_1984"
)));
theWktToOssimDatumTranslation
.
insert
(
make_pair
(
ossimString
(
"OSGB_1936"
),
ossimString
(
"OGB-B"
)));
theWktToOssimDatumTranslation
.
insert
(
make_pair
(
ossimString
(
"Nouvelle_Triangulation_Francaise"
),
ossimString
(
"NTF"
)));
}
void
ossimOgcWktTranslator
::
initializeProjectionTable
()
...
...
@@ -1010,6 +1013,10 @@ ossimString ossimOgcWktTranslator::wktToOssimDatum(const ossimString& datum)cons
{
return
"OGB-D"
;
}
if
(
datum
.
contains
(
"Nouvelle_Triangulation_Francaise"
))
{
return
"NTF"
;
}
return
""
;
}
...
...
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