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


-------------------------------------------------------------------------
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