Skip to content

EntityFrameworkCore IndexOutOfRangeException when saving geometry using NetTopologySuite #18813

@capesean

Description

@capesean

When I call db.SaveChanges(), on some geometries I get IndexOutOfRangeException.

(Just posted this on S-O)

Steps to reproduce

Code snippet here:
https://gist.github.com/capesean/57527a0576d5972ff1514438440397fa

It works fine in SQL Server though:

insert into regions values (newid(), 'POLYGON ((30.613919943000042 -30.391359940999962, ......))')

Further technical details

EF Core version: 3.0.0
Database provider: SQL Server 2014
Target framework: .NET Core 3.0
Operating system: Win10
IDE: e.g. Visual Studio 2019 16.3.6

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions