Ticket #58 (closed defect: worksforme)

Opened 4 years ago

Last modified 4 years ago

Incorrect values returned from pj_fwd

Reported by: sarmaa Owned by: warmerdam
Priority: major Milestone:
Component: default Version: 4.7.0
Keywords: pj_fwd Cc:

Description

I am using the libproj created from proj-4.7.0.tar to map a grid covering the world in a visulization software. I am using the orthographic projection. The grid is made of triangular elements of various sizes (unstructured triangular mesh). For the most part the library works ok. However, for segments spanning the horizon, the point that is invisible (just past the horizon) returns a viable coordinate pair that is completely wrong. The result is abnormal spikes from around the edge of the globe. I will try to attach a gif image to this message. In this example, I have filtered most of the spikes using some cumbersome logic. But still, if you look across Greenland you will see what I mean. Is there a routine to test whether a point is visible or invisible (on the other side of the sphere)?

Attachments

global.gif Download (35.0 KB) - added by sarmaa 4 years ago.

Change History

Changed 4 years ago by sarmaa

Changed 4 years ago by sarmaa

  • status changed from new to closed
  • resolution set to worksforme

I withdraw this ticket. I found the error. It was in the calling routine. One of the values was declared as the wrong type and no type conversion was done. PROJ works like a charm. I apologize for any inconvenience my ticket caused.

Note: See TracTickets for help on using tickets.