public final class GeoUtils extends Object
Modifier and Type | Method and Description |
---|---|
static TopoJson |
createTopoJson(AbstractInjectableResource topojson)
Creates the
TopoJson object definition from a topoJson text definition. |
static TopoJson |
createTopoJson(String topojson)
Creates the
TopoJson object definition from a topoJson text definition. |
static Feature |
feature(AbstractInjectableResource topojson,
Key featureProperty,
FeatureFindCallback findCallback)
Reads the topoJson definition and find a specific feature to enable outline.
|
static Feature |
feature(AbstractInjectableResource topojson,
String featureProperty,
FeatureFindCallback findCallback)
Reads the topoJson definition and find a specific feature to enable outline.
|
static Feature |
feature(String topojson,
Key featureProperty,
FeatureFindCallback findCallback)
Reads the topoJson definition and find a specific feature to enable outline.
|
static Feature |
feature(String topojson,
String featureProperty,
FeatureFindCallback findCallback)
Reads the topoJson definition and find a specific feature to enable outline.
|
static Feature |
feature(TopoJson topojson,
Key featureProperty,
FeatureFindCallback findCallback)
Reads the topoJson definition and find a specific feature to enable outline.
|
static Feature |
feature(TopoJson topojson,
String featureProperty,
FeatureFindCallback findCallback)
Reads the topoJson definition and find a specific feature to enable outline.
|
static List<Feature> |
features(AbstractInjectableResource topojson,
Key featureProperty)
Reads the topoJson definition and creates a list of features to enable regions drawing.
|
static List<Feature> |
features(AbstractInjectableResource topojson,
Key featureProperty,
FeatureFilterCallback filterCallback)
Reads the topoJson definition and creates a list of features to enable regions drawing.
|
static List<Feature> |
features(AbstractInjectableResource topojson,
String featureProperty)
Reads the topoJson definition and creates a list of features to enable regions drawing.
|
static List<Feature> |
features(AbstractInjectableResource topojson,
String featureProperty,
FeatureFilterCallback filterCallback)
Reads the topoJson definition and creates a list of features to enable regions drawing.
|
static List<Feature> |
features(String topojson,
Key featureProperty)
Reads the topoJson definition and creates a list of features to enable regions drawing.
|
static List<Feature> |
features(String topojson,
Key featureProperty,
FeatureFilterCallback filterCallback)
Reads the topoJson definition and creates a list of features to enable regions drawing.
|
static List<Feature> |
features(String topojson,
String featureProperty)
Reads the topoJson definition and creates a list of features to enable regions drawing.
|
static List<Feature> |
features(String topojson,
String featureProperty,
FeatureFilterCallback filterCallback)
Reads the topoJson definition and creates a list of features to enable regions drawing.
|
static List<Feature> |
features(TopoJson topojson,
Key featureProperty)
Reads the topoJson definition and creates a list of features to enable regions drawing.
|
static List<Feature> |
features(TopoJson topojson,
Key featureProperty,
FeatureFilterCallback filterCallback)
Reads the topoJson definition and creates a list of features to enable regions drawing.
|
static List<Feature> |
features(TopoJson topojson,
String featureProperty)
Reads the topoJson definition and creates a list of features to enable regions drawing.
|
static List<Feature> |
features(TopoJson topojson,
String featureProperty,
FeatureFilterCallback filterCallback)
Reads the topoJson definition and creates a list of features to enable regions drawing.
|
static Labels |
loadLabels(List<Feature> features,
FeatureLabelCallback labelCallback)
Creates and loads a
Labels object with the label of feature object by the callback. |
static Labels |
loadLabels(List<Feature> features,
Key property)
Creates and loads a
Labels object with the label of feature object by the property. |
static Labels |
loadLabels(List<Feature> features,
String property)
Creates and loads a
Labels object with the label of feature object by the property. |
public static TopoJson createTopoJson(AbstractInjectableResource topojson)
TopoJson
object definition from a topoJson text definition.topojson
- topoJson definition.TopoJson
object definitionpublic static TopoJson createTopoJson(String topojson)
TopoJson
object definition from a topoJson text definition.topojson
- topoJson definition.TopoJson
object definitionpublic static List<Feature> features(AbstractInjectableResource topojson, String featureProperty)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are defined.public static List<Feature> features(AbstractInjectableResource topojson, Key featureProperty)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are defined.public static List<Feature> features(AbstractInjectableResource topojson, String featureProperty, FeatureFilterCallback filterCallback)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are definedfilterCallback
- callback instance to filter the features to drawpublic static List<Feature> features(AbstractInjectableResource topojson, Key featureProperty, FeatureFilterCallback filterCallback)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are defined.filterCallback
- callback instance to filter the features to drawpublic static List<Feature> features(String topojson, Key featureProperty)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are defined.public static List<Feature> features(String topojson, String featureProperty)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are defined.public static List<Feature> features(String topojson, Key featureProperty, FeatureFilterCallback filterCallback)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are defined.filterCallback
- callback instance to filter the features to drawpublic static List<Feature> features(String topojson, String featureProperty, FeatureFilterCallback filterCallback)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are defined.filterCallback
- callback instance to filter the features to drawpublic static List<Feature> features(TopoJson topojson, Key featureProperty)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are defined.public static List<Feature> features(TopoJson topojson, String featureProperty)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are defined.public static List<Feature> features(TopoJson topojson, Key featureProperty, FeatureFilterCallback filterCallback)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are defined.filterCallback
- callback instance to filter the features to drawpublic static List<Feature> features(TopoJson topojson, String featureProperty, FeatureFilterCallback filterCallback)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are defined.filterCallback
- callback instance to filter the features to drawpublic static Feature feature(AbstractInjectableResource topojson, String featureProperty, FeatureFindCallback findCallback)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are definedfindCallback
- callback instance to find the features to outlinenull
public static Feature feature(AbstractInjectableResource topojson, Key featureProperty, FeatureFindCallback findCallback)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are definedfindCallback
- callback instance to find the features to outlinenull
public static Feature feature(String topojson, Key featureProperty, FeatureFindCallback findCallback)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are definedfindCallback
- callback instance to find the features to outlinenull
public static Feature feature(String topojson, String featureProperty, FeatureFindCallback findCallback)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are definedfindCallback
- callback instance to find the features to outlinenull
public static Feature feature(TopoJson topojson, Key featureProperty, FeatureFindCallback findCallback)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are definedfindCallback
- callback instance to find the features to outlinenull
public static Feature feature(TopoJson topojson, String featureProperty, FeatureFindCallback findCallback)
topojson
- topoJson definition.featureProperty
- property in the objects
node of topoJson definition where all regions are definedfindCallback
- callback instance to find the features to outlinenull
public static Labels loadLabels(List<Feature> features, Key property)
Labels
object with the label of feature object by the property.public static Labels loadLabels(List<Feature> features, String property)
Labels
object with the label of feature object by the property.public static Labels loadLabels(List<Feature> features, FeatureLabelCallback labelCallback)
Labels
object with the label of feature object by the callback.features
- list of features to drawlabelCallback
- callback invoked in order to get the label of the featureLabels
loaded with all features labels