Revision 42572 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.shp/src/main/java/org/gvsig/fmap/dal/store/shp/SHPStoreProvider.java
SHPStoreProvider.java | ||
---|---|---|
75 | 75 |
import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException; |
76 | 76 |
import org.gvsig.tools.exception.BaseException; |
77 | 77 |
|
78 |
/** |
|
79 |
* @author fdiaz |
|
80 |
* |
|
81 |
*/ |
|
78 | 82 |
public class SHPStoreProvider extends DBFStoreProvider { |
79 | 83 |
|
80 | 84 |
private static final GeometryManager geomManager = GeometryLocator.getGeometryManager(); |
... | ... | |
632 | 636 |
public Object run() throws Exception { |
633 | 637 |
writer.end(); |
634 | 638 |
close(); |
639 |
|
|
640 |
SHPStoreParameters shpParameters = SHPStoreProvider.this.getShpParameters(); |
|
641 |
File prjFile = SHP.getPrjFile(shpParameters.getFile()); |
|
642 |
try { |
|
643 |
FileUtils.writeStringToFile(prjFile, shpParameters.getCRS().export(ICRSFactory.FORMAT_WKT_ESRI)); |
|
644 |
} catch(Exception e) { |
|
645 |
logger.info("Can't write prj file '"+prjFile.getAbsolutePath()+"'."); |
|
646 |
} |
|
647 |
|
|
635 | 648 |
resourcesNotifyChanges(); |
636 | 649 |
return null; |
637 | 650 |
} |
Also available in: Unified diff