linq2db-postgis-extensions icon indicating copy to clipboard operation
linq2db-postgis-extensions copied to clipboard

any idea about type mapping of box2/3d?

Open sharkAndshark opened this issue 4 years ago • 1 comments
trafficstars

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();
}

sharkAndshark avatar Mar 02 '21 03:03 sharkAndshark

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 avatar Mar 02 '21 05:03 apdevelop