Closed jcachat closed 2 years ago
Can you submit a minimal code sample, with database schema and the relevant .NET code? I assume from writer.Write that you're using the COPY API (so nothing to do with EF Core)?
Closing as no additional details have been provided.
I have just upgraded from .Net/EF 3.1 to 5.0.8. Everything seems to be working great except that my bulk inserts of geometry columns all fail with an exception saying "Geometry has Z dimension but column does not" even though my geometries are all 2d.
I found that I can make it succeed by using .ToBinary() like this.
where previously, that was not necessary:
Is there something broken here or is that now how it must be done? I searched all over and could not find any information about a breaking change with this or with 2d vs 3d handling.
My .UseNetTopologySuite() is just the default (no options) but also tried forcing XY like this: