Geodesy Map control


Purpose
This sample is a comprehensive application that demonstrates how to create and display GeoEllipse, GeoPolygon, and GeoPolyline objects in a Map control. These objects are spheroid geometries that can be displayed as GeoEllipseElement, GeoPolygonElement, and GeoPolylineElement graphic objects. This sample also shows how to determine geodesic, great circle, and rhumb line distances using IMeasurementTool.

How to use

See How to use ArcGIS samples for help on running the sample.

Data has been provided for your use with this sample. It can be found at <Your ArcGIS Developer Kit Install directory>/Samples/data/world/Continent.lyr.
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Run the application.
  2. To create a GeoEllipseElement: In the GeoEllipse frame, type the coordinates of the center point in the X and Y fields, type the values for the axis lengths in the X Axis and Y Axis fields, enter a rotation value (in degrees), and click the Draw GeoEllipse button.
  3. To create a GeoPolylineElement: In the GeoPolyline frame, select the type of GeoPolyline to create in the Type drop-down list, enter the coordinates (in decimal degrees) for the Start and End points in the X and Y fields, and click the Draw GeoLine button.
  4. To create a GeoPolygonElement: Right-click in the map to add the vertices of the GeoPolygon, then double-right-click to close the polygon.
  5. Use the Select tool to select the GeoElements and drag them to different locations on the map. The shapes of the graphics update when they are moved, and the geometry is recalculated based on the new location.

Additional information

Many of the ArcGIS Military Analyst and MOLE extension application programming interface (API) objects you have used in the past have equivalent or near equivalent objects in the ArcGIS 10 ArcObjects API. These new objects should now be used and do not require a Military Analyst extension or MOLE extension license. See Migrating from Military Analyst and MOLE for information on how to accomplish tasks in ArcGIS 10 that previously required the Military Analyst and MOLE APIs.


Download the files for Java
defensesolutions/MAGeodesy.java Contains the main class implementation.




Development licensing Deployment licensing
Engine Developer Kit: Military Analyst Engine Runtime: Military Analyst