Observations when working with SQLServer OGR datasource

Description

1. In Ogr2Shape, MapWinGIS was handling the OGR Date type, but not handling the OGR DateTime type.
2. In TableClass, when converting from OGR types to Shapefile types, Width and Precision of a Real (Double) data type were coming in as zero, so we needed additional validation checks,

Activity

Show:
Jerry Faust
April 26, 2019, 12:40 AM

1. No conversion code changed related to Dates; only the case was added to account for DateTime along with Date. Otherwise a DateTime field would default to a String.
2. Error checking already existed for Precision being too small, but not for Width. Additionally, I accounted for the sign and decimal point that may be written, meaning that Precision could not be greater than (Width - 2).

Done

Assignee

Jerry Faust

Reporter

Jerry Faust

Labels

None

Epic Link

None

Affects versions

None

Fix versions

Priority

Medium