[gdal-dev] XY Tolerance = 0 when creating layer in region settings with comma decimal separator

Andrew C Aitchison andrew at aitchison.me.uk
Fri Sep 3 00:06:53 PDT 2021


On Thu, 2 Sep 2021, Karen M via gdal-dev wrote:

> Hi All,
>
> I'm using the C# bindings in gdal version
> release-1900-x64-gdal-2-4-3-mapserver-7-4-2.  When the operating system
> region settings are set to regions that uses a comma as the decimal
> separator and I use datasource.CreateLayer() to create a new file
> geodatabase layer, the resulting feature class has XY Tolerance = 0 when I
> use the layer in ArcGIS Pro.  When I use a region that uses decimal points,
> the XY Tolerance is non-zero (which is correct).
>
> I've tried using the option "XYTOLERANCE=0.000000008983153" in
> CreateLayer(), but I still get XY Tolerance = 0.

Stupid suggestions; have you tried
   XYTOLERANCE=0,000000008983153
   XYTOLERANCE=8,983153e-10
or
   XYTOLERANCE=8983153e-16
(please double check the values 10 and 16) ?

-- 
Andrew C. Aitchison					Kendal, UK
 			andrew at aitchison.me.uk


More information about the gdal-dev mailing list