Hi, don't have time to look right now, but as far as I remember all projection math we have assumes the data is being expressed in the unit sphere, and there is some code, I believe in the base base classes, that does the necessary conversions.
It's the same approach used by libproj Cheers Andrea On Thu, Jun 18, 2015 at 5:36 PM, Maciej Filocha <m.filo...@icm.edu.pl> wrote: > Dear all, > > > I'm working on the new projection to handle Meteosat Second Generation > images. It is some sort of a "Vertical Perspective" (Snyder) as I > understand. > > A reference C/Fortran code (pixel row-col to lat-lon) is available from > Eumetsat website. My draft implementation of that code computes right > results, however only under assumption that Earth radius parameter is > equal to 1: > > set _MSG_ = PROJCS["MSG", GEOGCS["WGS 84", DATUM["World Geodetic System > 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563, > AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", > 0.017453292519943295], AUTHORITY["EPSG","4326"]], > PROJECTION["MeteosatSG"], PARAMETER["semi_major", 1.0], > PARAMETER["semi_minor", 1.0], PARAMETER["latitude_of_origin", 0.0], > PARAMETER["central_meridian", 0.0], PARAMETER["scale_factor", 1.0], > PARAMETER["false_easting", 0.0], PARAMETER["false_northing", 0.0], > UNIT["m", 1.0]] > > That looks strange for me. I'd appreciate any hints how to do it in more > straightforward (proper?) way. > > > My code is here: > > > https://github.com/mfilocha/geotools/blob/b42be2ffc30784b61bfd114bc273bd534996713b/modules/library/referencing/src/main/java/org/geotools/referencing/operation/projection/MeteosatSG.java > > Test data: > > > https://github.com/mfilocha/geotools/blob/b42be2ffc30784b61bfd114bc273bd534996713b/modules/library/referencing/src/test/resources/org/geotools/referencing/test-data/scripts/MeteosatSG.txt > > > Regards > > Maciej > > > ------------------------------------------------------------------------------ > _______________________________________________ > GeoTools-Devel mailing list > GeoTools-Devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel > -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003* Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003. The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc. -------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel