LibCapy - geomap

GeoMap class.

Macros:

Enumerations:

None.

Typedefs:

Type for latitude (north-south position in degree from the equator) and longitude (east-west position in degree from a reference meridian)

Struct CapyGeoMapCoord :

Struct CapyGeoMapCoord's properties:

Struct CapyGeoMapCoord's methods:

None.

Struct CapyGeoMap :

Struct CapyGeoMap's properties:

Image of the map (default: none). Assuming North at the top, South at the bottom, West at the left, East at the right, Mercator projection.

Range of latitude and longitude (default: [0, 0])

Struct CapyGeoMap's methods:

Destructor

Load the image of the map from a path.

Input argument(s):

path: the path to the image

Output and side effect(s):

The image is loaded. If a previous image existed it is freed.

Set the latitude range.

Input argument(s):

range: the range

Output and side effect(s):

The latitude range is updated.

Set the longitude range.

Input argument(s):

range: the range

Output and side effect(s):

The longitude range is updated.

Get the position in the image for a given latitude and longitude

Input argument(s):

coord: the latitude and longitude

Output and side effect(s):

Return a CapyImgPos.

Get the latitude and longitude for a given position in the image

Input argument(s):

pos: the position in the image

Output and side effect(s):

Return a CapyGeoMapCoord.

Functions:

Create a CapyGeoMap

Output and side effect(s):

Return a CapyGeoMap

Allocate memory for a new CapyGeoMap and create it

Output and side effect(s):

Return a CapyGeoMap

Exception(s):

May raise CapyExc_MallocFailed.

Free the memory used by a CapyGeoMap* and reset '*that' to NULL

Input argument(s):

that: a pointer to the CapyGeoMap to free

2024-03-20
in LibCapy,
23 views
Copyright 2021-2024 Baillehache Pascal