Honor the limits of decimal number field in MapInfo
|Reported by:||Jukka Rahkonen||Owned by:||warmerdam|
In the file formats of Mapinfo the maximum field width of a decimal number is 20 characters, and the maximum precision is width - 2 (for decimal point and sign), up to a maximum of 16 characters. Thus the largest valid number format is (20,16). However, GDAL can write Mapinfo files which define the field for example as (23,15). This makes Mapinfo to crash.
Issue was found from gis.stacexchange http://gis.stackexchange.com/questions/180627/qgis-ogr-shp-to-tab-export-crashing-mapinfo-due-to-number-format-issues