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.

Thanks in Advance!
Peter




________________________________
From: Andrea Aime <[email protected]>
To: Peter Borissow <[email protected]>
Cc: Simone Giannecchini <[email protected]>; 
[email protected]
Sent: Wed, March 9, 2011 12:06:06 PM
Subject: Re: [Geotools-gt2-users] Error Reprojecting Coverage to EPSG:900913


On Wed, Mar 9, 2011 at 5:02 PM, Peter Borissow <[email protected]> wrote:

Simone/Andrea-
>  I generated a new world image that extends from 80N to 80S. I updated the
>envelope to (-180, -80, 360, 160) and per Simone's suggestion, I did
>CRS.decode("EPSG:4326", true).
>
>
>---
>Envelope2D envelope = new Envelope2D(CRS.decode("EPSG:4326", true),
>   new java.awt.geom.Rectangle2D.Float(-180, -80, 360, 160)
>);
>---
>
>I got an image out, without any errors, but the output looks identical to the
>input. Am I missing something else?
>

You're not missing anything I think, in that kind of reprojection only the 
georeferencing
changes as far as I remember, the number of pixels is preserved. But you're not 
writing out
the georeferencing so you don't see it.

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

Reply via email to