[gdal-dev] MSSQLSpatial Driver fails to bulk insert (n)varchar columns

2017-06-16 Thread Russ Sivak
We are trying to use ogr2ogr to load shapefiles into SQL Server. It works when we are not using bulk copy, but once we use a windows build with bulk copy, it's super fast, but inserts garbage characters into the varchar/nvarchar fields. The numeric and geometry fields seem to be fine. We are

[gdal-dev] MSSQLSpatial Driver fails to bulk insert (n)varchar columns

2017-06-16 Thread Russ Sivak
We are trying to use ogr2ogr to load shapefiles into SQL Server. It works when we are not using bulk copy, but once we use a windows build with bulk copy, it's super fast, but inserts garbage characters into the varchar/nvarchar fields. The numeric and geometry fields seem to be fine. We are

Re: [gdal-dev] r 39092: vsigzip filesize check

2017-06-16 Thread Even Rouault
On vendredi 16 juin 2017 05:40:53 CEST Kurt Schwehr wrote: > Even, > > With https://trac.osgeo.org/gdal/changeset/39092, can you explain the this > check? > > uncompressed_pos - startOff > m_compressed_size > > That looks to be comparing the number of bytes compressed vrs > uncompressed. Ho

[gdal-dev] r 39092: vsigzip filesize check

2017-06-16 Thread Kurt Schwehr
Even, With https://trac.osgeo.org/gdal/changeset/39092, can you explain the this check? uncompressed_pos - startOff > m_compressed_size That looks to be comparing the number of bytes compressed vrs uncompressed. How is this checking that the filesize changed? Something seems wrong or there

[gdal-dev] csharp/gdal/fwtools. Problem with migrating from window to ubuntu/mono

2017-06-16 Thread AndrewB
I'm novice in csharp but i need to migrate csharp project from windows to linux(ubuntu)/mono and have problem with this. I'm using FWTools in C# project under Windows(code below): including in project 2 dlls and FWTools/Bin in $PATH: ogr_csharp.dll osr_csharp.dll CODE: using OSGeo.OGR; using OSGeo