[Proj] Novice Examples?

Michael Speth spethm at landcareresearch.co.nz
Thu Oct 6 16:04:30 PDT 2011


Thank you Frank for helping me with the initial parameters for testing 
Spheroids!  I am now trying to test Ellipsoidals  and I have a problem 
with the parameters I am passing proj.4.

Here are the arguments that I am trying to use:

    ./proj +proj=cea +lon_0=0 +e=0.5 +R_A=1 +ellps=WGS84 -E <<EOF
    0 0
    EOF

And the resulting output:

    Rel. 4.7.1, 23 September 2009
    <lt-proj>:
    projection initialization failure
    cause: invalid boolean param argument
    program abnormally terminated

Anyone know what I've done incorrectly?

Thank you for your help.

On 05/10/11 12:25, Frank Warmerdam wrote:
> On Tue, Oct 4, 2011 at 4:05 PM, Michael Speth
> <spethm at landcareresearch.co.nz>  wrote:
>> Greetings,
>>    I am a new proj.4 user and I would like to try some simple examples.
>> I have been reading the user doc as well as the update (proj.4.3.pdf);
>> however, I have been unsuccessful with executing the examples listed.
>>
>> ---- [ System Information] ----
>> System: Ubuntu 11.04 64-bit
>> Kernel: 2.6.38-11-generic
>> Proj.4 Version: 4.7.0 compiled from tarball
>>
>> Here are two examples that show my problem:
>> ---- [Example 1] ----
>> /opt/proj-4.7.0/src$ ./proj +proj=poly +lon_0=-66 +lat_0=40 -v
>> Rel. 4.7.1, 23 September 2009
>> <lt-proj>:
>> projection initialization failure
>> cause: major axis or radius = 0 or not given
>> program abnormally terminated
>>
>> ---- [Example 2] -----
>> /opt/proj-4.7.0/src$ ./proj +proj=poly +lon_0=-60 -E<<EOF
>>   >  # sample points
>>   >  65W 43d15N
>>   >  -55 37.33
>>   >  EOF
>> Rel. 4.7.1, 23 September 2009
>> <lt-proj>:
>> projection initialization failure
>> cause: major axis or radius = 0 or not given
>> program abnormally terminated
>> ---------------------------
>>
>> It seems that I am not providing the radius or major axis.  Is this
>> correct, if so, how do I provide this information?
> Michael,
>
> You can specify the earth model several ways, but adding +ellps=WGS84
> is a fairly simple way.
>
> eg.
>   ./proj +proj=poly +lon_0=-60 +ellps=WGS84 -E<<EOF
>
> Note that PROJ usually picks up the default ellipsoid from an initialization
> file but that doesn't work if you are running proj locally instead of first
> installing it.  The main thing fetched from the defaults initialization file
> is a default ellipsoid.
>
> Best regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20111007/4fc80433/attachment.html>


More information about the Proj mailing list