Completed
Last Updated: 30 Dec 2021 08:10 by ADMIN
Release R1 2022
Sylvain
Created on: 21 Dec 2021 12:11
Category: Map
Type: Bug Report
1
RadMap: System.FormatException occurs when reading shp file when dbf contains *** instead of NULL

The ShapeFileReader fails in its ReadDbfRecord method:

            using (MemoryStream shapeStream = new MemoryStream(File.ReadAllBytes(@"C:\Users\dyordano\Downloads\84aa4699-f436-4b7e-b029-e353fdab0411_shapefile-before-modification\asseuappareil.shp")))
            {
                using (MemoryStream dbfStream = new MemoryStream(File.ReadAllBytes(@"C:\Users\dyordano\Downloads\84aa4699-f436-4b7e-b029-e353fdab0411_shapefile-before-modification\asseuappareil.dbf")))
                {
                    ShapeFileReaderParameters parameters = new ShapeFileReaderParameters();
                    parameters.ShapeStream = shapeStream;
                    parameters.DbfStream = dbfStream;
                    ShapeFileReader reader = new ShapeFileReader();
                    List<MapVisualElement> elements = reader.Read(parameters);
                }
            }

2 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 23 Dec 2021 05:40

Hi, Sylvain,

Please make sure that you cast your vote for the item in order to increase its priority. The more votes an item gathers, the higher its priority becomes. Click the Follow button to get notified once any status changes occur.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Sylvain
Posted on: 22 Dec 2021 15:01

For us, this is very important because QGIS which is the open source standard software exports shape files with theses ****

Without this correction, I can't add shape file management to my application

Thanks in advance