|
From: Peter B. <pet...@ya...> - 2015-03-19 17:27:26
|
Quick update. I tried to hand code the Behrmann projection using a "Cylindrical_Equal_Area" with a standard parallel of 30 degrees: String behrmannWKT = "PROJCS[\"World_Behrmann\"," + "GEOGCS[\"GCS_WGS_1984\"," + "DATUM[\"WGS_1984\"," + "SPHEROID[\"WGS_1984\",6378137,298.257223563]]," + "PRIMEM[\"Greenwich\",0]," + "UNIT[\"Degree\",0.017453292519943295]]," + "PROJECTION[\"Cylindrical_Equal_Area\"]," + "PARAMETER[\"False_Easting\",0]," + "PARAMETER[\"False_Northing\",0]," + "PARAMETER[\"Central_Meridian\",0]," + "PARAMETER[\"Standard_Parallel_1\",30]," + "UNIT[\"Meter\",1]," + "AUTHORITY[\"EPSG\",\"54017\"]]"; CoordinateReferenceSystem crs = CRS.parseWKT(behrmannWKT); Throws: org.opengis.referencing.NoSuchIdentifierException: No transform for classification "Cylindrical_Equal_Area". Does geotools support any Cylindrical Equal Area Projections? http://www.remotesensing.org/geotiff/proj_list/cylindrical_equal_area.html From: Peter Borissow <pet...@ya...> To: Geotools-gt2-users <geo...@li...> Sent: Thursday, March 19, 2015 12:14 PM Subject: Behrmann Projection Hello- I would like to create a map using the Behrmann Equal Area Projection (EPSG:54017). GeoTools doesn't seem to like this projection. When I call CRS.decode("EPSG:54017") I'm getting the following exception: org.opengis.referencing.FactoryException: Error in "PROJECTION": No transform for classification "Behrmann". When I try to pass in a Proj4 style string but I get a different exception. CRS.decode("+proj=cea +lon_0=0 +lat_ts=30 +x_0=0 +y_0=0 +datum=WGS84 +ellps=WGS84 +units=m +no_defs") Throws: org.opengis.referencing.NoSuchAuthorityCodeException: No authority was defined for code "+PROJ=CEA +LON_0=0 +LAT_TS=30 +X_0=0 +Y_0=0 +DATUM=WGS84 +ELLPS=WGS84 +UNITS=M +NO_DEFS". Did you forget "AUTHORITY:NUMBER"? Any suggestions? Thanks,Peter Related links:http://spatialreference.org/ref/esri/54017/http://mathworld.wolfram.com/BehrmannCylindricalEqual-AreaProjection.html http://sourceforge.net/p/geoserver/mailman/message/24472263/ |