LandmarkStore

class LandmarkStore(address: Long) : GemNativeObj

Landmark store object.

Constructors

Link copied to clipboard
constructor(address: Long)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

All categories.

Link copied to clipboard
val id: Int

ID of the landmark store.

Link copied to clipboard
val name: String?

Landmark store name.

Link copied to clipboard

Type of the landmark store. The result value if in range of ELandmarkStoreType

Functions

Link copied to clipboard
external fun addCategory(value: LandmarkCategory): Int

Adds a new category to the store. After this method call, the category object that is passed as a parameter belongs to this landmark store. The category must have a name.

Link copied to clipboard
external fun addLandmark(value: Landmark, categoryId: Int = UncategorizedLandmarkCategId): Int

Add a landmark to the specified category in the landmark store.

Link copied to clipboard
external fun cancelImportLandmarks()

Cancel async import landmarks operation

Link copied to clipboard
external fun createLandmarkBrowseSession(settings: LandmarkBrowseSessionSettings = LandmarkBrowseSessionSettings()): LandmarkBrowseSession?

Creates a landmarks browse session for the specified settings.

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun getCategories(landmarkId: Int): ArrayList<LandmarkCategory>?

Gets the list of categories for the specified landmark.

Link copied to clipboard
external fun getCategoryById(categoryId: Int): LandmarkCategory?

Gets the category by ID.

Link copied to clipboard
external fun getLandmark(landmarkId: Int): Landmark?

Gets the specified landmark.

Link copied to clipboard
external fun getLandmarkCount(categoryId: Int = InvalidLandmarkCategId): Int
Link copied to clipboard
external fun getLandmarks(categoryId: Int = InvalidLandmarkCategId): LandmarkList?

Get the landmarks within the specified category.

Link copied to clipboard
external fun getLandmarksByArea(area: GeographicArea, categoryId: Int = InvalidLandmarkCategId): LandmarkList?

Get the landmarks within the specified area.

Link copied to clipboard
fun importLandmarks(path: String, format: ELandmarkFileFormat, image: Image, listener: ProgressListener): Int

Async import landmarks from given file format.

Link copied to clipboard

Async import landmarks from given buffer format

Link copied to clipboard
external fun isFastUpdateMode(): Boolean

Get fast update mode state

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun removeAllLandmarks(): Int

Remove all landmarks from store.

Link copied to clipboard
external fun removeCategory(categoryId: Int, removeLmkContent: Boolean = false): Int

Remove the specified category.

Link copied to clipboard
external fun removeLandmark(landmarkId: Int): Int

Removes the specified landmark.

Link copied to clipboard
external fun setLandmarkCategory(landmark: Landmark, categoryId: Int): Int

Set landmark category id

Link copied to clipboard
external fun startFastUpdateMode()

Start landmark store fast update mode

Link copied to clipboard
external fun stopFastUpdateMode(discard: Boolean = false)

Stop landmark store fast update mode

Link copied to clipboard
external fun updateCategory(value: LandmarkCategory): Int

Update the specified category. The category object must belong to this landmark store. No fields of the parameter will be updated by this call.

Link copied to clipboard
external fun updateLandmark(value: Landmark): Int

Update the information about a landmark.