Re: [gdal-dev] Connecting to MSSQL from linux using OGR?

2019-07-01 Thread Brad Hards
Does your ogr actually support MSSQL driver? What does ogrinfo --formats show? Brad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Connecting to MSSQL from linux using OGR?

2019-07-01 Thread Tom Wardrop
Hey Brad, Yeah it lists "MSSQLSpatial -vector- (rw+): Microsoft SQL Server Spatial Database" in the output. Tom Mareeba Shire Council Disclaimer This message and any attachments may contain privileged and confidential information intended only for the use of

[gdal-dev] Connecting to MSSQL from linux using OGR?

2019-07-01 Thread Wardrop
Hi All, I'm trying to connect a MSSQL database using ogrinfo and ogr2ogr, but am not having any success. Most of the examples I see online assume you're connecting from a Windows. I'm trying to connect from OpenSUSE. Here's what I've been trying: ogrinfo "MSSQL:server=sql12.msc.local\MSSQLSERVER;

Re: [gdal-dev] Extracting Z coordinate from DEM - Python

2019-07-01 Thread Ivan Lucena
César, The error message you posted indicated that the function float() received a NoneType argument and you have a call to ReadAsArray inside float(), so I guess that ReadAsArray has failed without an exception. Maybe you tried to read from an area outside the image. You might want to call gd

Re: [gdal-dev] UnionCascaded operation failed

2019-07-01 Thread Casper Børgesen
Hi Ahmet I haven’t visited C++ and ogr for quite some time, but I think you should define and initialize polyCollect like this: OGRMultiPolygon *polyCollect = new OGRMultiPolygon(); This type should implement the UnionCascaded() method. Maybe other users on the list can chime in? /Casper Fro

[gdal-dev] Extracting Z coordinate from DEM - Python

2019-07-01 Thread Cesar Francisco de Paula
Hi!!! Im writing an algorithm in Python to extract Z coordinate of an DEM for a pair of X,Y coordinates. Im using GDAL. The algorithm works correctly by extracting the Z coordinate from the DEM. Z = 1872 limiar = 0.1 COORD_X = [] COORD_Y = [] for i in range(size): print() print() print()