Skip to content

GeoJson.Text compatibility with *.Contrib converters #16

Open

Description

@TheAtomicOption

Currently the nugets in https://github.com/GeoJSON-Net/GeoJSON.Net.Contrib for converting to/from GeoJSON objects only work with GeoJSON.NET. This effectively locks anyone who needs them into the old Newtonsoft.Json libraries.

The most straight forward solution I can see for this is to fork GeoJSON.Net.Contrib to a new GeoJSON.Text.Contrib repo, and modify the using statements to GeoJSON.Text, and create new nugets to match.

Activity

  1. TheAtomicOption commented on May 5, 2022

    @TheAtomicOption
    Author

    Update I've forked the repo myself and renamed everything here: https://github.com/TheAtomicOption/GeoJSON.Text.Contrib

    the Wkb compiles and tests correctly.

    The MsSqlServer compiles but fails all tests as the testing project can't find the native DLLs

    The EntityFramework project compiles, but fail some tests due to not counting coordinates correctly and null not matching NaN for the unused Z dimension.

    Since EF Core now uses NetTopologySuite since v2.2 I converted the extension methods in that project to be to/from NTS types.


    Feel free to Fork this fork back into a new repo under the GeoJSON-Net user, and create nugets as appropriate

  2. TheAtomicOption commented on May 5, 2022

    @TheAtomicOption
    Author

    Fixed EF tests

  3. TheAtomicOption commented on May 5, 2022

    @TheAtomicOption
    Author

    Added explicit reference to System.Data.SqlClient which fixes missing dependency for MsSqlSpatial tests.
    Fixed Misc tests by making them use System.Text.Json instead of Newtonsoft.

    All tests now pass when run with the last build. However the VS button to run tests fails during build due to treating the Nuget warnings as errors. This might be related to this long unresolved bug: NuGet/Home#5375

  4. TheAtomicOption commented on May 5, 2022

    @TheAtomicOption
    Author

    Added suppression of the NU1701 warning at the package dependency declaration level. VS test buttons now build and run all tests successfully.

    I'm going to consider this a complete successful conversion until someone brings up additional issues.

  5. TheAtomicOption commented on May 31, 2022

    @TheAtomicOption
    Author

    Built a basic WKT converter that's independent of SqlServer DLLs into the Wkb assembly.

  6. matt-lethargic commented on Jun 1, 2022

    @matt-lethargic
    Member

    Nice one 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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