DBF text field size in a shapefile created through fs.SaveAs(“F:\...\test.shp”, true) is set to “254” rather than the maxwidth property of the input featureset datatable.
The modified sample code (attached) correctly sets the "Text" field to a maxwidth of 15 in the featureset, however the generated dbf file has a width of 254. This seems to lead to a large dbf file size when multiple text fields are included as attributes.
Comments: Associated with changeset 73634: DBF files: Write text field size according to MaxLength. #24181
The modified sample code (attached) correctly sets the "Text" field to a maxwidth of 15 in the featureset, however the generated dbf file has a width of 254. This seems to lead to a large dbf file size when multiple text fields are included as attributes.
Comments: Associated with changeset 73634: DBF files: Write text field size according to MaxLength. #24181