Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more spatial examples #1471

Closed
ajcvickers opened this issue May 14, 2019 · 3 comments
Closed

Add more spatial examples #1471

ajcvickers opened this issue May 14, 2019 · 3 comments

Comments

@ajcvickers
Copy link
Contributor

Originally filed as dotnet/efcore#1100 (comment) by @zp987


Cant find much documentation on how to use NetTopologySuite with Entity Core. Looking for stuff like
Inserting a Poligon suing Entity Core Classes and NetTopologySuite, Inserting a Location Point using Enity Core with NetTopologySuite datatypes/property.

Links to any documentation on CRUD operations using Enitity Core/NetTopologySuite will be great.

Was looking for examples of CRUD operations to geography type columns .

Inserting a new row using (entity core/nettopologysuite) in DB with a Geography column type that will store a Polygon ? or Even inserting a new row in the DB with column (geography) storing location pount?

Have also checked http://www.npgsql.org/efcore/mapping/nts.html not much info there either.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Copy link

Ditto. I am converting .NET Framework v4.8/EF code with a DbGeography data type to .NET Core/EF Core 2.2, and am getting a "cannot bind 'spatialServices', 'spatialProviderValue' in DbGeography(DbSpatialServices, object spatialProviderValue)" exception when I am trying to use this POCO. Cannot find good examples that use the DbGeography type as a column in the new Core.

@ajcvickers
Copy link
Contributor Author

@Kurtbaby DbGeography and DbGeometry are specific to EF6. They cannot be used with EF Core. The NTS types are essentially replacements for these types.

@ajcvickers ajcvickers changed the title Cant find much documentation on how to use NetTopologySuite with Entity Core. Add more spatial examples Sep 2, 2019
@ajcvickers ajcvickers added this to the Backlog milestone Sep 2, 2019
@ajcvickers
Copy link
Contributor Author

Duplicate of #1118

@ajcvickers ajcvickers marked this as a duplicate of #1118 Sep 7, 2019
@ajcvickers ajcvickers removed this from the Backlog milestone Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants