|
From: Matt F. <Mat...@no...> - 2008-07-08 13:57:17
|
I have some satellite data 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 object 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. Does anyone see what might be wrong? Thanks for any assistance. Matt -- The cosmos is all that is or ever was or ever will be. -- Carl Sagan |