Class SimpleFeatureFactory

java.lang.Object
org.elasticsearch.common.geo.SimpleFeatureFactory

public class SimpleFeatureFactory extends Object
Transforms points and rectangles objects in WGS84 into mvt features.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SimpleFeatureFactory(int z, int x, int y, int extent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    box(double minLon, double maxLon, double minLat, double maxLat)
    Returns a byte[] containing the mvt representation of the provided rectangle
    byte[]
    point(double lon, double lat)
    Returns a byte[] containing the mvt representation of the provided point
    byte[]
    points(List<GeoPoint> multiPoint)
    Returns a byte[] containing the mvt representation of the provided points

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SimpleFeatureFactory

      public SimpleFeatureFactory(int z, int x, int y, int extent)
  • Method Details

    • point

      public byte[] point(double lon, double lat) throws IOException
      Returns a byte[] containing the mvt representation of the provided point
      Throws:
      IOException
    • points

      public byte[] points(List<GeoPoint> multiPoint)
      Returns a byte[] containing the mvt representation of the provided points
    • box

      public byte[] box(double minLon, double maxLon, double minLat, double maxLat) throws IOException
      Returns a byte[] containing the mvt representation of the provided rectangle
      Throws:
      IOException