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
8b2f1393
"README.md" did not exist on "749845c75ea09261e21e264d7af7434d0883ed3c"
Commit
8b2f1393
authored
16 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
BUG: correcting lon/lat inversion in KML
parent
d99f0d5c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Code/IO/otbKMLVectorDataIO.txx
+8
-8
8 additions, 8 deletions
Code/IO/otbKMLVectorDataIO.txx
Code/IO/otbKMLVectorDataIOFactory.h
+1
-1
1 addition, 1 deletion
Code/IO/otbKMLVectorDataIOFactory.h
Code/IO/otbVectorDataFileWriter.h
+1
-1
1 addition, 1 deletion
Code/IO/otbVectorDataFileWriter.h
with
10 additions
and
10 deletions
Code/IO/otbKMLVectorDataIO.txx
+
8
−
8
View file @
8b2f1393
...
@@ -590,11 +590,11 @@ namespace otb
...
@@ -590,11 +590,11 @@ namespace otb
CoordinatesPtr coordinates = factory->CreateCoordinates();
CoordinatesPtr coordinates = factory->CreateCoordinates();
if(DataNodeType::Dimension>2)
if(DataNodeType::Dimension>2)
{
{
coordinates->add_latlngalt(it.Get()->GetPoint()[
0
],it.Get()->GetPoint()[
1
],it.Get()->GetPoint()[2]);
coordinates->add_latlngalt(it.Get()->GetPoint()[
1
],it.Get()->GetPoint()[
0
],it.Get()->GetPoint()[2]);
}
}
else
else
{
{
coordinates->add_latlng(it.Get()->GetPoint()[
0
],it.Get()->GetPoint()[
1
]);
coordinates->add_latlng(it.Get()->GetPoint()[
1
],it.Get()->GetPoint()[
0
]);
}
}
// Create <Point> and give it <coordinates>.
// Create <Point> and give it <coordinates>.
...
@@ -638,11 +638,11 @@ namespace otb
...
@@ -638,11 +638,11 @@ namespace otb
if(DataNodeType::Dimension>2)
if(DataNodeType::Dimension>2)
{
{
coordinates->add_latlngalt(vIt.Value()[
0
],vIt.Value()[
1
],vIt.Value()[2]);
coordinates->add_latlngalt(vIt.Value()[
1
],vIt.Value()[
0
],vIt.Value()[2]);
}
}
else
else
{
{
coordinates->add_latlng(vIt.Value()[
0
],vIt.Value()[
1
]);
coordinates->add_latlng(vIt.Value()[
1
],vIt.Value()[
0
]);
}
}
line->set_coordinates(coordinates);
line->set_coordinates(coordinates);
++vIt;
++vIt;
...
@@ -684,11 +684,11 @@ namespace otb
...
@@ -684,11 +684,11 @@ namespace otb
{
{
if(DataNodeType::Dimension>2)
if(DataNodeType::Dimension>2)
{
{
coordinates->add_latlngalt(vIt.Value()[
0
],vIt.Value()[
1
],vIt.Value()[2]);
coordinates->add_latlngalt(vIt.Value()[
1
],vIt.Value()[
0
],vIt.Value()[2]);
}
}
else
else
{
{
coordinates->add_latlng(vIt.Value()[
0
],vIt.Value()[
1
]);
coordinates->add_latlng(vIt.Value()[
1
],vIt.Value()[
0
]);
}
}
line->set_coordinates(coordinates);
line->set_coordinates(coordinates);
...
@@ -709,11 +709,11 @@ namespace otb
...
@@ -709,11 +709,11 @@ namespace otb
{
{
if(DataNodeType::Dimension>2)
if(DataNodeType::Dimension>2)
{
{
coordinates->add_latlngalt(it.Get()->GetPoint()[
0
],it.Get()->GetPoint()[
1
],it.Get()->GetPoint()[2]);
coordinates->add_latlngalt(it.Get()->GetPoint()[
1
],it.Get()->GetPoint()[
0
],it.Get()->GetPoint()[2]);
}
}
else
else
{
{
coordinates->add_latlng(it.Get()->GetPoint()[
0
],it.Get()->GetPoint()[
1
]);
coordinates->add_latlng(it.Get()->GetPoint()[
1
],it.Get()->GetPoint()[
0
]);
}
}
line->set_coordinates(coordinates);
line->set_coordinates(coordinates);
...
...
This diff is collapsed.
Click to expand it.
Code/IO/otbKMLVectorDataIOFactory.h
+
1
−
1
View file @
8b2f1393
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
namespace
otb
namespace
otb
{
{
/** \class KMLVectorDataIOFactory
/** \class KMLVectorDataIOFactory
* \brief Creati
on d'u
n instance
d'un objet
VectorDataImageIO
utilisant les
object factory.
* \brief Creati
ng a
n instance
of a
VectorDataImageIO
object using
object factory.
*/
*/
template
<
class
TData
>
class
ITK_EXPORT
KMLVectorDataIOFactory
:
public
itk
::
ObjectFactoryBase
template
<
class
TData
>
class
ITK_EXPORT
KMLVectorDataIOFactory
:
public
itk
::
ObjectFactoryBase
{
{
...
...
This diff is collapsed.
Click to expand it.
Code/IO/otbVectorDataFileWriter.h
+
1
−
1
View file @
8b2f1393
...
@@ -53,7 +53,7 @@ public:
...
@@ -53,7 +53,7 @@ public:
/** \class VectorDataFileWriter
/** \class VectorDataFileWriter
* \brief This class writes
the ShapeFile format
* \brief This class writes
vector data file format (shapefile and KML)
*
*
* \ingroup IO
* \ingroup IO
*/
*/
...
...
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