ogrinfo ":memory:" -dialect sqlite -sql "SELECT ST_GeomFromText('Point(1 2)')" gives me a dataset with a geometry column:
INFO: Open of `:memory:' using driver `SQLite' successful. Layer name: SELECT Geometry: Unknown (any) Feature Count: 1 Extent: (1.000000, 2.000000) - (1.000000, 2.000000) Layer SRS WKT: (unknown) Geometry Column = ST_GeomFromText('Point(1 2)') OGRFeature(SELECT):0 POINT (1 2) but this does not work with some curve geometries, e. g. CIRCULARSTRING.
ogrinfo ":memory:" -dialect sqlite -sql "SELECT ST_GeomFromText('CIRCULARSTRING(1 5, 6 2, 7 3)')"
for example results in:
INFO: Open of `:memory:' using driver `SQLite' successful. Layer name: SELECT Geometry: None Feature Count: 1 Layer SRS WKT: (unknown) ST_GeomFromText('CIRCULARSTRING(1 5, 6 2, 7 3)'): String (0.0) OGRFeature(SELECT):0 ST_GeomFromText('CIRCULARSTRING(1 5, 6 2, 7 3)') (String) = (null) How can I work with such geometries when using the sqlite dialect? I would be fine with turning them into linear geometries in the query. Using -nlt CONVERT_TO_LINEAR is not a solution for me. The actual problem I am trying to solve is in third-party software that uses the same logic and there we can only edit the query (QGIS layer filters).
References: