bugGNU Octave - Bugs: bug #61086, [octave forge] (octproj) UTM zone...

 
 

bug #61086: [octave forge] (octproj) UTM zone needs to be specified with PROJ 8.1.1RC1

Submitted by:  Rafael Laboissiere <rlaboiss>
Submitted on:  Fri 27 Aug 2021 07:49:41 AM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  other Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 30 Aug 2021 05:21:51 PM UTC, comment #1: 

cc-ing maintainer

Philip Nienhuis <philipnienhuis>
Project Member
Fri 27 Aug 2021 07:49:41 AM UTC, original submission:  

When the octproj package is built against the release candidate 8.1.1RC1 of the PROJ library, the first unit test in inst/op_transform.m file fails with the following error message:

octave:1> pkg load octproj
octave:2> test op_transform
proj_create: Invalid zone number
***** test
  [x,y,h,t]=op_transform(-6,43,1000,10,...
                         '+proj=latlong +ellps=GRS80',...
                         '+proj=utm +lon_0=3w +ellps=GRS80');
  [lon,lat,H,T]=op_transform(x,y,h,t,'+proj=utm +lon_0=3w +ellps=GRS80',...
                           '+proj=latlong +ellps=GRS80');
  assert(x,255466.98,1e-2)
  assert(y,4765182.93,1e-2)
  assert(h,1000.0,1e-15)
  assert(lon,-6,1e-8)
  assert(lat,43,1e-8)
  assert(H,1000.0,1e-15)
  assert(T,10.0,1e-15)
!!!!! test failed

        In function op_transform:
        In function _op_transform:
        Error in definition parameters
        +proj=latlong +ellps=GRS80
        +proj=utm +lon_0=3w +ellps=GRS80
        Unknown error (code 4096)

It seems that the UTM zone must be explicitly specified when option +proj=utm is used. The patch attached to this bug report fixes the problem. I empirically discovered that the correct value for the UTM zone is 30, hence the added options +zone=30 in the patch. It seems that this value (30) was taken as default for versions of PROJ previous to 8.1.1.

Rafael Laboissiere <rlaboiss>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #51825:  specify-utm-zone.patch added by rlaboiss (7KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by philipnienhuis
  • -email is unavailable- added by rlaboiss (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-08-30 philipnienhuis Carbon-Copy- => Added jgpallero@users.sourceforge.net
    2021-08-27 rlaboiss Attached File- => Added specify-utm-zone.patch, #51825

    Back to the top


    Powered by Savane 3.6