[GRASS5] Re: [GRASSLIST:4921] Re: Problems with importing polar data

Morten Hulden morten at ngb.se
Sun Nov 10 09:04:38 EST 2002


On Sat, 9 Nov 2002, Eric G. Miller wrote:

> On Sun, Nov 10, 2002 at 07:02:44AM +0100, Morten Hulden wrote:
> 
> > also found out proj ignores lat_0 value in ups projection. so simplified
> > patch below. no need to ask for latitude at all and no need to touch the 
> > too-ugly-for-words g.setproj.
> > 
> > the patch is purely cosmetic to make PROJ_INFO display real values used by
> > proj - ups projection should work correctly as is, even if values 
> > PROJ_INFO are misleading.
> 
> Well, if we're not going to have all of the relevant parameters,
> (even if proj doesn't use them) then we should drop all but the
> required south yes/no "flag".  I'm ambivalent as to whether PROJ_INFO
> should carry more information than it really needs to.  UPS is much
> like UTM where little is needed to define the projection (discounting
> the ellipsoid/datum) because the coordinate system fairly well-defined.
> 
> UTM - North/South & Zone
> UPS - North/South

so if we don't want to ask for values that are fixed for UPS, and don't
want to diplay them in PROJ_INFO, then patch becomes:

--- geo_init.c  2002-06-16 17:29:25.000000000 +0200
+++ geo_init.c_new      2002-11-10 14:57:47.000000000 +0100
@@ -1148,14 +1148,6 @@
        TABLE[TPERS][HEIGH].def_exists = 1;
        TABLE[TPERS][HEIGH].deflt = 10000.0;

-       TABLE[UPS][LON0].ask = 1;
-       TABLE[UPS][LON0].def_exists = 1;
-       TABLE[UPS][LON0].deflt = 20.0;
-
-       TABLE[UPS][LAT0].ask = 1;
-       TABLE[UPS][LAT0].def_exists = 1;
-       TABLE[UPS][LAT0].deflt = 55.0;
-
        TABLE[UPS][SOUTH].ask = 1;

        TABLE[URM5][LON0].ask = 1;





More information about the grass-dev mailing list