{"id":18999806,"url":"https://github.com/geojson-net/geojson.net.contrib","last_synced_at":"2025-10-24T23:31:40.664Z","repository":{"id":28762303,"uuid":"32284519","full_name":"GeoJSON-Net/GeoJSON.Net.Contrib","owner":"GeoJSON-Net","description":"Repository for all GeoJSON.Net *.Contrib projects","archived":false,"fork":false,"pushed_at":"2020-07-07T05:29:09.000Z","size":2209,"stargazers_count":36,"open_issues_count":0,"forks_count":22,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-10-29T22:37:50.424Z","etag":null,"topics":["conversion","geojson","spatial","sql-server"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GeoJSON-Net.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-15T21:16:18.000Z","updated_at":"2023-08-17T06:54:05.000Z","dependencies_parsed_at":"2022-09-04T21:00:22.907Z","dependency_job_id":null,"html_url":"https://github.com/GeoJSON-Net/GeoJSON.Net.Contrib","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoJSON-Net%2FGeoJSON.Net.Contrib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoJSON-Net%2FGeoJSON.Net.Contrib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoJSON-Net%2FGeoJSON.Net.Contrib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoJSON-Net%2FGeoJSON.Net.Contrib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeoJSON-Net","download_url":"https://codeload.github.com/GeoJSON-Net/GeoJSON.Net.Contrib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238044093,"owners_count":19407128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conversion","geojson","spatial","sql-server"],"created_at":"2024-11-08T18:05:08.670Z","updated_at":"2025-10-24T23:31:35.345Z","avatar_url":"https://github.com/GeoJSON-Net.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NuGet Version](http://img.shields.io/nuget/v/GeoJSON.NET.Contrib.MsSqlSpatial.svg?style=flat\u0026label=nuget%20MsSqlSpatial)](https://www.nuget.org/packages/GeoJSON.NET.Contrib.MsSqlSpatial/)\n[![NuGet Version](http://img.shields.io/nuget/v/GeoJSON.NET.Contrib.Wkb.svg?style=flat\u0026label=nuget%20Wkb)](https://www.nuget.org/packages/GeoJSON.NET.Contrib.Wkb/) \n[![NuGet Version](http://img.shields.io/nuget/v/GeoJSON.NET.Contrib.EntityFramework.svg?style=flat\u0026label=nuget%20EntityFramework)](https://www.nuget.org/packages/GeoJSON.NET.Contrib.EntityFramework/) \n[![Build status](https://ci.appveyor.com/api/projects/status/8i73123t14xro67k?svg=true)](https://ci.appveyor.com/project/GeojsonNet/geojson-net-contrib)\n\n# GeoJSON.Net.Contrib \nRepository for all GeoJSON.Net *.Contrib projects\n\n## GeoJSON.Net.Contrib.MsSqlSpatial\nAllows conversion from / to Microsoft Sql Server geometry and geography data types.\n\n[NuGet package](https://www.nuget.org/packages/GeoJSON.Net.Contrib.MsSqlSpatial):\n`Install-Package GeoJSON.Net.Contrib.MsSqlSpatial`\n\n### Conversion examples:\n\n```csharp\nusing GeoJSON.Net.Geometry;\nusing Microsoft.SqlServer.Types;\nusing GeoJSON.Net.Contrib.MsSqlSpatial;\n\n// SqlGeometry sample point\nSqlGeometry simplePoint = SqlGeometry.Point(1, 47, 4326);\n\n// SqlGeometry -\u003e GeoJSON example\nPoint point = simplePoint.ToGeoJSONObject\u003cPoint\u003e();\n\n// GeoJSON -\u003e SqlGeometry example\nSqlGeometry sqlPoint = point.ToSqlGeometry(4326);\n```\n\n### WKT conversion examples:\n\n```csharp\nusing GeoJSON.Net.Contrib.MsSqlSpatial;\nusing GeoJSON.Net.Geometry;\n\n// LineString from WKT\nLineString lineString = WktConvert.GeoJSONObject\u003cLineString\u003e(\"LINESTRING(1 47,1 46,0 46,0 47,1 47)\");\n\n// LineString IGeometryObject from WKT\nIGeometryObject lineStringGeom = WktConvert.GeoJSONGeometry(\"LINESTRING(1 47,1 46,0 46,0 47,1 47)\");\n```\n\n\n## GeoJSON.Net.Contrib.EntityFramework\nAllows conversion from / to EntityFramework geometry and geography data types.\n\n[NuGet package](https://www.nuget.org/packages/GeoJSON.Net.Contrib.EntityFramework):\n`Install-Package GeoJSON.Net.Contrib.EntityFramework`\n\n### Conversion examples:\n\n```csharp\nusing GeoJSON.Net.Geometry;\nusing GeoJSON.Net.Contrib.EntityFramework;\n\n// DbGeography sample point\nvar dbGeographyPoint = DbGeography.FromText(\"POINT(30 10)\", 4326);\n\n// DbGeography -\u003e GeoJSON example\nPoint point = dbGeographyPoint.ToGeoJSONObject\u003cPoint\u003e();\n\n// GeoJSON -\u003e DbGeography example\nDbGeography dbGeographyPoint = point.ToDbGeography();\n```\n\n\n## GeoJSON.Net.Contrib.Wkb\nAllows conversion from / to Wkb binary types. Only X,Y,Z coordinates are supported, attempting to convert a geometry with M coordinates will throw an `Exception`.\n\n[NuGet package](https://www.nuget.org/packages/GeoJSON.Net.Contrib.Wkb):\n`Install-Package GeoJSON.Net.Contrib.Wkb`\n\n### Conversion examples:\n\n```csharp\nusing GeoJSON.Net.Geometry;\nusing GeoJSON.Net.Contrib.Wkb;\n\n// GeoJson sample point\nPoint point = new Point(new Position(53.2455662, 90.65464646));\n\n// GeoJson -\u003e Wkb example\nbyte[] wkbPoint = point.ToWkb();\n\n// Wkb -\u003e GeoJson example\nPoint pointFromWkb = wkbPoint.ToGeoJSONObject\u003cPoint\u003e();\n```\n\n\n# Contribution Guide\n\n## Development Environment\n\n- [Git](https://git-scm.com/downloads) client 2.0+\n- [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core) 3.0+\n- (Optional) Development IDE, common choices are:\n    - [Visual Studio Code](https://code.visualstudio.com/) with [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp)\n    - [Visual Studio 2019](https://visualstudio.microsoft.com/vs/)\n    - [JetBrains Rider](https://www.jetbrains.com/rider/)\n\n## Build, test and package the solution\n\nUse shell of your choice (`cmd.exe`, `powershell.exe`, `pwsh`, `bash`, etc) to run the following commands:\n\n```sh\n# verify .NET SDK\ndotnet --info\n# =\u003e .NET Core SDK (reflecting any global.json):\n# =\u003e Version: 3.1.301\n# =\u003e ...\n\n# download repository\ncd \u003cdevelopment-directory-root\u003e\ngit clone https://github.com/GeoJSON-Net/GeoJSON.Net.Contrib.git\ncd GeoJSON.Net.Contrib\n\n# build (\"Debug\" configuration)\ndotnet build src/GeoJSON.Net.Contrib.sln\n\n# test (\"Debug\" configuration)\ndotnet test src/GeoJSON.Net.Contrib.sln\n\n# package (\"Release\" configuration)\ngit clean -dfx\ndotnet pack --configuration Release src/GeoJSON.Net.Contrib.sln\n\n# push all projects to NuGet server (requires \"package\" step above to be run first)\n# note: in addition to \".nupkg\", the command below will automatically\n# detect \".snupkg\" symbol package and push both \".nupkg\" and \".snupkg\"\n# to the specified NuGet server; for more information see\n# https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg\ndotnet nuget push **/*.nupkg --api-key SECRET --source https://api.nuget.org/v3/index.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeojson-net%2Fgeojson.net.contrib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeojson-net%2Fgeojson.net.contrib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeojson-net%2Fgeojson.net.contrib/lists"}