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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions