That is fine,  the area of definition is available only when you pick a CRS
from the EPSG database... and it's the legal one,  not related to the
capabilities of the projection math (in other terms, not that useful)

Cheers
Andrea
Il 28/mar/2015 13:48 "Peter Borissow" <peter.boris...@yahoo.com> ha scritto:

> This is great!
>
> I updated the org.geotools.referencing.operation.MathTransformProvider
> file in the "gt-referencing" jar file and now GeoTools is now able to "see"
> my projection.
>
> However, I still think I'm missing something. I think I need to
> create/update the CRSFactory or something to set the DomainOfValidity.
> Here's the code:
>
>
>         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);Extent
> crsExtent = crs.getDomainOfValidity(); //<-- RETURNS NULL???
>
>
> Thanks,
> Peter
>
>
>   ------------------------------
>  *From:* Andrea Aime <andrea.a...@geo-solutions.it>
> *To:* Peter Borissow <peter.boris...@yahoo.com>
> *Cc:* "geotools-devel@lists.sourceforge.net" <
> geotools-devel@lists.sourceforge.net>
> *Sent:* Saturday, March 28, 2015 7:03 AM
> *Subject:* Re: [Geotools-devel] Cylindrical Equal Area Projection
>
> On Fri, Mar 27, 2015 at 10:48 AM, Peter Borissow <peter.boris...@yahoo.com
> > wrote:
>
> Hello-
>     I would like to contribute to GeoTools by implementing the Cylindrical
> Equal Area Projection:
>
> http://www.remotesensing.org/geotiff/proj_list/cylindrical_equal_area.html
>
> In doing so, we should be able to support other cylindrical equal area
> projections like NSIDC EASE-Grid Global (EPSG:3410), Behrmann (EPSG:54017),
> Peters, Gal, etc.
>
> I am a geotools novice but would like to contribute. What is the process
> for adding a new projection?
>
> I believe the first step is to implement a class that extends
> MapProjection. This code looks like a good place to start:
>
>
> http://trac.osgeo.org/proj4j/browser/trunk/src/main/java/org/osgeo/proj4j/proj/CylindricalEqualAreaProjection.java
>
>
> Hi Peter,
> normally what we do is to port the math from libproj, not sure if proj4j
> is any different, the geotools code assumes
> the projection works on the unit sphere:
> http://trac.osgeo.org/proj/browser/trunk/proj/src/PJ_cea.c
>
> What else needs to be done?
>
>
> You basically have to wrap it in the GeoTools own plugin structure
> (projection, provider),
> declare the provider in META-INF/services, and add a test comparing your
> results
> with some that cs2cs generated.
>
> Here is a couple of commits adding a new projection, for reference.
> Sinusoidal:
>
> https://github.com/geotools/geotools/commit/ec4b692a7fc24b51925f5721b5361bedc093bb0a
> EckertIV, WinkelTripel, Mollweide, Aitoff, WagnerIV (all in one shot):
>
> https://github.com/geotools/geotools/commit/07c3ed790af1a9395b60903ab90ad09d5f8479c0
>
>
>
>
>
>
> PS. I posted a question on the gt mailing list with no response:
> http://sourceforge.net/p/geotools/mailman/message/33626933/
>
>
> I never received those messages, wondering if others here did?
>
> Cheers
> Andrea
>
> --
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/NWWaa2 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.
>
> -------------------------------------------------------
>
>
>
------------------------------------------------------------------------------
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

Reply via email to