Hi Jody. The tests all seem to run OK, but looking at the code, it doesn't appear that the use of a "User Defined" CRS is tested. I could be wrong about that, though.

Matt


Jody Garnett wrote:
Hey Matt I am a bit weak on the image format metadata stuff; my best advice is to review the geotools tests cases on this subject.
Jody

Matt Foster wrote:
I posted this a couple of weeks ago, and got no replies. I'm trying again with a (perhaps) better subject line...

I have some satellite imagery that I am trying to process into Geotiffs. The problem I'm having is that when GeotiffWriter tries to create a MapProjection, the parseProjection method in CRS2GeotiffMetadataAdapter throws a ClassCastException because (apparently) it can't get to a proper MapProjection from my CRS. The data comes to me in a Lambert Conic Conformal (1SP) projection that does not appear to have any EPSG code, so I create a CRS with some WKT, and parse it with CRS.parseWKT(String).

I'm attaching a bit of code I wrote to mimic what CRS2GeotiffMetadataAdapter does to try and get from the CRS to a MapProjection. My "User Defined" CRS is in the code. I can only assume that something is wrong with my CRS definition. Any ideas?

Matt


------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------

_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users



--
Do not go where the path may lead; go instead where there is no path and leave 
a trail.
-- Ralph Waldo Emerson

begin:vcard
fn:Matt Foster - N0EYE
n:Foster;Matt
org:;NWS Forecast Office - Norman OK
email;internet:[EMAIL PROTECTED]
title:Information Technology Officer
tel;work:(405) 325-3406
x-mozilla-html:TRUE
version:2.1
end:vcard

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to