Quantcast
Channel: DotSpatial Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1128

Edited Issue: Reading shapefile with null values throws exception [24969]

$
0
0
Hi,

I have a shapefile with some columns having null values. When I attempt to get the feature set from it, it throws the following exception:

Value cannot be null.
Parameter name: src
at System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count)
at DotSpatial.Data.BufferedBinaryReader.Read(Byte[] buffer, Int32 index, Int32 count)
at DotSpatial.Data.PointShapefile.FillPoints(String fileName, IProgressHandler progressHandler)
at DotSpatial.Data.PointShapefile.Open(String fileName, IProgressHandler progressHandler)
at DotSpatial.Data.Shapefile.OpenFile(String fileName, IProgressHandler progressHandler)
at DotSpatial.Data.Shapefile.OpenFile(String fileName)
at DotSpatial.Data.ShapefileDataProvider.Open(String fileName)
at DotSpatial.Data.ShapefileDataProvider.DotSpatial.Data.IDataProvider.Open(String fileName)
at DotSpatial.Data.DataManager.OpenFile(String fileName, Boolean inRam, IProgressHandler progressHandler)
at DotSpatial.Data.DataManager.OpenVector(String fileName, Boolean inRam, IProgressHandler prog)
at DotSpatial.Data.FeatureSet.Open(String fileName)
....
Comments: ** Comment from web user: mogikanin **

Thank you for posting this issue. Now it's fixed.


Viewing all articles
Browse latest Browse all 1128

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>