Awesome, that's what I was looking for :-)
Thanks !!!
Olivier
On Wed, 27 Nov 2019 at 20:28, Even Rouault
wrote:
> Olivier,
>
> > Is there a flag or something to achieve same behaviour as command line ?
> I
> > looked carefully in the python api doc, but couldn't find it...
>
> Not exacly a fla
Olivier,
> Is there a flag or something to achieve same behaviour as command line ? I
> looked carefully in the python api doc, but couldn't find it...
Not exacly a flag, but:
destDS = gdal.Open("dest.tif", gdal.GA_Update)
gdal.Warp(destDS, "source.tif", cutlineDSName="cutline.shp")
Cheers,
Ev
Dear list,
When I use gdalwarp from command line and set output to an existing file,
the contents get mosaic-ed in the existing file (as expected and
documented).
$> gdalwarp -cutline cutline.shp source.tif dest.tif
But when doing the from python, the existing destination file get
overwritten.
my reading of the docs suggests this will only work for point
geometries. However, there is a more general GEOMETRY=AS_WKT that should
work for other geometries.
On 11/27/2019 7:00 AM, Jeff McKenna wrote:
> Another option is to convert from KML to CSV, which can be opened by
> LibreOffice/Word etc
Another option is to convert from KML to CSV, which can be opened by
LibreOffice/Word etc. using the "GEOMETRY=AS_XY" switch, which generates
your X and Y columns magically:
ogr2ogr -f CSV -lco GEOMETRY=AS_XY output.csv input.kml
-jeff
--
Jeff McKenna
MapServer Consulting and Training Se
Hi,
The documentation is probably mostly copied from the read-only XLS driver
documentation https://gdal.org/drivers/vector/xls.html and the VRT
capabilities refer to the possibility to build geometries from X and Y
fields, or from a field that contains Well Known Text as documented in
https://gda
Hello GDAL team,
We are trying to use ogr2ogr util for conversion of .kml to .xlsx. But
the converted .xlsx file is missing geometry column. In documentation it says
of using ogr vrt capabilities for this purpose but its not clear on procedure
need to be followed. Can someone please