Bernard,

I've run into the converse where these tests fail in Eclipse.  The problem
seems to relate to some tests needing to be run with assertions disabled
and some confusion with the runtime environment about how this is
controlled.  In my case I had to find the Java VM command line arg to
disable assertions to get the test working.

However, generally I think the assertion of checkReciprocal() in
MapProjection.transform() is entirely ill conceived - resulting in
assertion exceptions at runtime if assertions are enabled for things that
are entirely reasonable requests.  I would really like to remove this.  Is
there anyone who feels that this is actually the right thing to do?  The
code looks like:

        if(invertible) {
            assert checkReciprocal(ptDst, (ptSrc!=ptDst) ? ptSrc : new
Point2D.Double(x,y), true);
        }

Perhaps it would be reasonable to log a message or something indicating
that we have wandered outside the region of "clean invertability" for the
projection in question.

BTW, Andrea recently incorporate a change in orthodromicDistance that may
result in this assertion firing in cases where it did not before (but ought
to have).

Best regards,
Frank



On Tue, May 14, 2013 at 9:58 AM, Bernard Ladenthin <[email protected]>wrote:

> Hello,
>
> in our current project we use a maven setup to manage dependencies and
> run unit tests. At some point in development one of our tests stoped
> working (we are not sure at what point exactly, so we don't know what
> exactly changed). The specific thing failing is a transformation from
> cartesian to geographic coordinates using geotools (9 and 9.1 tried).
> The juicy part is that the same test works fine in eclipse. We heavily
> worked on analysing the problem and created a minimal example that shows
> the behavior we see where we are (reasonably) sure that it is not
> classpath problem.
>
> We have opened a detailed question on stackoverflow:
>
>
> http://stackoverflow.com/questions/16525478/testing-a-geo-transformation-fails-in-maven-works-in-eclipse
>
> Thank you in advance for any help you can provide.
>
> Kind regards, Bernard Ladenthin
>
> --
> Freundliche Grüße
>
> Bernard Ladenthin
>
> Hanowsteig 36a
> 12309 Berlin, Deutschland
>
> Telefon: +49 30 70550362
> Mobil: +49 176 21315746
> [email protected]
> http://bernard.ladenthin.net
>
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> GeoTools-Devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
>


-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam,
[email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to