Revision 2989 trunk/extensions/extGeoProcessing/src/com/iver/gvsig/geoprocessing/operations/GeoProcessingPersistenceOperations.java
GeoProcessingPersistenceOperations.java | ||
---|---|---|
51 | 51 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
52 | 52 |
|
53 | 53 |
public class GeoProcessingPersistenceOperations { |
54 |
public static void saveBufferResultsToShapeFile(IGeometry[] geometries, File file) { |
|
54 |
/*public static void saveBufferResultsToShapeFile(IGeometry[] geometries, File file) {
|
|
55 | 55 |
if (!(file.getPath().endsWith(".shp") || file.getPath().endsWith(".SHP"))){ |
56 | 56 |
file=new File(file.getPath()+".shp"); |
57 | 57 |
} |
... | ... | |
69 | 69 |
} |
70 | 70 |
SHP.SHPOnlyFromGeometries(geometries,file); |
71 | 71 |
} |
72 |
public static void saveResultsToShapeFile(IGeometry[] geometries, File file) { |
|
72 |
public static void saveSpatialjoinResultsToShapeFile(IGeometry[] geometries, File file) {
|
|
73 | 73 |
if (!(file.getPath().endsWith(".shp") || file.getPath().endsWith(".SHP"))){ |
74 | 74 |
file=new File(file.getPath()+".shp"); |
75 | 75 |
} |
76 |
SHP.SHPFileFromGeometries(geometries,null,null,file);
|
|
76 |
SHP.SHPOnlyFromGeometries(geometries,file);
|
|
77 | 77 |
} |
78 |
public static void saveClipResultsToShapeFile(IGeometry[] geometries, File file, FLayers layers, FLayer layerToClip) {
|
|
78 |
public static void saveClipResultsToShapeFile(IGeometry[] geometries, File file) { |
|
79 | 79 |
if (!(file.getPath().endsWith(".shp") || file.getPath().endsWith(".SHP"))){ |
80 | 80 |
file=new File(file.getPath()+".shp"); |
81 | 81 |
} |
82 |
for (int i=0;i<geometries.length;i++) { |
|
82 |
SHP.SHPOnlyFromGeometries(geometries,file); |
|
83 |
} |
|
84 |
public static void saveIntersectResultsToShapeFile(IGeometry[] geometries, File file) { |
|
85 |
if (!(file.getPath().endsWith(".shp") || file.getPath().endsWith(".SHP"))){ |
|
86 |
file=new File(file.getPath()+".shp"); |
|
83 | 87 |
} |
88 |
SHP.SHPOnlyFromGeometries(geometries,file); |
|
89 |
} |
|
90 |
public static void saveUnionResultsToShapeFile(IGeometry[] geometries, File file) { |
|
91 |
if (!(file.getPath().endsWith(".shp") || file.getPath().endsWith(".SHP"))){ |
|
92 |
file=new File(file.getPath()+".shp"); |
|
93 |
} |
|
94 |
SHP.SHPOnlyFromGeometries(geometries,file); |
|
95 |
}*/ |
|
96 |
/*public static void saveResultsToShapeFile(IGeometry[] geometries, File file) { |
|
97 |
if (!(file.getPath().endsWith(".shp") || file.getPath().endsWith(".SHP"))){ |
|
98 |
file=new File(file.getPath()+".shp"); |
|
99 |
} |
|
84 | 100 |
SHP.SHPFileFromGeometries(geometries,null,null,file); |
101 |
}*/ |
|
102 |
public static void saveResultsToShapeFile(IGeometry[] geometries, File file) { |
|
103 |
if (!(file.getPath().endsWith(".shp") || file.getPath().endsWith(".SHP"))){ |
|
104 |
file=new File(file.getPath()+".shp"); |
|
105 |
} |
|
106 |
SHP.SHPOnlyFromGeometries(geometries,file); |
|
85 | 107 |
} |
86 | 108 |
} |
Also available in: Unified diff