run time error

1 message Options
Embed this post
Permalink
vidya venugopal

run time error

Reply Threaded More More options
Print post
Permalink
i want to read a .shp file using geotool,the maps are created in arcview. while i reading the file using
 
 
FileChannel in = new FileInputStream("D:/GIS/WORK/SHAPESAMPLE/DATA/river.dbf").getChannel();
 ShapefileReader r = new ShapefileReader( in );
 while (r.hasNext())
 {
 Geometry  shape = (Geometry) r.nextRecord().shape();
  // do stuff
 }
 r.close();
 
 
code the run time error is occured .i donnt know how to solve this please help me.
RUN TIME ERROR:
 
Wrong magic number, expected 9994, got 57149711


Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.