My Oracle Support Banner

DD Conversion To Degrees Minutes Seconds Rounding Is Incorret (Doc ID 2642122.1)

Last updated on FEBRUARY 24, 2020

Applies to:

Oracle Enterprise Asset Management - Version 12.1.3 and later
Information in this document applies to any platform.

Symptoms

When attempting to use the Oracle Genocode API to convert the Latitude DD format to Degrees, Minutes, and seconds,
the following error occurs.

ERROR

When the conversion approaches the change from one degree to another, the seconds calculation is displayed in 60 seconds

Latitude DD value = -73.73333277000

Is converted on oracle to DMS :
Degree = 73
Minutes = 43

Seconds = 60 <<<<<< incorrect


Direction = O

The correct conversion is
Degree = 73
Minutes = 44
Seconds = 0
Direction = O


STEPS

The issue can be reproduced at will with the following steps:

Step 1 : loading Data from csv file to staging table
  staging table with below columns (same as provided in the data file) and inserted the data: from CSV to staging table

Step 2 : insert data from staging table to oracle interface Table CSI_II_GEOLOC_INTERFACE

Step 3 : call standard API CSI_GIS_INSTANCE_LOC_PUB.IMPORT_INSTANCE_GEO_LOCATION and the data was inserted successfully in base table CSI_II_GEOLOCATIONS:
  SELECT * FROM CSI_II_GEOLOCATIONS where creation_date like SYSDATE.
  shows values
  Instance_id INST_LATITUDE INST_LONGITUDE
  1499235 45.581632 -73.705214

Step 4: Form displays
  Degrees Minutes Seconds
  Latitude 45 34 29.18
  Longitude 73 43 60

  


Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.