Jump to main content.


Convert Lat/Long Service

Description


Utility function for converting a point's geographic location latitude and longitude from degrees, minutes, and seconds to decimal degrees. If a horizontal datum value other than NAD83 is given, then the returned latitude and longitude will be converted to NAD83. 

Input

Parameters

Parameter Datatype Required Description
latitude_degrees Number True Integer value
latitude_minutes Number True Integer value
latitude_seconds Number True Integer value
longitude_degrees Number True Integer value
longitude_minutes Number True Integer value
longitude_seconds Number True Integer value
horizontal_datum String True Name of the datum used (NAD27, NAD83, WGS84)

SOAP Service Notes

None at this time.

Output

UML Diagram

VALID_LAT_LONG UML

Return Object

valid_lat_long object

Property Datatype Description
latitude Number Latitude results of the conversion in decimal degrees
longitude Number Longitude results of the conversion in decimal degrees
message String conversion message

SOAP Service Notes

None at this time.

Web Service (SOAP)

Resource Location
Runtime Endpoint http://iaspub.epa.gov/WATERSWebServices/SpatialServices
WSDL Endpoint http://iaspub.epa.gov/WATERSWebServices/SpatialServices?WSDL

Sample SOAP Request (Oracle 10.2.0.2 OC4J):

<SOAP-ENV:Envelope
   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:ns1="http://iaspub.epa.gov/WATERSWebServices/OWServices"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
>
  <SOAP-ENV:Body>
    <ns1:convertLatLong>
      <latitude_degrees xsi:type="xsd:decimal">45</latitude_degrees>
      <latitude_minutes xsi:type="xsd:decimal">25</latitude_minutes>
      <latitude_seconds xsi:type="xsd:decimal">24</latitude_seconds>
      <longitude_degrees xsi:type="xsd:decimal">-91</longitude_degrees>
      <longitude_minutes xsi:type="xsd:decimal">-24</longitude_minutes>
      <longitude_seconds xsi:type="xsd:decimal">-56</longitude_seconds>
      <horizontalDatum xsi:type="xsd:string">WGS84</horizontalDatum>
    </ns1:convertLatLong>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Sample Soap Response:

<SOAP-ENV:Envelope
   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
  <SOAP-ENV:Body>
    <ns1:convertLatLongResponse
       xmlns:ns1="http://iaspub.epa.gov/WATERSWebServices/OWServices"
       SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    >
      <return
         xmlns:ns2="http://waters9i-waters/SpatialServices.xsd"
         xsi:type="ns2:waters9i_waters_ValidLatLongUser"
      >
        <longitude xsi:type="xsd:decimal">-90.584444</longitude>
        <latitude xsi:type="xsd:decimal">45.4233340009431</latitude>
        <message xsi:type="xsd:string">Latitude and longitude were transformed from WGS84 to the North American Datum of 1983</message>
      </return>
    </ns1:convertLatLongResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Database Service

Database Instance Schema Resource
WATERS10 ow_service waters.spatial_services.convert_lat_long

Changelog

Version: 1.0 - Released: 2006

 


Local Navigation


Jump to main content.