All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.maplibre.geojson.CoordinateContainer Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package org.maplibre.geojson;

import androidx.annotation.Keep;

/**
 * Each of the s geometries which make up GeoJson implement this interface and consume a varying
 * dimension of {@link Point} list. Since this is varying, each geometry object fulfills the
 * contract by replacing the generic with a well defined list of Points.
 *
 * @param  a generic allowing varying dimensions for each GeoJson geometry
 * @since 3.0.0
 */
@Keep
public interface CoordinateContainer extends Geometry {

  /**
   * the coordinates which define the geometry. Typically a list of points but for some geometry
   * such as polygon this can be a list of a list of points, thus the return is generic here.
   *
   * @return the {@link Point}s which make up the coordinates defining the geometry
   * @since 3.0.0
   */
  T coordinates();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy