Skip to content

Commit de5a7f8

Browse files
authored
Doc: Update ogrinfo.rst with tip how to workaround need for input file (OSGeo#10300)
Fixes OSGeo#10296
1 parent abc5f9e commit de5a7f8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/source/programs/ogrinfo.rst

+6
Original file line numberDiff line numberDiff line change
@@ -529,4 +529,10 @@ Adding a column to an input file:
529529
530530
ogrinfo input.shp -sql "ALTER TABLE input ADD fieldX float"
531531
532+
Sometimes there is no input file involved in a calculation. In such cases one may
533+
use the ``:memory:`` input file which is a in-memory empty SQLite file (and the SQLite SQL dialect will be implicitly used).
534+
535+
.. code-block:: bash
536+
537+
ogrinfo :memory: -sql "SELECT ST_Buffer(ST_GeomFromText('POINT(0 0)'), 1)"
532538

0 commit comments

Comments
 (0)