{"action":"closed","issue":{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/484","repository_url":"https://api.github.com/repos/DotSpatial/DotSpatial","labels_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/484/comments","events_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/484/events","html_url":"https://github.com/DotSpatial/DotSpatial/issues/484","id":153415932,"number":484,"title":"PolygonShapefile throws ArgumentException on NOAA Medium Resolution Shoreline shapefile","user":{"login":"mogikanin","id":840681,"avatar_url":"https://avatars.githubusercontent.com/u/840681?v=3","gravatar_id":"","url":"https://api.github.com/users/mogikanin","html_url":"https://github.com/mogikanin","followers_url":"https://api.github.com/users/mogikanin/followers","following_url":"https://api.github.com/users/mogikanin/following{/other_user}","gists_url":"https://api.github.com/users/mogikanin/gists{/gist_id}","starred_url":"https://api.github.com/users/mogikanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogikanin/subscriptions","organizations_url":"https://api.github.com/users/mogikanin/orgs","repos_url":"https://api.github.com/users/mogikanin/repos","events_url":"https://api.github.com/users/mogikanin/events{/privacy}","received_events_url":"https://api.github.com/users/mogikanin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/labels/CodePlex","name":"CodePlex","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-06T09:41:44Z","updated_at":"2016-05-06T09:41:45Z","closed_at":"2016-05-06T09:41:45Z","body":"**This issue was imported from [CodePlex](http://dotspatial.codeplex.com/workitem/22529)**\r\n\r\n**[Entiat](http://www.codeplex.com/site/users/view/Entiat)** wrote 2012-04-21 at 06:13\r\nLoading the standard NOAA medium resolution coastline shp file located at (downloaded from)\r\n<a href=\"http://coastalmap.marine.usgs.gov/GISdata/basemaps/coastlines/nos80k/nos80k.zip\" rel=\"nofollow\">\r\nhttp://coastalmap.marine.usgs.gov/GISdata/basemaps/coastlines/nos80k/nos80k.zip</a>\r\n\r\n \r\n\r\nvia DataManager.DefaultDataManager.OpenFile(localPath)\r\n\r\n \r\n\r\nThrows the following ArgumentException (\"Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.\"):\r\n\r\n \r\n\r\nat System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count)\r\n\r\nat DotSpatial.Data.BufferedBinaryReader.Read(Byte[] buffer, Int32 index, Int32 count) in C:\\src\\DotSpatial\\DotSpatial.Data\\BufferedBinaryReader.cs:line 499\r\n\r\nat DotSpatial.Data.ByteBlock.Read(Int32 numBytes, BufferedBinaryReader reader) in C:\\src\\DotSpatial\\DotSpatial.Data\\ByteBlock.cs:line 122\r\n\r\nat DotSpatial.Data.PolygonShapefile.FillPolygons(String fileName, IProgressHandler progressHandler) in C:\\src\\DotSpatial\\DotSpatial.Data\\PolygonShapefile.cs:line 232\r\n\r\nat DotSpatial.Data.PolygonShapefile.Open(String fileName, IProgressHandler progressHandler) in C:\\src\\DotSpatial\\DotSpatial.Data\\PolygonShapefile.cs:line 86\r\n\r\nat DotSpatial.Data.Shapefile.OpenFile(String fileName, IProgressHandler progressHandler) in C:\\src\\DotSpatial\\DotSpatial.Data\\Shapefile.cs:line 321\r\n\r\nat DotSpatial.Data.Shapefile.OpenFile(String fileName) in C:\\src\\DotSpatial\\DotSpatial.Data\\Shapefile.cs:line 269\r\n\r\nat DotSpatial.Data.ShapefileDataProvider.Open(String fileName) in C:\\src\\DotSpatial\\DotSpatial.Data\\ShapefileDataProvider.cs:line 119\r\n\r\nat DotSpatial.Data.ShapefileDataProvider.DotSpatial.Data.IDataProvider.Open(String fileName) in C:\\src\\DotSpatial\\DotSpatial.Data\\ShapefileDataProvider.cs:line 65\r\n\r\nat DotSpatial.Data.DataManager.OpenFile(String fileName, Boolean inRam, IProgressHandler progressHandler) in C:\\src\\DotSpatial\\DotSpatial.Data\\DataManager.cs:line 375\r\n\r\nat DotSpatial.Data.DataManager.OpenFile(String fileName) in C:\\src\\DotSpatial\\DotSpatial.Data\\DataManager.cs:line 312\r\n\r\nat Entiat.Cartography.ShapefileMap.InitializeFromPath(String path) in C:\\src\\entiat\\Entiat\\Cartography\\ShapefileMap.cs:line 80\r\n\r\n**[mogikanin](http://www.codeplex.com/site/users/view/mogikanin)** wrote 2014-01-12 at 16:04\r\nResolved with changeset 73650: Fixed reading medium/large shapefiles issue. #22529"}}