From da946e08f6733afc57fd0a0b83ccb13681d08144 Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Wed, 14 Jan 2009 14:33:00 +0800
Subject: [PATCH] STYLE: renaming example

---
 ...eToLonLat.cxx => PlaceNameToLonLatExample.cxx} | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
 rename Examples/Projections/{PlaceNameToLonLat.cxx => PlaceNameToLonLatExample.cxx} (70%)

diff --git a/Examples/Projections/PlaceNameToLonLat.cxx b/Examples/Projections/PlaceNameToLonLatExample.cxx
similarity index 70%
rename from Examples/Projections/PlaceNameToLonLat.cxx
rename to Examples/Projections/PlaceNameToLonLatExample.cxx
index 57d6ffb7f2..a83ae12b71 100644
--- a/Examples/Projections/PlaceNameToLonLat.cxx
+++ b/Examples/Projections/PlaceNameToLonLatExample.cxx
@@ -19,7 +19,17 @@
 #pragma warning ( disable : 4786 )
 #endif
 
+// Software Guide : BeginLatex
+//
+// This example will show how to retrieve the longitude and latitude from
+// a place using the name of the city or the address. For that, we will
+// use the \doxygen{otb}{PlaceNameToLonLat} class.
+//
+// Software Guide : EndLatex
+
+// Software Guide : BeginCodeSnippet
 #include "otbPlaceNameToLonLat.h"
+// Software Guide : EndCodeSnippet
 
 int main( int argc, char* argv[] )
 {
@@ -32,16 +42,19 @@ int main( int argc, char* argv[] )
     return EXIT_FAILURE;
   }
 
-
+  // Software Guide : BeginCodeSnippet
   otb::PlaceNameToLonLat::Pointer pn2LL = otb::PlaceNameToLonLat::New();
   pn2LL->SetPlaceName(std::string(argv[1]));
   pn2LL->Evaluate();
+  // Software Guide : EndCodeSnippet
 
+  // Software Guide : BeginCodeSnippet
   double lon = pn2LL->GetLon();
   double lat = pn2LL->GetLat();
 
   std::cout << "Latitude: " << lat << std::endl;
   std::cout << "Longitude: " << lon << std::endl;
+  // Software Guide : EndCodeSnippet
 
   return EXIT_SUCCESS;
 
-- 
GitLab