Select to view content in your preferred language

com.esri.core.geometry.Latlon

3436
2
11-06-2013 08:01 AM
PeterParker2
Deactivated User
I am trying to use the Latlon class but I can't seem to locate it in the 10.2 SDK API.  Which jar is it suppose to be in?

Thanks,
Peter
0 Kudos
2 Replies
EliseAcheson1
Deactivated User
Hi,

What are you trying to achieve?
The geometry object (Point, Polygon, etc.) classes and the GeometryEngine class allow you to work with latitude and longitude coordinates, or geometries in other units, as geometry objects aren't bound to a particular spatial reference - it depends what the spatial reference of the map/layer they are being added to is. For example GeometryEngine has a project method which takes a longitude, latitude, and output spatial reference, returning a point in the units of the output spatial reference, for dealing with geometries which have been defined using latitude longitude coordinates.

~elise
0 Kudos
PeterParker2
Deactivated User
Hello Elise, pretty quite around these parts.  🙂

The long and short of it is, I am building these geometries so I can produce the ESRI JSON needed to make a call to our ArcGIS server REST endpoints (addFeatures specifically).  I did find a snippet of code to do this but is rather convoluted.  The Latlon class was perfect but is missing from my installation of the SDK (in the jars).

Peter
Hi,

What are you trying to achieve?
The geometry object (Point, Polygon, etc.) classes and the GeometryEngine class allow you to work with latitude and longitude coordinates, or geometries in other units, as geometry objects aren't bound to a particular spatial reference - it depends what the spatial reference of the map/layer they are being added to is. For example GeometryEngine has a project method which takes a longitude, latitude, and output spatial reference, returning a point in the units of the output spatial reference, for dealing with geometries which have been defined using latitude longitude coordinates.

~elise
0 Kudos