Skip to content

Commit 25148a7

Browse files
committed
Finishing changes for release v5.1
1 parent ca0946d commit 25148a7

12 files changed

Lines changed: 24 additions & 19 deletions

src/COM classes/GdalUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ STDMETHODIMP CGdalUtils::GdalBuildOverviews(BSTR sourceFilename, const tkGDALRes
422422
}
423423

424424
const auto pszResampling = GdalHelper::GetResamplingAlgorithm(resamplingMethod);
425-
// TODO: Shouldn't pszResampling be freed?
425+
// It's a stack-based variable rather than an allocated variable. So no delete is necessary.
426426

427427
// Call the GDALBuildOverviews function:
428428
m_globalSettings.SetGdalUtf8(true);

src/CopyTamasFiles.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ FOR %%G IN (gdal_MrSID.dll gdal_netCDF.dll gdal_HDF5.dll gdal_HDF5Image.dll) DO
2525
)
2626

2727
REM Copy gdal plugins:
28-
FOR %%G IN (gdal_ECW_JP2ECW.dll) DO (
29-
IF EXIST %_from_dir%\gdal\plugins\%%G (
30-
xcopy /v /c /r /y %_from_dir%\gdal\plugins\%%G %_to_dir%gdalplugins\
28+
FOR %%G IN (gdal_ECW_JP2ECW.dll ogr_MSSQLSpatial.dll ogr_PG.dll) DO (
29+
IF EXIST %_from_dir%\gdal\plugins-optional\%%G (
30+
xcopy /v /c /r /y %_from_dir%\gdal\plugins-optional\%%G %_to_dir%gdalplugins\
3131
)
3232
)
3333

src/InnoSetup/MapWinGIS-only.iss

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "MapWinGIS"
5-
#define MyAppVersion "5.0.2.3"
5+
#define MyAppVersion "5.1.0"
66
#define MyAppPublisher "MapWindow Open Source GIS Community"
77
#define MyAppURL "http://www.mapwindow.org"
88
#define SetupLocation "D:\dev\MapWindow\MapWinGIS\git\src\InnoSetup"
99
#define BinLocation "D:\dev\MapWindow\MapWinGIS\git\src\bin"
1010
;; #define x64BitVersion
11+
;; #define VsVersion = "2015"
12+
#define VsVersion = "2017"
1113

1214
#ifdef x64BitVersion
1315
#define CPU "x64"
14-
#define vcredist "vcredist_x64_2017.exe"
16+
#define vcredist "vcredist_x64-" + VsVersion + ".exe"
1517
#define MySourceDir BinLocation + "\x64\"
1618
#define SystemFlag "64bit"
1719
#else
1820
#define CPU "Win32"
19-
#define vcredist "vcredist_x86-2017.exe"
21+
#define vcredist "vcredist_x86-" + VsVersion + ".exe"
2022
#define MySourceDir BinLocation + "\Win32\"
2123
#define SystemFlag "32bit"
2224
#endif
@@ -104,6 +106,9 @@ Source: "{#BinLocation}\Licenses\HDF5License.rtf"; DestDir: "{app}\Licenses\"; F
104106
;;Source: "{#MySourceDir}\gdalplugins\gdal_HDF4Image.dll"; DestDir: "{app}\gdalplugins\"; Flags: ignoreversion {#SystemFlag}; Components: HDF4
105107
;;Source: "{#BinLocation}\Licenses\HDF4License.rtf"; DestDir: "{app}\Licenses\"; Flags: ignoreversion; Components: HDF4
106108

109+
Source: "{#MySourceDir}\gdalplugins\ogr_MSSQLSpatial.dll"; DestDir: "{app}\gdalplugins\"; Flags: ignoreversion {#SystemFlag}; Components: MapWinGIS_Core
110+
Source: "{#MySourceDir}\gdalplugins\ogr_PG.dll"; DestDir: "{app}\gdalplugins\"; Flags: ignoreversion {#SystemFlag}; Components: MapWinGIS_Core
111+
107112
;; GDAL data
108113
Source: "{#MySourceDir}\gdal-data\*"; DestDir: "{app}\gdal-data"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: MapWinGIS_Core
109114
Source: "{#BinLocation}\PROJ_NAD\*"; DestDir: "{app}\PROJ_NAD"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: MapWinGIS_Core
@@ -129,7 +134,7 @@ Name: "HDF5"; Description: "Add Hierarchical Data Format Release 5 support"; Typ
129134
Name: "MapWinGIS_Delphi"; Description: "Delphi Unit Source file (MapWinGIS_TLB.pas). If you don't know what it is you probably won't need it."; Types: full custom
130135

131136
[Run]
132-
; Install VC++ 2015 if needed:
137+
; Install VC++ redistributables if needed:
133138
#ifdef x64BitVersion
134139
Filename: "{tmp}\{#vcredist}"; Parameters: "/quiet"; Flags: waituntilterminated; Check: VCRedistNeedsInstall_x64()
135140
#else
@@ -138,8 +143,8 @@ Filename: "{tmp}\{#vcredist}"; Parameters: "/quiet"; Flags: waituntilterminated;
138143
;Run some command files:
139144
Filename: "{app}\regMapWinGIS.cmd"; WorkingDir: "{app}"; Flags: runhidden
140145
Filename: "https://www.mapwindow.org/documentation/mapwingis4.9/getting_started.html?utm_source=MWv50&utm_medium=cpc&utm_campaign=MWGvInstaller-v{#MyAppVersion}"; Flags: shellexec runasoriginaluser postinstall nowait skipifsilent; Description: "Go to the online documentation"
141-
Filename: "https://www.mapwindow.org/documentation/mapwingis4.9/MapWindow49.html?utm_source=MWv50&utm_medium=cpc&utm_campaign=MWGInstaller-v{#MyAppVersion}"; Flags: shellexec runasoriginaluser postinstall nowait skipifsilent; Description: "Read about the future of MapWinGIS/MapWindow v5"
142146
Filename: "https://www.mapwindow.org/documentation/mapwingis4.9/version_history.html?utm_source=MWv50&utm_medium=cpc&utm_campaign=MWGInstaller-v{#MyAppVersion}"; Flags: shellexec runasoriginaluser postinstall nowait skipifsilent; Description: "Read about the changes in this version"
147+
Filename: "https://mapwindow.discourse.group/?utm_source=MWv50&utm_medium=cpc&utm_campaign=MWGInstaller-v{#MyAppVersion}"; Flags: shellexec runasoriginaluser postinstall nowait skipifsilent; Description: "The official MapWinGIS and MW5 forum"
143148

144149
[UninstallRun]
145150
Filename: "{app}\unregMapWinGIS.cmd"; WorkingDir: "{app}"; Flags: runhidden

src/InnoSetup/ReleaseNotes.rtf

16.7 KB
Binary file not shown.
14.4 MB
Binary file not shown.
13.7 MB
Binary file not shown.

src/MapWinGIS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static char THIS_FILE[] = __FILE__;
3131

3232
const GUID CDECL BASED_CODE _tlid = { 0xc368d713, 0xcc5f, 0x40ed, { 0x9f, 0x53, 0xf8, 0x4f, 0xe1, 0x97, 0xb9, 0x6a } };
3333
const WORD _wVerMajor = 5;
34-
const WORD _wVerMinor = 0;
34+
const WORD _wVerMinor = 1;
3535

3636
CMapWinGISApp NEAR theApp;
3737
CMapWinGISModule _AtlModule; // this one is from ATL7 (used by all ATL co-classes)

src/MapWinGIS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "GlobalClassFactory.h"
1212

1313
#define VERSION_MAJOR 5
14-
#define VERSION_MINOR 0
14+
#define VERSION_MINOR 1
1515

1616
extern const GUID CDECL _tlid;
1717
extern const WORD _wVerMajor;

src/MapWinGIS.idl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6679,7 +6679,7 @@ interface IGdalUtils : IDispatch{
66796679
}
66806680

66816681
[
6682-
uuid(C368D713-CC5F-40ED-9F53-F84FE197B96A), version(5.0),
6682+
uuid(C368D713-CC5F-40ED-9F53-F84FE197B96A), version(5.1),
66836683
helpfile("MapWinGIS.chm"),
66846684
helpstring("MapWinGIS Components"),
66856685
control
@@ -6701,7 +6701,7 @@ library MapWinGIS
67016701
// Primary dispatch interface for CMap
67026702

67036703
[ uuid(1D077739-E866-46A0-B256-8AECC04F2312),
6704-
helpstring("Dispatch interface for Map Control"),version(5.0), hidden
6704+
helpstring("Dispatch interface for Map Control"),version(5.1), hidden
67056705
]
67066706
dispinterface _DMap
67076707
{

0 commit comments

Comments
 (0)