[gdal-dev] OGR SQL CAST geometry example

Dan Jacobson jidanni at jidanni.org
Thu May 30 15:32:27 PDT 2024


Hi. I will add an example to
https://gdal.org/user/ogr_sql_dialect.html#changing-the-type-of-the-fields
showing users how to e.g., CAST LINESTRING Z to POINTS Z, e.g.,
to extract the points from:
$ ogrinfo 0.lines.kml -q -sql 'SELECT "_ogr_geometry_" FROM "0"'
Layer name: 0
OGRFeature(0):1
  LINESTRING Z (-100.790056666679 36.3802233333333 1000,-100...
Alas, there are no examples I can find of how to write it.



More information about the gdal-dev mailing list