Re: [gdal-dev] Query regarding using gdalwarp with cutlineSQL

2020-07-31 Thread Luke
You need single quotes around your string literal: cutlineWhere="name = 'first'" -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal

Re: [gdal-dev] Specify data type on opening a netcdf

2020-07-31 Thread Andrew C Aitchison
On Fri, 31 Jul 2020, Federico Gianoli wrote: Thanks Even, If I look at the metadata of my netcdf, the values of "offset" and "scale factor" are in float64 instead of float32. So the correct values to read should be -0.08 as offset and 0.004 as scale factor. If I open the netcdf in SNAP, for exa

Re: [gdal-dev] Specify data type on opening a netcdf

2020-07-31 Thread Federico Gianoli
Thanks Even, If I look at the metadata of my netcdf, the values of "offset" and "scale factor" are in float64 instead of float32. So the correct values to read should be -0.08 as offset and 0.004 as scale factor. If I open the netcdf in SNAP, for example, I am able to correctly see this informatio

Re: [gdal-dev] Specify data type on opening a netcdf

2020-07-31 Thread Even Rouault
On vendredi 31 juillet 2020 15:04:45 CEST Federico Gianoli wrote: > Dear all, > I have an issue opening a netcdf with gdal. I should declare the data type > of my raster in gdal.Open(). > > The Netcdf data type is declared in the metadata as "Float", but GDAL reads > this information as Float64 an

[gdal-dev] Specify data type on opening a netcdf

2020-07-31 Thread Federico Gianoli
Dear all, I have an issue opening a netcdf with gdal. I should declare the data type of my raster in gdal.Open(). The Netcdf data type is declared in the metadata as "Float", but GDAL reads this information as Float64 and not as Float32. This reading error misinterprets my decimal values causing r

[gdal-dev] How can I use RawCodeValues in DXF driver?

2020-07-31 Thread jlaegel
Hello, I create a new DXF file, and want to use the RawCodeValues field. but I can't get it in the output DXF. Procedure: - MS-SQL-Server - GDAL version 3.0.0 -a table on the SQL-Server with fields: layer AS nvarchar(max), RawCodeValues AS nvarchar(max), ogr_style AS nvarchar(max), b