Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge release/4.2.0 branch to develop after merge to main #16

Merged
merged 5 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# IBI WZDx .NET Library
# WZDx .NET Library

This repository contains the source code for IBI Group's [.NET 6.0](https://docs.microsoft.com/en-us/dotnet/core/whats-new/dotnet-6) [WZDx (Work Zone Data Exchange)](https://github.com/usdot-jpo-ode/wzdx) class library, `IBI.WZDx`.

Expand All @@ -14,7 +14,7 @@ The library provides the following functionality:

### WZDx Version Support

WZDx versions 4.0, 4.1 & 4.2 are supported; the [WzdxSerializer](./src/IBI.WZDx/Serialization/WzdxSerializer.cs) defaults to outputting v4.2 (latest WZDx).
WZDx versions 4.0, 4.1, and 4.2 are supported; the [WzdxSerializer](./src/IBI.WZDx/Serialization/WzdxSerializer.cs) defaults to outputting v4.2 (latest WZDx).

[Detour road events](https://github.com/usdot-jpo-ode/wzdx/blob/main/spec-content/objects/DetourRoadEvent.md) are not supported. When provided with a Work Zone Feed that includes detour road events, the WzdxSerializer.DeserializeFeed method will deserialize the detour events into a [RoadEventFeature](./src/IBI.WZDx/Models/RoadEvents/RoadEventFeature.cs) with `Properties` as `null`.

Expand Down Expand Up @@ -75,4 +75,4 @@ This solution includes a [IBI.WZDx.UnitTests](/tests/IBI.WZDx.UnitTests/) Xunit

```
dotnet test
```
```
7 changes: 4 additions & 3 deletions tests/IBI.WZDx.UnitTests/WzdxSerializerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@
Description: "Single direction work zone with lane-level information.",
CreationDate: new DateTimeOffset(2023, 6, 17, 18, 0, 0, TimeSpan.Zero),
UpdateDate: new DateTimeOffset(2023, 6, 18, 14, 37, 31, TimeSpan.Zero),
Relationship: new Relationship(

Check warning on line 743 in tests/IBI.WZDx.UnitTests/WzdxSerializerTests.cs

View workflow job for this annotation

GitHub Actions / publish

'Relationship' is obsolete: 'Use RelatedRoadEvent instead.'
First: new string[] { "4fee99c9-e138-4a21-87ba-297ca22234ab" },
Next: new string[] { "6db3aa76-8851-4e09-af28-cc81d58cd848" },
Parents: new string[] { "Parent Project" },
Expand All @@ -753,8 +753,8 @@
LocationMethod: LocationMethod.ChannelDeviceMethod,
IsStartDateVerified: false,
IsEndDateVerified: false,
StartDateAccuracy: TimeVerification.Estimated,

Check warning on line 756 in tests/IBI.WZDx.UnitTests/WzdxSerializerTests.cs

View workflow job for this annotation

GitHub Actions / publish

'TimeVerification' is obsolete: 'Determine verification of start and end dates from verification properties instead.'
EndDateAccuracy: TimeVerification.Estimated,

Check warning on line 757 in tests/IBI.WZDx.UnitTests/WzdxSerializerTests.cs

View workflow job for this annotation

GitHub Actions / publish

'TimeVerification' is obsolete: 'Determine verification of start and end dates from verification properties instead.'
IsStartPositionVerified: true,
IsEndPositionVerified: true,
BeginningAccuracy: SpatialVerification.Estimated,
Expand Down Expand Up @@ -784,7 +784,7 @@
EndingCrossStreet: "First Street",
BeginningMilepost: 125.2,
EndingMilepost: 126.3,
EventStatus: EventStatus.Active,

Check warning on line 787 in tests/IBI.WZDx.UnitTests/WzdxSerializerTests.cs

View workflow job for this annotation

GitHub Actions / publish

'EventStatus' is obsolete: 'Determine an event's status based on the start and end dates and verification properties.'
TypesOfWork: new TypeOfWork[]
{
new TypeOfWork(WorkTypeName.Maintenance),
Expand All @@ -810,15 +810,16 @@
ImpactedCdsCurbZones: new CdsCurbZonesReference[]
{
new CdsCurbZonesReference(
CdsCurbZoneIds: new string[] {"Zone Id 1", "Zone Id 2"},
CdsCurbZoneIds: new string[] { "Zone Id 1", "Zone Id 2" },
CdsCurbsApiUrl: "API Url"
)
},
WorkZoneType: WorkZoneType.Static
),
Geometry: new RoadEventFeatureGeometry(
Type: RoadEventFeatureGeometryType.LineString,
Coordinates: new double[][] {
Coordinates: new double[][]
{
new double[]
{
-93.77668405099996,
Expand Down Expand Up @@ -1908,4 +1909,4 @@

Assert.Throws<JsonException>(action);
}
}
}
Loading