We may be moving to Postgis. Postgis supports EWKT. An example is a curved line:
CIRCULARSTRING(4 0, 4 4, 8 4)
The supported datatypes are in this overview.
How can I insert this arc into a Postgis database? I work with Spring JPA, JTS (locationtech) and Postgis.
Just create a simple method:
Call the method with a SQL statement with an arc. Try-1: use curveToLine:
Or: try-2: without curveToLine:
With a similar call:
Or with ST_GeomFromEWKT (try-3 and try-4):
The arc is visible e.g. via QGIS:
The result is a LineString which consists of many small lines.
Another route is to create a dynamically created sql-statement with WkbWriter for the geometry column.