I have attached a first cut of the CylindricalEqualArea projection.
You will need to add 2 lines to the org.geotools.referencing.operation.MathTransformProvider for it to work: org.geotools.referencing.operation.projection.CylindricalEqualArea$Provider org.geotools.referencing.operation.projection.CylindricalEqualArea$BehrmannProvider I don't know how to test it. Visually it looks ok. I used the following code which generated a map that looks a lot like this:http://mathworld.wolfram.com/BehrmannCylindricalEqual-AreaProjection.html CoordinateReferenceSystem crs = CRS.decode("EPSG:54017"); MapContent map = new MapContent(); MapViewport vp = map.getViewport(); vp.setCoordinateReferenceSystem(crs); map.addLayer(getPoliticalBoundaries()); map.addLayer(getGraticules()); I used code from Proj4j[1] which is almost identical to Proj4[2]. The only thing I'm not sure about is the "trueScaleLatitude" variable in the constructor. In proj4, this maps to "tlat_ts". I have no idea what the equivalent is in GeoTools. Also, I need someone to check the citations in the Provider classes. Thanks for all your help!Peter [1] http://trac.osgeo.org/proj4j/browser/trunk/src/main/java/org/osgeo/proj4j/proj/CylindricalEqualAreaProjection.java[2] http://trac.osgeo.org/proj/browser/trunk/proj/src/PJ_cea.c?rev=1856#L44
CylindricalEqualArea.java
Description: Binary data
------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel