Thanks Mark,

If I get the idea I should get the pixel coordinates from the new Image
once the user has resized and placed it in the correct spot and then use
AffineTransform to re-calculate the world coordinates.

But how can I make the image in the mapLayer movable and resizable? My
problem is that I still have not understood how to do that....

Anna.

2016-04-26 22:03 GMT+02:00 Mark Prins <[email protected]>:

>
> Op 26 apr. 2016 12:22 schreef "Anna Amat" <[email protected]>:
> >
> >
> > Dear all,
> >
> > I'm writing an application using geotools. I would like the user to be
> able to upload a raster image (that initially has no spatial information)
> and georeference it using an existing map.
> >
> > I can think about 2 possibilities:
> > 1) georeference initially the image to the center of the map and
> allowing the user to resize and move it
> > 2) Using reference points in both the map and the image and then fitting
> the selected points
> >
>
> If the image is close to the maps projection 1 may be good enough, 2 will
> make it possible to do warping/reproduction.
> There's a tutorial on affine transform:
> http://docs.geotools.org/stable/userguide/tutorial/affinetransform.html
>
> Mark
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to