Revision 31036 trunk/extensions/extGeoreferencing/src-test/org/gvsig/georeferencing/process/TGeoTransformProcessMapToPixelXTest.java
TGeoTransformProcessMapToPixelXTest.java | ||
---|---|---|
47 | 47 |
import org.gvsig.georeferencing.process.geotransform.GeoTransformDataResult; |
48 | 48 |
import org.gvsig.georeferencing.process.geotransform.GeoTransformProcess; |
49 | 49 |
import org.gvsig.raster.datastruct.GeoPoint; |
50 |
import org.gvsig.raster.datastruct.GeoPointList; |
|
50 | 51 |
|
51 | 52 |
import Jama.Matrix; |
52 | 53 |
|
... | ... | |
60 | 61 |
* */ |
61 | 62 |
|
62 | 63 |
public class TGeoTransformProcessMapToPixelXTest extends TestCase { |
63 |
|
|
64 |
private GeoPoint gpcs[] = new GeoPoint[3]; |
|
64 |
private GeoPointList gpl = new GeoPointList(); |
|
65 | 65 |
private double geoPoints[][] ={{ 1369.000000 , 2985.750000 }, |
66 | 66 |
{ 1673.500000 , 2803.250000 }, |
67 | 67 |
{ 2092.500000 , 2933.250000 }, |
... | ... | |
83 | 83 |
{ |
84 | 84 |
Point2D pW = new Point2D.Double(geoPoints[i][0],geoPoints[i][1]); |
85 | 85 |
Point2D pP = new Point2D.Double(imagePoints[i][0],imagePoints[i][1]); |
86 |
gpcs[i]= new GeoPoint(pP,pW);
|
|
86 |
gpl.add(new GeoPoint(pP,pW));
|
|
87 | 87 |
} |
88 | 88 |
|
89 | 89 |
GeoTransformProcess proceso = new GeoTransformProcess(); |
90 |
proceso.addParam("gpcs",gpcs);
|
|
90 |
proceso.addParam("gpcs", gpl);
|
|
91 | 91 |
proceso.addParam("orden", new Integer(1)); |
92 |
proceso.run(); |
|
92 |
proceso.init(); |
|
93 |
proceso.process(); |
|
93 | 94 |
|
94 | 95 |
GeoTransformDataResult resultado= (GeoTransformDataResult) proceso.getResult(); |
95 | 96 |
|
Also available in: Unified diff