Skip to content

Commit

Permalink
Fixed CanConvert method.
Browse files Browse the repository at this point in the history
  • Loading branch information
hakenmt committed Mar 5, 2021
1 parent 417a25d commit bf9f967
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GeoJSON/GeoJSON.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks>netstandard1.6;netstandard2.0;net45</TargetFrameworks>
<NetStandardImplicitPackageVersion>1.6</NetStandardImplicitPackageVersion>
<RootNamespace>BAMCIS.GeoJSON</RootNamespace>
<Version>2.3.0</Version>
<Version>2.3.1</Version>
<Authors>Michael Haken</Authors>
<Company>bamcis.io</Company>
<Description>A .NET Core library for serializing and deserializing GeoJSON formatted JSON data. Complies with RFC 7946.</Description>
Expand All @@ -16,7 +16,7 @@
<RepositoryUrl>https://github.com/bamcis-io/GeoJSON</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>GeoJSON RFC7946</PackageTags>
<PackageReleaseNotes>Added Well-Known Binary serialization and deserialization support for `Geometry` objects.</PackageReleaseNotes>
<PackageReleaseNotes>Fixed a bug in the Polygon serde.</PackageReleaseNotes>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>GeoJSON.snk</AssemblyOriginatorKeyFile>
<DelaySign>false</DelaySign>
Expand Down
2 changes: 1 addition & 1 deletion GeoJSON/Serde/PolygonConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class PolygonConverter : JsonConverter

public override bool CanConvert(Type objectType)
{
return objectType == typeof(MultiPolygon);
return objectType == typeof(Polygon);
}

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ Feature geo = JsonConvert.DeserializeObject<Feature>(content);

## Revision History

### 2.3.1
Fixed the Polygon serde CanConvert method.

### 2.3.0
Added Well-Known Binary serialization and deserialization support for `Geometry` objects.

Expand Down

0 comments on commit bf9f967

Please sign in to comment.