public class

Latlon

extends Object
java.lang.Object
   ↳ com.esri.core.geometry.Latlon

Class Overview

Utility class providing convenience methods to create geometries from latitude and longitude coordinates.

Summary

Public Constructors
Latlon()
Public Methods
static Point[] createPoints(double[][] latlon)
Creates points from latitude and longitude coordinates.
static Polygon createPolygon(double[][] latlon)
Creates a polygon from latitude and longitude coordinates.
static Polyline createPolyline(double[][] latlon)
Creates a polyline from latitude and longitude coordinates.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Latlon ()

Public Methods

public static Point[] createPoints (double[][] latlon)

Creates points from latitude and longitude coordinates.

Parameters
latlon double: an array of one or more latitude and longitude pairs, e.g. {{37.761, -122.50}, {37.750, -122.474}, ...}. latitude and longitude are measured in degrees.
Returns
Point[] an array of points or null if the given latlon is null or empty.

public static Polygon createPolygon (double[][] latlon)

Creates a polygon from latitude and longitude coordinates.

Parameters
latlon double: an array of one or more latitude and longitude pairs, e.g. {{37.761, -122.50}, {37.750, -122.474}, ...}. latitude and longitude are measured in degrees.
Returns
Polygon a polygon or null if the given latlon is null or its length is less than 3.

public static Polyline createPolyline (double[][] latlon)

Creates a polyline from latitude and longitude coordinates.

Parameters
latlon double: an array of one or more latitude and longitude pairs, e.g. {{37.761, -122.50}, {37.750, -122.474}, ...}. latitude and longitude are measured in degrees.
Returns
Polyline a polyline or null if the given latlon is null or its length is less than 2.