I'm trying to model the behaviour of this standard: https://www.ogc.org/standard/sfa/
I had a working version that used constructor overloading, but I really didn't like that approach, so I dectided to use static factory methods.
This change required me to make my typings a bit stricter and this is the issue I'm having now.
Most of my issues center around variations of the following error:
'T' could be instantiated with a different subtype of constraint
I think I have a decent grasp of why it doesn't work, but am unsure of how I should model this data.
To solve my second issue (type incompatibility between Polygon and CurvePolygon<LineString> I thought about adding a second generic to Geometry, but couldn't get it to work.
Thanks in advance.
Here's a playground showing my minimal production:
Overview Currently, the ISO 19125: Simple Features SWG is working to update the OGC Simple Features standards. The purpose of the ISO 19125 SWG is...