[SPAM] - Re: [OSRS-PROJ] Error projecting Geographic to UPS - Email found in subject
Charles D. Van Dusen
charlie at im-design.net
Wed Jan 7 16:02:46 EST 2004
Hi Frank
Thanks for the reply.
This from the proj manual:
Universal Polar Stereographic (UPS) Projection
Usage and options: +proj=ups +south
The ups projection is a special case polar aspect of the Stereographic
projection
designed to cover the regions where 84 N or 80 S. The internal
Stereographic
parameters are fixed at k0 = 0.994, 0 = 0, x0 = y0 = 2, 000, 000m, and
0 is either 90 N when +south is not specified or 90 S when +south is
specified.
Elliptical parameters must be used (either proj default or entered as
option). Also
see the Universal Transverse Mercator (utm) projection (p. 12).
So, I presumed that using the option -o"proj=ups" would suffice.
Could you clarify?
Thanks
Charlie
-----Original Message-----
From: owner-osrs-proj at remotesensing.org
[mailto:owner-osrs-proj at remotesensing.org] On Behalf Of Frank Warmerdam
Sent: Wednesday, January 07, 2004 3:29 PM
To: osrs-proj at remotesensing.org
Subject: [SPAM] - Re: [OSRS-PROJ] Error projecting Geographic to UPS -
Email found in subject
Charles D. Van Dusen wrote:
> Greetings
>
> I am having a problem projecting a shapefile of canada from geographic
> to UPS:
>
>
> P:\Data\maproom.psu.edu>shpproj canada.shp projections\ups\canada.shp
> -i=geographic -o"proj=ups"
>
>
> P:\Data\maproom.psu.edu>
>
> The program appears to complete without error, but the resulting .prj
> file has a single line of "proj=geographic" and the output shape file
> is exactly the same as the input shape file.
>
> So, in stepping though the debugger, the problem appears to be that
> the SHPSetProjection call is returning 0 for the new_prj. Further, the
> call to pj_init in shpgeo.c is returning 0 as well.
>
> My environ:
> Windows XP
> shapelib-1.2.10
> proj cvs as of December 2003
Charlie,
My understanding is that there are four UPS zones, and you aren't
indicating which to use. I would gather that the pj_init() is therefore
failing because it doesn't have all the required arguments.
I haven't dug into the PROJ docs to find what the correct formulation is
for UPS, but I presume that is the issue.
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
----------------------------------------
PROJ.4 Discussion List
See http://www.remotesensing.org/proj for subscription, unsubscription
and other information.
----------------------------------------
PROJ.4 Discussion List
See http://www.remotesensing.org/proj for subscription, unsubscription
and other information.
More information about the Proj
mailing list