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
Container Registry
Model registry
Operate
Environments
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
Sébastien Peillet
otb
Commits
f3162ea4
Commit
f3162ea4
authored
8 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
TEST: explicit definition of the output projRef
parent
c98448e3
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
Modules/Filtering/VectorDataRendering/test/otbVectorDataToMapFilterWorld.cxx
+6
-0
6 additions, 0 deletions
...ectorDataRendering/test/otbVectorDataToMapFilterWorld.cxx
with
6 additions
and
0 deletions
Modules/Filtering/VectorDataRendering/test/otbVectorDataToMapFilterWorld.cxx
+
6
−
0
View file @
f3162ea4
...
...
@@ -49,15 +49,21 @@ int otbVectorDataToMapFilterWorld(int argc, char * argv [])
//Reproject the vector data in the proper projection
typedef
otb
::
VectorDataProjectionFilter
<
VectorDataType
,
VectorDataType
>
ProjectionFilterType
;
std
::
string
outputProjRef
(
"GEOGCS[
\"
GCS_WGS_1984
\"
, DATUM[
\"
D_WGS_1984
\"
, "
"SPHEROID[
\"
WGS_1984
\"
, 6378137, 298.257223563]], PRIMEM[
\"
Greenwich
\"
, 0],"
" UNIT[
\"
Degree
\"
, 0.017453292519943295]]"
);
VectorDataFileReaderType
::
Pointer
reader0
=
VectorDataFileReaderType
::
New
();
reader0
->
SetFileName
(
argv
[
1
]);
ProjectionFilterType
::
Pointer
projection0
=
ProjectionFilterType
::
New
();
projection0
->
SetInput
(
reader0
->
GetOutput
());
projection0
->
SetOutputProjectionRef
(
outputProjRef
);
VectorDataFileReaderType
::
Pointer
reader1
=
VectorDataFileReaderType
::
New
();
reader1
->
SetFileName
(
argv
[
2
]);
ProjectionFilterType
::
Pointer
projection1
=
ProjectionFilterType
::
New
();
projection1
->
SetInput
(
reader1
->
GetOutput
());
projection1
->
SetOutputProjectionRef
(
outputProjRef
);
//Convert the vector data into an image
typedef
itk
::
RGBAPixel
<
unsigned
char
>
PixelType
;
...
...
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