From 29a9fbdad29b85e5a1926ad8a0633aa9ee1d53bf Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Wed, 4 Feb 2009 19:46:36 +0100 Subject: [PATCH] Add ogr-decode to the MSVC 7.1 solution --- projects/VC7.1/ogr-decode/.gitignore | 2 + projects/VC7.1/ogr-decode/ogr-decode.vcproj | 140 ++++++++++++++++++++ projects/VC7.1/terragear.sln | 12 ++ src/Prep/OGRDecode/ogr-decode.cxx | 13 +- 4 files changed, 157 insertions(+), 10 deletions(-) create mode 100644 projects/VC7.1/ogr-decode/.gitignore create mode 100644 projects/VC7.1/ogr-decode/ogr-decode.vcproj diff --git a/projects/VC7.1/ogr-decode/.gitignore b/projects/VC7.1/ogr-decode/.gitignore new file mode 100644 index 00000000..0f3a6b1b --- /dev/null +++ b/projects/VC7.1/ogr-decode/.gitignore @@ -0,0 +1,2 @@ +Debug +Release diff --git a/projects/VC7.1/ogr-decode/ogr-decode.vcproj b/projects/VC7.1/ogr-decode/ogr-decode.vcproj new file mode 100644 index 00000000..f8a8ae9b --- /dev/null +++ b/projects/VC7.1/ogr-decode/ogr-decode.vcproj @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/projects/VC7.1/terragear.sln b/projects/VC7.1/terragear.sln index 84228ac3..db68b2c9 100644 --- a/projects/VC7.1/terragear.sln +++ b/projects/VC7.1/terragear.sln @@ -219,6 +219,14 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "terrafit", "terrafit\terraf {22540CD3-D3CA-4C86-A773-80AEEE3ACDED} = {22540CD3-D3CA-4C86-A773-80AEEE3ACDED} EndProjectSection EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ogr-decode", "ogr-decode\ogr-decode.vcproj", "{376BFCF2-D8AF-48C1-ACFD-07E124DC6BB0}" + ProjectSection(ProjectDependencies) = postProject + {9AABEE2B-19BC-4479-ADBE-58CA0A8BBC93} = {9AABEE2B-19BC-4479-ADBE-58CA0A8BBC93} + {610D5DAE-45EC-446E-86F2-73FDD24449C9} = {610D5DAE-45EC-446E-86F2-73FDD24449C9} + {B1FB93BB-ED1D-40A1-9B35-FCC232F473FD} = {B1FB93BB-ED1D-40A1-9B35-FCC232F473FD} + {22540CD3-D3CA-4C86-A773-80AEEE3ACDED} = {22540CD3-D3CA-4C86-A773-80AEEE3ACDED} + EndProjectSection +EndProject Global GlobalSection(SolutionConfiguration) = preSolution Debug = Debug @@ -381,6 +389,10 @@ Global {F6CEF65C-4643-41AC-8A7D-078BACA6EF67}.Debug.Build.0 = Debug|Win32 {F6CEF65C-4643-41AC-8A7D-078BACA6EF67}.Release.ActiveCfg = Release|Win32 {F6CEF65C-4643-41AC-8A7D-078BACA6EF67}.Release.Build.0 = Release|Win32 + {376BFCF2-D8AF-48C1-ACFD-07E124DC6BB0}.Debug.ActiveCfg = Debug|Win32 + {376BFCF2-D8AF-48C1-ACFD-07E124DC6BB0}.Debug.Build.0 = Debug|Win32 + {376BFCF2-D8AF-48C1-ACFD-07E124DC6BB0}.Release.ActiveCfg = Release|Win32 + {376BFCF2-D8AF-48C1-ACFD-07E124DC6BB0}.Release.Build.0 = Release|Win32 EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection diff --git a/src/Prep/OGRDecode/ogr-decode.cxx b/src/Prep/OGRDecode/ogr-decode.cxx index 94882783..7674020c 100644 --- a/src/Prep/OGRDecode/ogr-decode.cxx +++ b/src/Prep/OGRDecode/ogr-decode.cxx @@ -41,10 +41,6 @@ #include -#ifdef _MSC_VER -# include -#endif - using std:: cout ; using std:: string ; using std:: map ; @@ -487,12 +483,9 @@ int main( int argc, char **argv ) { work_dir=argv[1]; datasource=argv[2]; -#ifdef _MSC_VER - fg_mkdir( work_dir.c_str() ); -#else - string command = "mkdir -p " + work_dir; - system( command.c_str() ); -#endif + SGPath sgp( work_dir ); + sgp.append( "dummy" ); + sgp.create_dir( 0755 ); // initialize persistant polygon counter string counter_file = work_dir + "/poly_counter";