ShapeImporter just import a part of total shapes

Topics: Developer Forum, User Forum
Jul 2, 2008 at 3:13 PM
Hello,

I have problem then I try to import the shape file. First I tried with the 0.1.1 release but I got a nullpointer exception then it tried to do getBytes() after around 50 shapes. I read in the forum that I should use the latest release and so I did. But now it's just importing a few (like 10%) shape of the total shape file. I have checked the file with the ShapeViewer and it works fine. There are also other people who using the files so it don't think it's any wrong with them. As it seems, then I look in the code, the ShapeDataReader just read a part of file. Are there any problems with some types of the shapes? Or are other ways to do work aound?

Keep up the good work!

Tomas Fält
Jul 2, 2008 at 3:39 PM
I want to add that the shape files that didn't work were with  polygon shapes. I tried one with point shapes and it worked perfectly.

Tomas Fält
Jul 4, 2008 at 8:37 AM
Hello,

I have found out the shape files were actually not ok. The beginning an the end of polygons were not connected as it should. So the problem is solved (more or less...)

Tomas Fält