Dear João,

thanks for posting this code excerpt, I am not aware of any other example
around for georeferencing an image via GCP (is there..?).

Regarding your code: why are you defining a warp-transform from pixels to
coordinates:


>     WarpTransform2D wt = new WarpTransform2D(src, dst, deg);

while using it to define the derived "Image" CRS which is supposed to be fed
with the transform from coordinates to pixels instead?


>     DefaultDerivedCRS derivedCRS = new DefaultDerivedCRS("imageCRS",
>                 srcCrs, wt, DefaultCartesianCS.GENERIC_2D);

Is this a mistake/typo?




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/WarpTransform2D-vs-gdalwarp-using-GCPs-tp4982172p5237209.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to