Closed rgbcmy closed 3 years ago
Actually, I have mixed feelings about taking ArcPad specifications as a general reference: do you know any info about other software that handles cpg in the same way? In any case, my two cents: cpg is an optional file, so info in cpg should override the "default" info in header; so, to me the current code it's ok.
I mean if cpg file not exist ShapefileStreamProviderRegistry.DataEncodingStream has a default so it never to read dbf Ldid
ShapefileStreamProviderRegistry.DataEncodingStream has a default so it never to read dbf Ldid
This comment does not make sense to me, sorry. Anyway, you can see the actual code here and it follows the ArcPad specifications, so forgot my "mixed feelings"... I will close this issue, if you think the problem still persist feel free to re-open the issue, but please be specific about the problem, the expected behavior and possibly add some code and data that reproduces the problem.
this method reference http://downloads.esri.com/support/documentation/pad_/ArcPad_RefGuide_1105.pdf;
The pdf first is Check for DBF LDID,but the method first is Check for CPG ;and the method ShapefileDataReader(string filename, GeometryFactory geometryFactory, Encoding encoding) if the parameter encoding is null and .CPG file not exist, ShapefileStreamProviderRegistry.DataEncodingStream also have default,so LDID Not available at all。I think it should be modified to