Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
30798a1f
Commit
30798a1f
authored
Oct 06, 2008
by
Guillaume Borrut
Browse files
Missing files
parent
fd066dd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Testing/Code/IO/otbKMLVectorDataIOTestFileReader.cxx
0 → 100644
View file @
30798a1f
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "otbKMLVectorDataIO.h"
#include "otbVectorData.h"
#include <iostream>
int
otbKMLVectorDataIOTestFileReader
(
int
argc
,
char
*
argv
[])
{
typedef
otb
::
VectorData
<>
VectorDataType
;
typedef
otb
::
KMLVectorDataIO
<
VectorDataType
>
KMLVectorDataIOType
;
typedef
VectorDataType
::
Pointer
VectorDataPointerType
;
KMLVectorDataIOType
::
Pointer
object
=
KMLVectorDataIOType
::
New
();
VectorDataPointerType
data
=
VectorDataType
::
New
();
bool
lCanRead
=
object
->
CanReadFile
(
argv
[
1
]);
// ??
object
->
SetFileName
(
argv
[
1
]);
std
::
cout
<<
" FileName : "
<<
object
->
GetFileName
()
<<
std
::
endl
;
object
->
Read
(
data
);
/* if ( lCanRead == false)
{
std::cerr << "Erreur otb::KMLVectorDataIO : impossible to create the file "<<argv[1]<<"."<<std::endl;
return EXIT_FAILURE;
}
*/
return
EXIT_SUCCESS
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment