bilaldursun1 / nettopologysuite

Automatically exported from code.google.com/p/nettopologysuite
0 stars 0 forks source link

PolygonHandler Read method bug #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After read all points content and GetZMValues, did not check all the contents 
are completely finished reading. 

// Trond Benum: We have now read all the parts, let's read optional Z and M 
values
// and populate Z in the coordinate before we start manipulating the segments
// We have to track corresponding optional M values and set them up in the 
// Geometries via ICoordinateSequence further down.
GetZMValues(file, totalRecordLength, ref totalRead, buffer, skippedList);

// sure to read all the contents
if (totalRead < totalRecordLength)
    file.ReadBytes((totalRecordLength - totalRead) * 2);

Original issue reported on code.google.com by roc....@gmail.com on 16 Nov 2013 at 1:44

Attachments:

GoogleCodeExporter commented 9 years ago
your test data doesn't contains dbf file..

Original comment by diegogu...@gmail.com on 18 Nov 2013 at 10:42

GoogleCodeExporter commented 9 years ago
There are 201 shapes in the Test Data.SHP file, you can read it by 
ShapefileReader..

Original comment by roc....@gmail.com on 18 Nov 2013 at 12:11

GoogleCodeExporter commented 9 years ago
my mistake, I'm considering DBF mandatory for the tests but actually isn't 
needed to read Z/M values... sorry.

Original comment by diegogu...@gmail.com on 18 Nov 2013 at 12:59

GoogleCodeExporter commented 9 years ago
added with commit 1087 
https://code.google.com/p/nettopologysuite/source/detail?r=1087

Original comment by diegogu...@gmail.com on 18 Nov 2013 at 1:46