Statistics
| Revision:

root / trunk / libraries / libJCRS / src / org / gvsig / crs / epsg / OperationCrs.java @ 6813

History | View | Annotate | Download (1.2 KB)

1 6813 mgarcia
package org.gvsig.crs.epsg;
2
3
4
public class OperationCrs extends JNIBaseOperation
5
{
6
        public static void operate(double[] firstCoord,
7
                                                             double[] secondCoord,
8
                                                             double[] thirdCoord,
9
                                                             CrsEpsg srcCrs,
10
                                                             CrsEpsg destCrs)
11
                                                                 throws OperationCrsException,
12
                                                                                CrsEpsgException {
13
14
                int error=operation(firstCoord,secondCoord,thirdCoord,
15
                                          srcCrs.getPtr(),destCrs.getPtr());
16
                if(error!=1) throw new OperationCrsException(srcCrs,destCrs);
17
        }
18
19
        public static void operateSimple(double firstCoord,
20
                                                                         double secondCoord,
21
                                                                         double thirdCoord,
22
                                                                         CrsEpsg srcCrs,
23
                                                                         CrsEpsg destCrs) throws OperationCrsException,
24
                                                                                                                          CrsEpsgException {
25
26
                int error = operationSimple(firstCoord, secondCoord, thirdCoord,
27
                                                                         srcCrs.getPtr(),destCrs.getPtr());
28
                if(error!=1) throw new OperationCrsException(srcCrs,destCrs);
29
        }
30
31
        public static void operateArraySimple(double[] Coord,
32
                                                                                  CrsEpsg srcCrs,
33
                                                                                  CrsEpsg destCrs)throws OperationCrsException,
34
                                                                                          CrsEpsgException {
35
36
                int error = operationArraySimple(Coord,srcCrs.getPtr(),destCrs.getPtr());
37
38
                if(error!=1) throw new OperationCrsException(srcCrs,destCrs);
39
40
        }
41
}