Hi,

I have used the ImageLab example to create a map with an Imge. If I write
the world file "externally" it places the image in the correct position.
Then I have been trying to load a not georeferenced image and set its
coordinates programatically but it is always placed on the same position.

I have also tryed creating the envelope and then the coverage from the
Buffered image but I always get the same result....
    bImg = ImageIO.read(imageFile);
    Envelope2D env = new Envelope2D(crs, 0.0, -1000.0, 3459.0, 4140.0);
  // Creating the GridCoverage
    GridCoverageFactory factory = new GridCoverageFactory();
    cov = factory.create("Test", bImg, env);

Can anyone point out an example or tutorial on how to set or change the
coordinates of an image inside a JMapPane?


Thanks!
Anna.
------------------------------------------------------------------------------
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