From: <no...@so...> - 2002-03-13 10:57:53
|
Bugs item #529389, was opened at 2002-03-13 02:57 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=104091&aid=529389&group_id=4091 Category: core geotools Group: Feature Request Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: a bug using ShapefileReader constructor Initial Comment: /*There is no error or exception reported, but no data is displayed when I used the constructor of ShapefileReader(java.io.InputStream shpIn, java.io.InputStream dbfIn) */ Theme RoadTheme; FileDialog dlg = new FileDialog(this); dlg.show(); String name = dlg.getFile(); String dir = dlg.getDirectory(); String fullname = dir+name; try{ FileInputStream shpis = new FileInputStream (fullname); ShapefileReader sfr = new ShapefileReader (shpis, null); RoadTheme = sfr.getTheme(); MonoShader shade = new MonoShader(Color.black); RoadTheme.setShader(shade); MapPane.addTheme(RoadTheme); } catch(IOException ioe){ System.out.println("error"); } } ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=104091&aid=529389&group_id=4091 |