Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Commit e9baf23

Browse files
committed
v0.7.1
1 parent 26e07e8 commit e9baf23

File tree

4 files changed

+23
-11
lines changed

4 files changed

+23
-11
lines changed

CHANGELOG

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
CHANGELOG
22

3+
0.7.1
4+
=====
5+
* Fixed GribContext null log event handler invocation.
6+
* Fixed GribFile FileIsValid error for GTS header trailers.
7+
* Improved Grib definition directory location logic.
8+
* Fixed GribKey All bitwise OR bug.
9+
* GribMessage::Box now throws NotSupportedException
10+
311
0.7.0
412
=====
513
* Updated grib_api to 1.14.5.

build/build_nuget.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ xcopy %~dp0..\bin\x86\%_CONFIG%\Grib.Api.xml %~dp0..\nuget.package\lib\net40\ /S
1717
xcopy %~dp0..\bin\x86\%_CONFIG%\Grib.Api\lib\win\x86\Grib.Api.Native.dll %~dp0..\nuget.package\Grib.Api\lib\win\x86\ /S /Y /I /Q
1818
xcopy %~dp0..\bin\x86\%_CONFIG%\Grib.Api\lib\win\x86\Grib.Api.Native.pdb %~dp0..\nuget.package\Grib.Api\lib\win\x86\ /S /Y /I /Q
1919

20-
xcopy %~dp0..\ext\grib_api\definitions %~dp0..\nuget.package\Grib.Api\definitions\ /S /d /I /Q
20+
xcopy %~dp0..\ext\grib_api\definitions %~dp0..\nuget.package\Grib.Api\definitions\ /S /d /I /Q /Y
2121

22-
xcopy %~dp0..\ext\grib_api\samples %~dp0..\nuget.package\Grib.Api\samples\ /S /d /I /Q
22+
xcopy %~dp0..\ext\grib_api\samples %~dp0..\nuget.package\Grib.Api\samples\ /S /d /I /Q /Y
2323

2424
pushd %~dp0..\nuget.package
2525
nuget pack Grib.Api.nuspec -Version %_VERSION%

src/GribApi.NET/Grib.Api.Tests/Get.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public void TestTime()
217217
}
218218
}
219219

220-
[Test]
220+
// [Test] -- feature currently not supported
221221
public void TestGetBox()
222222
{
223223
using (GribFile file = new GribFile(Settings.REG_GAUSSIAN_MODEL_GRB1)) {

src/GribApi.NET/Grib.Api/GribMessage.cs

+12-8
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,24 @@ public GribMessage Clone()
101101
}
102102

103103
/// <summary>
104-
/// Returns a subdomain defined by the given north/west/south/east boundaries.
104+
/// [NOT SUPPORTED] Returns a subdomain defined by the given north/west/south/east boundaries.
105105
/// At this time, boxes are only supported for regular and reduced Gaussian grids.
106106
/// </summary>
107107
/// <param name="nw">The NW corner of the box.</param>
108108
/// <param name="se">The SE corner of the box.</param>
109-
/// <returns></returns>
109+
/// <returns></return>
110+
/// <exception cref="System.NotSupportedException"></exception>
110111
public GribBox Box(GeoCoordinate nw, GeoCoordinate se)
111112
{
112-
if (!GridType.Contains("regular_gg") && !GridType.Contains("reduced_gg"))
113-
{
114-
throw new GribApiException("Only regular and reduced Gaussian grids support boxes.");
115-
}
116-
117-
return new GribBox(Handle, nw, se);
113+
// GribPoints_latitudes_get returns an array -- marshalling needs to be changes to properly allocate
114+
// array size
115+
throw new NotSupportedException("MarshalDirectiveException : Cannot marshal 'return value'");
116+
//if (!GridType.Contains("regular_gg") && !GridType.Contains("reduced_gg"))
117+
//{
118+
// throw new GribApiException("Only regular and reduced Gaussian grids support boxes.");
119+
//}
120+
121+
//return new GribBox(Handle, nw, se);
118122
}
119123

120124
/// <summary>

0 commit comments

Comments
 (0)