Hello Agossa
Given that the "Sinusoidal" projection is not yet implemented in GeoTools, it
need to be implemented first. In order to do that, you need to find the
equations somewhere (should not be hard) and create a subclass of
org.geotools.referencing.operation.projection.MapProjection. I suggest that you
copy the Mercator class, which is relatively simple, and call the copy
Sinusoidal. If the Sinusoidal projection is defined only on a sphere and not on
an ellipsoid, then you can delete the "Sphere" inner class.
The formulas need to be implemented in the "transformNormalized" and
"inverseTransformNormalized" methods. For the former method, input are
longitudes and latitudes in *radians* and the output are the projected (x,y)
coordinates in metres. For the later method, this is the converse.
Then you need to defines the projection name and the parameters in the
"Provider" inner class. Again use the Mercator's one as a template, just
changing the string values. Use the following as a reference for the values:
http://www.remotesensing.org/geotiff/proj_list/sinusoidal.html
Finally, you need to add a reference to your Sinusoidal.Provider class in
META-INF/services/org.geotools.referencing.operation.MathTransformProvider
file.
Open that file (it should exists) and just add one line similar to the one that
already exit in that file.
Martin
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users