public final class TagKeyValueMapConverter extends Object implements ITagConverter
Map of String to Object. Tags indices that are out
of range of the key or value list are ignored.ITagConverter| Constructor and Description |
|---|
TagKeyValueMapConverter()
Always created user data object, even with empty tags.
|
TagKeyValueMapConverter(boolean nullIfEmpty)
Ignore feature ids.
|
TagKeyValueMapConverter(boolean nullIfEmpty,
String idKey)
Store feature ids using idKey.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
toUserData(Long id,
List<Integer> tags,
List<String> keysList,
List<VectorTile.Tile.Value> valuesList)
Convert MVT user data to JTS user data object or null.
|
public TagKeyValueMapConverter()
public TagKeyValueMapConverter(boolean nullIfEmpty)
nullIfEmpty - if true, return null user data when tags are emptypublic TagKeyValueMapConverter(boolean nullIfEmpty,
String idKey)
nullIfEmpty - if true, return null user data when tags are emptyidKey - key name to use for feature id valuepublic Object toUserData(Long id, List<Integer> tags, List<String> keysList, List<VectorTile.Tile.Value> valuesList)
ITagConvertertoUserData in interface ITagConverterid - feature id, may be nulltags - MVT feature tags, may be invalidkeysList - layer key listvaluesList - layer value listCopyright © 2022. All rights reserved.