GeoConvert Class
Summary: Converts coordinates to/from the different formats.
Module: aspose.gis
Full Name: aspose.gis.GeoConvert
Aspose.PSD Version: 25.9.0
Methods
| Name | Description |
|---|---|
| as_point_text(latitude, longitude, format) | Returns the calculated position as a string in the specified format. |
| as_point_text(point, format) | Returns the calculated position as a string in the specified format. |
| parse_point_text(text) | Converts the string that contains сoordinates to IPoint object. |
| try_parse_point_text(text, point) | Converts the string that contains сoordinates to IPoint object. A return value indicates whether the conversion succeeded or failed. |
Method: as_point_text(latitude, longitude, format) [static]
as_point_text(latitude, longitude, format)
Returns the calculated position as a string in the specified format.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| latitude | double | Position latitude. |
| longitude | double | Position longitude. |
| format | PointFormats | Format of the result. |
Returns
| Type | Description |
|---|---|
| string | Position as string. |
Method: as_point_text(point, format) [static]
as_point_text(point, format)
Returns the calculated position as a string in the specified format.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| point | IPoint | IPoint object. |
| format | PointFormats | Format of the result. |
Returns
| Type | Description |
|---|---|
| string | Position as string. |
Method: parse_point_text(text) [static]
parse_point_text(text)
Converts the string that contains сoordinates to IPoint object.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| text | string | A string that contains coordinates to convert. The string should contain both coordinate latitude and longitude. Coordinates should be separated by whitespace, by comma or by semicolon. |
Returns
| Type | Description |
|---|---|
| IPoint | IPoint object with coordinates that are equivalent to the input string. |
Method: try_parse_point_text(text, point) [static]
try_parse_point_text(text, point)
Converts the string that contains сoordinates to IPoint object. A return value indicates whether the conversion succeeded or failed.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| text | string | A string that contains coordinates to convert. The string should contain both coordinate latitude and longitude. Coordinates should be separated by whitespace, by comma or by semicolon. |
| point | IPoint[] | When this method returns, contains the IPoint object with parsed coordinates, if the conversion succeeded, or null if the conversion failed. |
Returns
| Type | Description |
|---|---|
| bool | True if text was parsed successfully, otherwise False. |