vectormap
Device proxies

The vectormap proxy provides an interface to a map of geometric features. More...

## Classes

struct | playerc_vectormap_t
| Vectormap proxy. More...

## Functions

PLAYERC_EXPORT playerc_vectormap_t * | playerc_vectormap_create (playerc_client_t *client, int index)
| Create a vectormap proxy. More...
PLAYERC_EXPORT void | playerc_vectormap_destroy (playerc_vectormap_t *device)
| Destroy a vectormap proxy. More...
PLAYERC_EXPORT int | playerc_vectormap_subscribe (playerc_vectormap_t *device, int access)
| Subscribe to the vectormap device. More...
PLAYERC_EXPORT int | playerc_vectormap_unsubscribe (playerc_vectormap_t *device)
| Un-subscribe from the vectormap device. More...
PLAYERC_EXPORT int | playerc_vectormap_get_map_info (playerc_vectormap_t *device)
| Get the vectormap metadata, which is stored in the proxy. More...
PLAYERC_EXPORT int | playerc_vectormap_get_layer_data (playerc_vectormap_t *device, unsigned layer_index)
| Get the layer data by index. More...
PLAYERC_EXPORT int | playerc_vectormap_write_layer (playerc_vectormap_t *device, const player_vectormap_layer_data_t *data)
| Write layer data. More...
PLAYERC_EXPORT void | playerc_vectormap_cleanup (playerc_vectormap_t *device)
| Clean up the dynamically allocated memory for the vectormap. More...
PLAYERC_EXPORT uint8_t * | playerc_vectormap_get_feature_data (playerc_vectormap_t *device, unsigned layer_index, unsigned feature_index)
| Get an individual feature as a WKB geometry. More...
PLAYERC_EXPORT size_t | playerc_vectormap_get_feature_data_count (playerc_vectormap_t *device, unsigned layer_index, unsigned feature_index)

## Detailed Description

The vectormap proxy provides an interface to a map of geometric features.

## Function Documentation

PLAYERC_EXPORT void playerc_vectormap_cleanup | ( | playerc_vectormap_t * | device | ) |

Clean up the dynamically allocated memory for the vectormap.

PLAYERC_EXPORT playerc_vectormap_t* playerc_vectormap_create | ( | playerc_client_t * | client,
|  | int | index
| ) |  |

Create a vectormap proxy.

PLAYERC_EXPORT void playerc_vectormap_destroy | ( | playerc_vectormap_t * | device | ) |

Destroy a vectormap proxy.

PLAYERC_EXPORT uint8_t* playerc_vectormap_get_feature_data | ( | playerc_vectormap_t * | device,
|  | unsigned | layer_index,
|  | unsigned | feature_index
| ) |  |

Get an individual feature as a WKB geometry.

Must only be used after a successful call to playerc_vectormap_get_layer_data. The WKB geometry is owned by the proxy, duplicate it if it is needed after the next call to get_feature_data.

PLAYERC_EXPORT int playerc_vectormap_get_layer_data | ( | playerc_vectormap_t * | device,
|  | unsigned | layer_index
| ) |  |

Get the layer data by index.

Must only be used after a successfull call to playerc_vectormap_get_map_info.

PLAYERC_EXPORT int playerc_vectormap_get_map_info | ( | playerc_vectormap_t * | device | ) |

Get the vectormap metadata, which is stored in the proxy.

PLAYERC_EXPORT int playerc_vectormap_subscribe | ( | playerc_vectormap_t * | device,
|  | int | access
| ) |  |

Subscribe to the vectormap device.

PLAYERC_EXPORT int playerc_vectormap_unsubscribe | ( | playerc_vectormap_t * | device | ) |

Un-subscribe from the vectormap device.

PLAYERC_EXPORT int playerc_vectormap_write_layer | ( | playerc_vectormap_t * | device,
|  | const player_vectormap_layer_data_t * | data
| ) |  |

Write layer data.

Last updated 12 September 2005 21:38:45