You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sis.apache.org by Sisinda Dinusha <si...@gmail.com> on 2017/08/01 14:34:12 UTC
Re: Creation of Android branch on SVN repository
Hello Martin
> So the "provided" and "compile" scope of "android-test" and
> "com.android.support.test" are temporary, and the scope is expected to
> be changed to "test" when the instrumented testing issues will be resolved?
Yes it is.
> Looking at AffineTransform and Curve classes, the source code seems very
> similar to code from the JDK. Since JDK code is under GPL license, we
> can not create derivative work in Apache projects. Would it be possible
> to omit those classes?
Thank you for notifying this. I will look into this one.
> Regarding AffineTransform, Android has its own Affine
> class. What about creating an AffineTransform class as a wrapper around
the Android Affine class?
Did you mean the android.graphics.Matrix class? The reason I didn't use
the Matrix class is because it uses float instead of double and I was
not sure float would be sufficient for our task.
--
Sisinda
Re: Creation of Android branch on SVN repository
Posted by Martin Desruisseaux <ma...@geomatys.com>.
Le 01/08/2017 à 16:34, Sisinda Dinusha a écrit :
> Did you mean the android.graphics.Matrix class? The reason I didn't
> use the Matrix class is because it uses float instead of double and I
> was not sure float would be sufficient for our task.
>
Indeed it seems to be that class.
We do not need to port AffineTransform to Android since actually, it
does not provide any new functionality. The default implementations in
org.apache.sis.referencing.transform already do all the work needed. The
AffineTransform class in Apache SIS is used mostly for inter-operability
with Java2D - this goal obviously doesn't apply to the Android platform.
Rather than porting parts of Java2D, I think we should use the classes
provided by the Android platform. Indeed their precision are lower, but
if we need double precision we can use the other Apache SIS classes.
I recommend to define AffineTransform is a wrapper around the Android
Affine class for now. As a next step, we may reduce (but not eliminate)
usage of that class in the rest of Apache SIS for avoiding the precision
problem. We would keep that class for cases where we need
inter-operability with the Android graphic package.
Martin