Re: Can't create GeodeticCalculator with Generic_2D
> I have a requirement to handle points in a relative metres domain -
> like a CAD drawing.
> I've found  the generic-2d CRS, which seems just like what I need.
> But, when I try to create a GeodeticCalculator for this CRS the
> constructor throws "Argument "ellipsoid" should not be null."
> This appears to get thrown because CRS.getEllipsoid(crs) is returning null.
> Do I need to include some other .jar file in order to support the
> Generic_2D CRS?
I am not sure I understand this right. You have a cartesian plane,
right? The GeodeticCalculator works on an ellipsoid, which a cartesian
plane doesn't have. To cite the javadoc of the generic_2d: "This CRS
is usefull as a kind of wildcard when no CRS were explicitly
Related to your problem, isn't translating/scaling through and
affinetransform enough to do your conversions?