@@ -898,7 +898,7 @@ void wxStation::writeStationFile( std::vector<wxStation>StationVect,
898898 * @return void
899899 */
900900void wxStation::writeKmlFile ( std::vector<wxStation> stations,
901- std::string demFileName,std::string basePath , velocityUnits::eVelocityUnits velUnits)
901+ std::string demFileName, std::string outPath , velocityUnits::eVelocityUnits velUnits)
902902{
903903 std::string outFileNameStamp;
904904 std::string outFileNameMod;
@@ -920,15 +920,13 @@ void wxStation::writeKmlFile( std::vector<wxStation> stations,
920920 std::string path_str (demPath);
921921 std::string filePart = std::string (demChar)+" -stations-" +timestream.str ();
922922
923- if (basePath ==" " ) // If the user doesn't specify out output path, put with dEM
923+ if (outPath ==" " ) // If the user doesn't specify out output path, put with dEM
924924 {
925925 outFileNameStamp = std::string (CPLFormFilename (path_str.c_str (),filePart.c_str ()," .kml" ));
926- // outFileNameStamp=path_str+demChar+"-stations-"+timestream.str()+".kml";
927926 }
928927 else // put with other output files in output path
929928 {
930- outFileNameStamp = std::string (CPLFormFilename (basePath.c_str (),filePart.c_str ()," .kml" ));
931- // outFileNameStamp=basePath+demChar+"-stations-"+timestream.str()+".kml";
929+ outFileNameStamp = std::string (CPLFormFilename (outPath.c_str (),filePart.c_str ()," .kml" ));
932930 }
933931 if ( stations.size () == 0 )
934932 return ;
0 commit comments