Hi Graham,

I've done something that might be useful during Google Summer of Code 2006/07. 
It's little bit out of date so I'm just trying to put the udig plugin (that 
includes raster support) into the shape in the repo.

In the short I've made few 'MathTransformBuilder' objects, that calculates you 
proper transformation from set of ground control point (using LSM).
You can calculate linear method like Similar, Affine, Projective or warping 
methods like 'rubber sheeting' or GridBased methods and then you are able to 
apply it on the vector or raster. For rasters I tried to use extended JAI 
WarpTransform2D to apply warping methods but this work has not been committed 
to GeoTools trunk yet.

Some (little bit out of date) documentation is here:
http://geotools.codehaus.org/New+Transformation+Algorithms+for+GeoTools+and+uDig

Some methods are already committed under GeoTools/Referencig/operation/builder 
sub package (mostly the linear ones  - should work for rasters as well as 
vectors).

Some code (still waiting for trunk) is here (it includes the raster support for 
warping algorithms):
http://gtsvn.refractions.net/trunk/spike/jan/gsoc-transformations/

I'll try to ensure that everything is up to date during todays evening and then 
I send you the link for simple plugin that should work for trunk. 
Best regards,

Jan.





______________________________________________________________
> Od: [EMAIL PROTECTED]
> Komu: User-friendly Desktop Internet GIS 
> <udig-devel@lists.refractions.net>
> Datum: 10.11.2008 22:58
> Předmět: [udig-devel] GDAL and JAI
>
>Hi,
>
>I'm looking into making a small module in uDig for image manipulation.  
>Basically my client wants to take an aerial photo and place it overtop of a 
>satellite base layer.  They want to be able to manually manipulate this photo 
>and visually fit it onto the correct spot of the map.  The manipulation they 
>want to be able to achieve includes shrinking/growing the image, rotating it 
>and morphing it to align correctly.  Ideally this would be done in real-time 
>with the user manipulating  the image with their mouse and maybe some 
>numerical input.  Once the user is satisfied with their approximate placement, 
>they can "lock it in" at which point I will save the resulting image and its 
>coordinates as a geotiff.
>
>I am currently looking at JAI and GDAL to see if these sorts of image 
>manipulation functions are available.  I haven't used either library very 
>extensively, so it is pretty new to me.  The GDAL documentation seems to be 
>pretty light in general (at least for Java and GeoTools).  I've only found 
>these resources:
>
>- http://docs.codehaus.org/display/GEOTOOLS/ImageIO-EXT+GDAL
>- http://trac.osgeo.org/gdal/wiki/GdalOgrInJava
>
>Does anyone know of other helpful resources that I could use for this project? 
> Are there any uDig modules that currently do anything like this, with example 
>code I could look at?  Or perhaps someone has some suggestions for how I might 
>approach this so that it fits nicely with current uDig designs?  If this 
>functionality sounds useful to others, I'm all for trying to make this module 
>"official".  Thanks,
>
>-- Graham Davis
>Refractions Research Inc.
>[EMAIL PROTECTED]
>
>_______________________________________________
>User-friendly Desktop Internet GIS (uDig)
>http://udig.refractions.net
>http://lists.refractions.net/mailman/listinfo/udig-devel
>

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to