Hello Andrea-
Thanks for your prompt reply. I must admit, I still don't understand why
the
input and output images are identical. The interior pixels representing
landmasses/oceans should be different when I go from WGS84 to Mercator.
Perhaps I need to take a different tact? Maybe I need to use a different set of
classes? Is there an article or post you can point me to?
Thanks!
Peter
________________________________
From: Andrea Aime <[email protected]>
To: Peter Borissow <[email protected]>
Cc: Simone Giannecchini <[email protected]>;
[email protected]
Sent: Wed, March 9, 2011 3:40:18 PM
Subject: Re: [Geotools-gt2-users] Error Reprojecting Coverage to EPSG:900913
On Wed, Mar 9, 2011 at 8:53 PM, Peter Borissow <[email protected]> wrote:
Hmm... I would have thought that the Google projection, like most mercator
projections, would have had warped features a little differently. For example,
Greenland would look radically different on a Mercator projection than a WGS84
"projection". Maybe I should try a different "world" projection to test whether
the reprojection is working? I tried a Robinson and Mollweide projection but
they seem to be unsupported (I can create an envelope but the coverage
transformation is bombing out). Anyone know of another global projection I can
test with? Just need an EPSG code to see if the coverage transformation is
working.
>
The Mercator does that, but the reprojection code does not unecessarily change
the image, in that case it just changes the world to image transformation, it's
not adding pixels.
In fact the code will always generate in image with the same number of pixels
as
the original one, it will change the pixel values as needed and change the grid
to world
transformation accordingly.
Mollweide and Eckert IV are supported in the latest source builds from trunk,
but they are not available on 2.6.x.
However Robinson is available since 2.6.3, though it does not have any
associated EPSG code (the EPSG database
hardly has any atlas worthy projection in, Mollweide, Eckert VI and Winkel
Tripel are also supported by GeoTools
trunk but don't have a EPSG code)
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 333 8128928
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users