Package org.elasticsearch.common.geo
Class SimpleVectorTileFormatter
java.lang.Object
org.elasticsearch.common.geo.SimpleVectorTileFormatter
- All Implemented Interfaces:
GeoFormatterFactory.FormatterFactory<GeoPoint>
public class SimpleVectorTileFormatter
extends Object
implements GeoFormatterFactory.FormatterFactory<GeoPoint>
A facade for SimpleFeatureFactory that converts it into FormatterFactory for use in GeoPointFieldMapper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGenerates a formatter builder that parses the formatter configuration and generates a formattergetName()
Format namestatic int[]
Parses string in the format we expect, primarily z/x/y, to an array of integer parameters.
-
Field Details
-
MVT
- See Also:
-
DEFAULT_EXTENT
public static final int DEFAULT_EXTENT- See Also:
-
DEFAULT_BUFFER_PIXELS
public static final int DEFAULT_BUFFER_PIXELS- See Also:
-
EXTENT_PREFIX
- See Also:
-
BUFFER_PREFIX
- See Also:
-
-
Constructor Details
-
SimpleVectorTileFormatter
public SimpleVectorTileFormatter()
-
-
Method Details
-
getName
Description copied from interface:GeoFormatterFactory.FormatterFactory
Format name- Specified by:
getName
in interfaceGeoFormatterFactory.FormatterFactory<GeoPoint>
-
getFormatterBuilder
Description copied from interface:GeoFormatterFactory.FormatterFactory
Generates a formatter builder that parses the formatter configuration and generates a formatter- Specified by:
getFormatterBuilder
in interfaceGeoFormatterFactory.FormatterFactory<GeoPoint>
-
parse
Parses string in the format we expect, primarily z/x/y, to an array of integer parameters. There are also two optional additions to the format:@extent
- number of pixels across:buffer
- number of pixels by which to widen each tile
3/2/2
produces[3,2,2,4096,5]
2/1/1@5000
produces[2,1,1,5000,5]
2/1/1@5000:10
produces[2,1,1,5000,10]
-