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

any idea about type mapping of box2/3d? #10

Open
sharkAndshark opened this issue Mar 2, 2021 · 1 comment
Open

any idea about type mapping of box2/3d? #10

sharkAndshark opened this issue Mar 2, 2021 · 1 comment

Comments

@sharkAndshark
Copy link
Contributor

Am wondering following way dealing with Input/output about box2/3d is too dirty and evil?

[Sql.Expression("ST_Box2dFromGeoHash({0},{1})::geometry",ServerSideOnly = true)]
public static NTSG STBox2dFromGeoHash(string geohash, int precision)
{
    throw new InvalidOperationException();
}
@apdevelop
Copy link
Owner

Will investigate it in future; now I want to complete implementation for most methods with geometry type first of all. Your suggestion can be a last resort, if there will be no way to work with box2d PostGIS type in underlying NTS type system.
There is similar discussion for EFCore: Provide mapping for Envelope

@apdevelop apdevelop moved this from To do to To do (less priority) in Features to implement and other TODOs Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Features to implement and other TODOs
To do (need some research)
Development

No branches or pull requests

2 participants