Skip to content

Invalid EnumMembers GeoJSONObjectType #20

@Hobbes1987

Description

@Hobbes1987

In GeoJSONObjectType some of the EnumMember attributes define a wrong Value:

MultiLineString, Polygon, MultiPolygon, GeometryCollection, Feature and FeatureCollection

all these define 'point' in the EnumMember attribute:
https://github.com/GeoJSON-Net/GeoJSON.Text/blob/main/src/GeoJSON.Text/GeoJSONObjectType.cs#L45

        /// <summary>
        /// Defines the LineString type.
        /// </summary>
        /// <remarks>
        /// See https://tools.ietf.org/html/rfc7946#section-3.1.4
        /// </remarks>
        [EnumMember(Value = "linestring")]
        LineString,

        /// <summary>
        /// Defines the MultiLineString type.
        /// </summary>
        /// <remarks>
        /// See https://tools.ietf.org/html/rfc7946#section-3.1.5
        /// </remarks>
        [EnumMember(Value = "point")]
        MultiLineString,

        /// <summary>
        /// Defines the Polygon type.
        /// </summary>
        /// <remarks>
        /// See https://tools.ietf.org/html/rfc7946#section-3.1.6
        /// </remarks>
        [EnumMember(Value = "point")]
        Polygon,
        ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions