Revision 3513 branches/FMap_CAD/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/shp/DemoSHPDriver.java
DemoSHPDriver.java | ||
---|---|---|
568 | 568 |
/** |
569 | 569 |
* @see com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver#initialize() |
570 | 570 |
*/ |
571 |
public void initialize() throws IOException {
|
|
571 |
public synchronized void initialize() {
|
|
572 | 572 |
// create a new header. |
573 | 573 |
ShapeFileHeader myHeader = new ShapeFileHeader(); |
574 | 574 |
|
... | ... | |
602 | 602 |
|
603 | 603 |
DbaseFileNIO m_FichDbf = new DbaseFileNIO(); |
604 | 604 |
|
605 |
m_FichDbf.open(new File(strFichDbf)); |
|
605 |
try { |
|
606 |
m_FichDbf.open(new File(strFichDbf)); |
|
607 |
} catch (IOException e) { |
|
608 |
// TODO Auto-generated catch block |
|
609 |
e.printStackTrace(); |
|
610 |
} |
|
606 | 611 |
numReg = m_FichDbf.getRecordCount(); |
607 | 612 |
m_posShapes = new long[numReg]; |
608 | 613 |
|
Also available in: Unified diff