This works (A),
$ ogrinfo -dialect SQLITE -sql
"SELECT ST_Buffer(ST_GeomFromText('POLYGON ((120.81313 24.18337 ...
Layer name: SELECT
OGRFeature(SELECT):0
POLYGON ((120.702569638856 24.2111342483025,120.696422835853 ...
And this also works too (B),
$ ogr2ogr zxl.0.lines.csv zxl.0.Q.csv -sql 'SELECT Name FROM "zxl.0.Q"'
--optfile zxl.gcp -lco GEOMETRY=AS_WKT -clipdst 'POLYGON ((120.8...
As last resort, using cut and paste, or Perl scripts, I can take the
ogrinfo
output of (A), trim everything except the POLYGON, and paste
it into B.
But how can I instead combine (A) and (B) using e.g., -clipdstsql
?