6.3.1.2.3. IGeometryCache

public interface IGeometryCache

A geometry cache for fast drawing and searching

6.3.1.2.3.1. Methods

6.3.1.2.3.1.1. addItem

IGeometryCacheItem addItem(long id, GeoEnvelope envelope)

Add item to cache

Parameters:
  • id – Feature identificator
  • envelope – Envelope

6.3.1.2.3.1.2. changeId

void changeId(long oldFeatureId, long newFeatureId)

6.3.1.2.3.1.3. clear

void clear()

Remove all items from cache

6.3.1.2.3.1.4. getAll

List<IGeometryCacheItem> getAll()

Get all items

Returns:List of all items

6.3.1.2.3.1.5. getItem

IGeometryCacheItem getItem(long featureId)

Return cache item by feature identificator

Parameters:
  • featureId – Feature identificator
Returns:

Cache item

6.3.1.2.3.1.6. isItemExist

boolean isItemExist(long featureId)

Check if item with specified id is exist in cache

Parameters:
  • featureId – Feature id
Returns:

true if item is exist or false

6.3.1.2.3.1.7. load

void load(File path)

6.3.1.2.3.1.8. removeItem

IGeometryCacheItem removeItem(long featureId)

Remove item from cache

Parameters:
  • featureId – Feature id of cache item
Returns:

removed item or null

6.3.1.2.3.1.9. save

void save(File path)

6.3.1.2.3.1.11. size

int size()

Return count of items

Returns:count of items