Re: [OpenMap Users] return type of projection.inverse() ?

From: Don Dietrick <dfdietrick_at_gmail.com>
Date: Thu, 1 Mar 2012 16:52:19 -0500

Hi Frederick,

Thanks - regarding the inverse function returning a Point2D object, there may be some projections that do not return a LatLonPoint. The Cartesian projection, for instance, doesn't. GeoProj Projections will return a LatLonPoint from the inverse method.

If you have a generic Projection handle on a projection object and need a LatLonPoint without scoping it, there's an inverse() method that allows you to provide the return object you want. You can provide a LatLonPoint there. If you have a GeoProj handle to a projection object, the inverse method will return a LatLonPoint.

Hope this helps,

Don


On Mar 1, 2012, at 1:42 PM, Kuhl, Frederick S. wrote:

> I applaud many of the changes in OpenMap 5.0. The redesign of OMGraphic and OMGraphicList, for instance, is well done.
>
> But why does projection.inverse() return a Point2D rather than a LatLonPoint? Yes, I know it returns <T extends Point2D>, which is even more confusing. The decision to have LatLonPoint extend Point2D appears to be a mistake. They really are different things.

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Mar 01 2012 - 16:58:57 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:10 EDT