-
Notifications
You must be signed in to change notification settings - Fork 12
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
Empty Polygon #14
Comments
Eww -- there's no specific repro here to confirm, but I think it's probably this line that's throwing the underlying exception because there's no "is it empty?" check. As a workaround, I would recommend using an empty instance of some other geometry type, such as an empty MultiPolygon. |
Can't use a MULTIPOLYGON because the type on the model is Polygon but I can issue a manual INSERT with the desired SQL since I know all the other field values. Eager to see this fixed |
We seem to be seeing the same thing via EF Core in dotnet/efcore#24621. Note the possible similarity with NetTopologySuite/NetTopologySuite.IO.PostGis#14 (same bug?). |
If it is, then the issue should be resolved with NTS v2.3 because the |
... for geography data type to prevent ArgumentException when ring orientation can't be computed. * Add unit test refers to #14
@FObermaier Would it be possible to get a 2.0.1 version with this fix? |
@FObermaier ping:-) |
Fixed with d859a1c New package is out, too. |
I am having issues writing an Empty Polygon:
Is there an easy way around this?
I can read them just fine but can't insert what I read if I needed to...
I have manually inserted an Empty Polygon using SQL and have resorted to copying it with SQL when after I insert with NULL in that column I would otherwise have the Empty Polygon, I could also use a Trigger but that is even nastier.
See also
#9
#4
The text was updated successfully, but these errors were encountered: