sebastien,
We recreated your issue, and please add some validations before inserting into the oracle. There are the steps:
1. Reference the GeoAPI.dll and NetTopologySuite.dll
2. Using namespaces GisSharpBlog.NetTopologySuite.Geometries and GisSharpBlog.NetTopologySuite.IO
3. Add the validate functions as below:
private bool IsValidByJts(BaseShape baseShape)
{
byte[] targetShapeByte = baseShape.GetWellKnownBinary();
Geometry thisGeometry = (Geometry)new WKBReader().Read(targetShapeByte);
return thisGeometry.IsValid;
}
4. Use the validation like below:
Feature feature = new Feature("MULTIPOLYGON(((0 0,0 2,1 -1,1 1,0 0)))");
//We can validate the feature before insert it to oracle table
bool isValid = IsValidByJts(feature.GetShape());
Thanks,
Johnny.