You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There appear to be two forward() and inverse() methods in Proj.4. One is built into the projections, and appears to transform those projections from and to WGS84 Geodetic. These should probably be named fromWgs94() and toWgs84().
Then there is a forward and inverse at the proj4 command level. This takes any projection and turns it into another projection. forward() goes in one direction and inverse() goes in the other direction. it is not clear why there are these two directions, since the same thing can be achieved using a one-direction transform() and just swap the parameters over to go the other direction.
If only one projection is supplied, then the from projection is assumed to be WGS84 Latlong. I suspect the two methods are there so you know whether the single projection supplied is to be treated as the "from" or the "to". However, since we know what projection the point being converted is, that alone may give us that information.
The text was updated successfully, but these errors were encountered:
The "forward" and "inverse" names came from the original projection maths papers, so we'll keep those names for the projection classes at least. At the higher level, we'll find some better names, since there is no "forward" or "inverse" when mapping from one projection to another - they are simply two arbitrary projections you are mapping between.
There appear to be two forward() and inverse() methods in Proj.4. One is built into the projections, and appears to transform those projections from and to WGS84 Geodetic. These should probably be named
fromWgs94()
andtoWgs84()
.Then there is a forward and inverse at the
proj4
command level. This takes any projection and turns it into another projection.forward()
goes in one direction andinverse()
goes in the other direction. it is not clear why there are these two directions, since the same thing can be achieved using a one-directiontransform()
and just swap the parameters over to go the other direction.If only one projection is supplied, then the from projection is assumed to be WGS84 Latlong. I suspect the two methods are there so you know whether the single projection supplied is to be treated as the "from" or the "to". However, since we know what projection the point being converted is, that alone may give us that information.
The text was updated successfully, but these errors were encountered: