We are also a bit confused about what the "startParam" field required
for the LineSegmentImpl constructor is for.
public LineSegmentImpl(DirectPosition one, DirectPosition two,
double startParam) {
this( new PointArrayImpl( one, two), startParam );
}
It inherits back from CurveSegmentImpl and CurveSegment which has these
comments about startparam:
* The start and end parameter of a Curve are always 0 and the arc
length of
* the curve respectively. For CurveSegments within a Curve, the
start and
* end parameters of the CurveSegment are equal to those of the
Curve where
* this segment begins and ends in the Segmentation association, so
that the
* startParam of any segment (except the first) is equal to the
endParam of
* the previous segment. If a GenericCurve is used for other
purposes, there
* shall be a restriction that the two parameters must differ by the arc
* length of the GenericCurve.
I guess we're just not sure exactly what this parameter is used for and
if it is even necessary.
Graham.
Jody Garnett wrote:
>I am going to just do a quick status update as I wait for a build.
>
>Graham and I have been working on unsupported/geometry in earnest and
>are finding it a little slow going. Writing test cases is hard due to
>two reasons:
>1) many constructs do not have equals/hashcode defined (CurveImpl etc...)
>- code that tests DirectPosition equality using equals is currently
>using the default Object.equals implementation - so we are unsure where
>== is intended and where equals is intended
>- code that test equality is running into the same problem as with JTS -
>geometry.equals( geometry2 ) is different from geometry.equals( (Object)
>geometry)
>- and so on ... basically tests are hard to write right now and GeoAPI
>gives little guidance at this time
>
>2) some constructors may attempt simplification (rather then just doing
>what they are told)
>- This seems to be the case with constructing a Ring (an attempt is made
>to simplify the curve)
>- On a related note Eclipse does a great job of generating equals and
>hashcode (much better then me actually).
>
>Cheers,
>Jody
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by DB2 Express
>Download DB2 Express C - the FREE version of DB2 express and take
>control of your XML. No limits. Just data. Click to get it now.
>http://sourceforge.net/powerbar/db2/
>_______________________________________________
>Geotools-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
>
--
Graham Davis
Refractions Research Inc.
[EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel