Skip to content

Commit

Permalink
Doc: Update ogrinfo.rst with tip how to workaround need for input file (
Browse files Browse the repository at this point in the history
  • Loading branch information
jidanni authored Jun 25, 2024
1 parent abc5f9e commit de5a7f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/source/programs/ogrinfo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -529,4 +529,10 @@ Adding a column to an input file:
ogrinfo input.shp -sql "ALTER TABLE input ADD fieldX float"
Sometimes there is no input file involved in a calculation. In such cases one may
use the ``:memory:`` input file which is a in-memory empty SQLite file (and the SQLite SQL dialect will be implicitly used).
.. code-block:: bash
ogrinfo :memory: -sql "SELECT ST_Buffer(ST_GeomFromText('POINT(0 0)'), 1)"

0 comments on commit de5a7f8

Please sign in to comment.