On Mon, Aug 22, 2011 at 1:44 PM, Jody Garnett <[email protected]> wrote:
> I am pretty sure I am just going off crazy checkout land :(  So rather than
> a bug report I am just going to ask for help ...
> I am getting the following error out
> of /trunk/modules/plugin/epsg-hsql/target/surefire-reports
> Tests run: 23, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.088 sec
> <<< FAILURE!
> testWestDirection(org.geotools.referencing.CRSTest)  Time elapsed: 0.026 sec
>  <<< ERROR!
> org.opengis.referencing.FactoryException: Unknow axis direction: "South
> along 10<A1>W".
>         at
> org.geotools.referencing.factory.epsg.DirectEpsgFactory.createCoordinateSystemAxis(DirectEpsgFactory.java:1692)
>         at
> org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateSystemAxis(BufferedAuthorityFactory.java:740)
>         at
> org.geotools.referencing.factory.epsg.DirectEpsgFactory.createAxesForCoordinateSystem(DirectEpsgFactory.java:1744)
>         at
> org.geotools.referencing.factory.epsg.DirectEpsgFactory.createCoordinateSystem(DirectEpsgFactory.java:1790)
>         at
> org.geotools.referencing.factory.AbstractAuthorityFactory.createCartesianCS(AbstractAuthorityFactory.java:380)
>         at
> org.geotools.referencing.factory.BufferedAuthorityFactory.createCartesianCS(BufferedAuthorityFactory.java:593)
>         at
> org.geotools.referencing.factory.epsg.DirectEpsgFactory.createCoordinateReferenceSystem(DirectEpsgFactory.java:1945)
>         at
> org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:782)
>         at
> org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:800)
>         at
> org.geotools.referencing.factory.FallbackAuthorityFactory.createCoordinateReferenceSystem(FallbackAuthorityFactory.java:639)
>         at
> org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:800)
>         at
> org.geotools.referencing.factory.ThreadedAuthorityFactory.createCoordinateReferenceSystem(ThreadedAuthorityFactory.java:730)
>         at
> org.geotools.referencing.DefaultAuthorityFactory.createCoordinateReferenceSystem(DefaultAuthorityFactory.java:179)
>         at org.geotools.referencing.CRS.decode(CRS.java:488)
> So am I missing some magic encoding settings? I am using "git svn" for this
> checkout and it does not show any local modifications being made...

Yet something is wrong in the checkout. On linux this does not happen,
maybe it's a windows/osx thing?
That <A1> should be the degree symbol (little circle, °, not sure if
you can see the symbol on your system).
Now, the thing I don't know if it's the HSQL db that's messing up with
the string or if it's the checkout
that's broken.

If the checkout is ruined you probably have the following file with
differences from svn:
http://svn.codehaus.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/cs/DirectionAlongMeridian.java

As far as I can see using the browser the file is corrupted a bit
already, in every place where there is a degree symbol
we have ° instead. Don't know why though, they are not there in any
of my checkouts (I have a few of them
on different machines, but they are all Ubuntu one).

The other possibility is that the direction comes out broken from the
db itself, in that case you can confirm that
by getting the direction value using the debugger from:
org.geotools.referencing.factory.epsg.DirectEpsgFactory.createCoordinateSystemAxis(DirectEpsgFactory.java:1692)
and looking at the value of orientation.
I've tried doing that, on my system the direction in that specific
test is "South along 10°W" (with the degree symbol
as expected, just saying since I'm not sure you'll be able to see it
on your system).

Btw, here the $LANG variable evaluates to:

$ echo $LANG
it_IT.UTF-8

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to