[Proj] lat/long format question

Frank Warmerdam warmerdam at pobox.com
Fri Oct 30 08:36:48 PDT 2009


Roger Oberholtzer wrote:
  > Of course I did this. I should have pointed out that I am doing this
> from the C API. So, I send floating point numbers to pj_transform().
> None of the various markups allowed on text input apply at this point.
> 
> I can of course change the representation before calling pj_transform().
> And I expect this will be the method I wind up using. But in my code,
> and for simplicity and consistency, a low-level solution is best. So, I
> am just curious if pj_transform() can be told to expect dd.dddd or
> ddmm.mmmm. 

Roger,

No, it cannot.  Angular values need to be decimal radians at this point.

 > Perhaps as an option to pj_init_plus() along the line of
> "+proj=latlong".

I'm not keen in adding such interpretation at this level.

> I am trying to sort out my options. It would be bad if I re-did
> something pj_transform() can already do. So, I am just checking first.
> 
> To be honest, I would not think pj_transform() should do this. It would
> make most sense if it expected one representation, and left any fiddling
> to the caller.
> 
> But I had to ask. The list has been too quite :)

:-)

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Proj mailing list