|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConversionNotation
Provides access to functions that convert to and from various geographic string notations.
IConversionNotation contains methods for converting both projected and geographic (lat/lon) coordinates to and from various string notations. The notations include United States National Grid (USNG), Universal Transverse Mercator (UTM), GEOREF, and GARS. It's also possible to use decimal degrees, degrees decimal minutes, and degrees minutes seconds.
Method Summary | |
---|---|
String |
getDDFromCoords(int precision)
Returns the decimal degrees description of a point. |
String |
getDDMFromCoords(int precision)
Returns the degrees decimal minutes description of a point. |
String |
getDMSFromCoords(int precision)
Returns the degrees/minutes/seconds description of a point. |
String |
getGARSFromCoords()
Returns the GARS description of a point. |
String |
getGeoRefFromCoords(int numDigits,
boolean numericRounding)
Returns the GeoRef description of a point. |
String |
getUSNGFromCoords(int numDigits,
boolean numericRounding,
boolean addSpaces)
Returns the USNG description of a point. |
String |
getUTMFromCoords(int utmOptions)
Returns the UTM description of a point. |
void |
putCoordsFromDD(String dDString)
Creates the coordinates of a point from the decimal degrees description. |
void |
putCoordsFromDDM(String dDMString)
Creates the coordinates of a point from the degrees decimal minutes description. |
void |
putCoordsFromDMS(String dMSString)
Creates the coordinates of a point from the degrees/minutes/seconds description. |
void |
putCoordsFromGARS(int mode,
String gARSString)
Creates the coordinates of a point from the GARS description. |
void |
putCoordsFromGeoRef(String geoRefString)
Creates the coordinates of a point from the GeoRef description. |
void |
putCoordsFromUSNG(String uSNGString)
Creates the coordinates of a point from the USNG description. |
void |
putCoordsFromUTM(int utmOptions,
String uTMString)
Creates the coordinates of a point from the UTM description. |
Methods inherited from interface com.esri.arcgis.geometry.IConversionMGRS |
---|
createMGRS, putCoordsFromMGRS |
Method Detail |
---|
String getUSNGFromCoords(int numDigits, boolean numericRounding, boolean addSpaces) throws IOException, AutomationException
The GetUSNGFromCoords method returns a USNG string. The United States National Grid (USNG) is a simplified version of the Military Grid Reference System (MGRS) and is an alphanumeric way to represent a location. The Point must have a spatial reference that includes a coordinate system. It does not have to a be a geographic coordinate system. The precision parameter controls the length of the string. The sample USNG string below has a precision of 5 which means it is to the closest meter. The geographic coordinates are using the WGS 1984 geographic coordinate system. The first two numbers in the string are the UTM zone number.
latitude = 40.0
longitude = -100.0
USNG = 14TMK1463928236
numDigits
- The numDigits (in)numericRounding
- The numericRounding (in)addSpaces
- The addSpaces (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getUTMFromCoords(int utmOptions) throws IOException, AutomationException
utmOptions
- A com.esri.arcgis.geometry.esriUTMConversionOptionsEnum constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getGARSFromCoords() throws IOException, AutomationException
The GetGARSFromCoords method returns an alphanumeric string from a Point that has either geographic or projected coordinates. The Point must have a spatial reference that has a defined coordinate system. The Global Area Reference System (GARS) is used for military referencing. More information is at http://earth-info.nga.mil/GandG/coordsys/grids/gars.html
longitude = -100.0
latitude = 40.0
GARS = 161LW37
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getGeoRefFromCoords(int numDigits, boolean numericRounding) throws IOException, AutomationException
The GetGeoRefFromCoords method returns an alphanumeric string from a Point that has either geographic or projected coordinates. The Point must have a spatial reference that has a defined coordinate system. The World Geographic Reference System (GEOREF) is used for military referencing. More information is at http://earth-info.nga.mil/GandG/coordsys/grids/referencesys.html.
longitude = -100.0
latitude = 40.0
Georef = FJFL000000 (precision is 3 which determines a location to 0.1 minute)
numDigits
- The numDigits (in)numericRounding
- The numericRounding (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDDFromCoords(int precision) throws IOException, AutomationException
The GetDDFromCoords method returns a formatted string from a Point that has either geographic or projected coordinates. The Point must have a spatial reference that has a defined coordinate system. The returned values are in decimal degrees and have direction (hemisphere) information. The precision parameter controls the number of decimal places used in the output values. The sample output below has a precision of 6.
longitude = -100.0
latitude = 40.0
Output = "40.000000N 100.000000W"
precision
- The precision (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDDMFromCoords(int precision) throws IOException, AutomationException
The GetDDMFromCoords method returns a formatted string from a Point that has either geographic or projected coordinates. The Point must have a spatial reference that has a defined coordinate system. The returned values are in degrees and decimal minutes and have direction (hemisphere) information. The precision parameter controls the number of decimal places used in the output decimal minute values. The sample output below has a precision of 4.
longitude = -100.0
latitude = 40.0
output = "40 00.0000N 100 00.0000W"
precision
- The precision (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDMSFromCoords(int precision) throws IOException, AutomationException
The GetDMSFromCoords method returns a formatted string from a Point that has either geographic or projected coordinates. The Point must have a spatial reference that has a defined coordinate system. The returned values are in degrees minutes and decimal seconds and have direction (hemisphere) information. The precision parameter controls the number of decimal places used in the output second values. The sample below has a precision of 4.
longitude = -100.0
latitude = 40.0
Output = "40 00 00.0000N 100 00 00.0000W"
precision
- The precision (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void putCoordsFromUSNG(String uSNGString) throws IOException, AutomationException
uSNGString
- The uSNGString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void putCoordsFromUTM(int utmOptions, String uTMString) throws IOException, AutomationException
utmOptions
- A com.esri.arcgis.geometry.esriUTMConversionOptionsEnum constant (in)uTMString
- The uTMString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void putCoordsFromGARS(int mode, String gARSString) throws IOException, AutomationException
mode
- A com.esri.arcgis.geometry.esriGARSModeEnum constant (in)gARSString
- The gARSString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void putCoordsFromGeoRef(String geoRefString) throws IOException, AutomationException
geoRefString
- The geoRefString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void putCoordsFromDD(String dDString) throws IOException, AutomationException
dDString
- The dDString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void putCoordsFromDDM(String dDMString) throws IOException, AutomationException
dDMString
- The dDMString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void putCoordsFromDMS(String dMSString) throws IOException, AutomationException
dMSString
- The dMSString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |