Revision 13044 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/writers/shp/ShpWriter.java
ShpWriter.java | ||
---|---|---|
22 | 22 |
import com.iver.cit.gvsig.fmap.drivers.ITableDefinition; |
23 | 23 |
import com.iver.cit.gvsig.fmap.drivers.shp.DbaseFileHeaderNIO; |
24 | 24 |
import com.iver.cit.gvsig.fmap.drivers.shp.DbaseFileWriterNIO; |
25 |
import com.iver.cit.gvsig.fmap.drivers.shp.SHP; |
|
25 | 26 |
import com.iver.cit.gvsig.fmap.drivers.shp.write.SHPFileWrite; |
26 | 27 |
import com.iver.cit.gvsig.fmap.drivers.shp.write.ShapefileException; |
27 | 28 |
import com.iver.cit.gvsig.fmap.edition.IRowEdited; |
... | ... | |
72 | 73 |
{ |
73 | 74 |
shpPath = f.getAbsolutePath(); |
74 | 75 |
|
75 |
String strFichshx = f.getAbsolutePath().replaceAll("\\.shp", ".shx"); |
|
76 |
shxPath = strFichshx.replaceAll("\\.SHP", ".SHX"); |
|
76 |
shxPath = SHP.getShxFile(f).getAbsolutePath(); |
|
77 | 77 |
|
78 |
String strFichDbf = f.getAbsolutePath().replaceAll("\\.shp", ".dbf"); |
|
79 |
dbfPath = strFichDbf.replaceAll("\\.SHP", ".DBF"); |
|
78 |
dbfPath = SHP.getDbfFile(f).getAbsolutePath(); |
|
80 | 79 |
|
81 | 80 |
shpFile = f; |
82 | 81 |
} |
Also available in: Unified diff