Class GeoJsonLineString

java.lang.Object
org.springframework.data.mongodb.core.geo.GeoJsonMultiPoint
org.springframework.data.mongodb.core.geo.GeoJsonLineString
All Implemented Interfaces:
GeoJson<Iterable<org.springframework.data.geo.Point>>

public class GeoJsonLineString extends GeoJsonMultiPoint
GeoJsonLineString is defined as list of at least 2 Points.
Since:
1.7
Author:
Christoph Strobl
See Also:
  • Constructor Details

    • GeoJsonLineString

      public GeoJsonLineString(List<org.springframework.data.geo.Point> points)
      Creates a new GeoJsonLineString for the given Points.
      Parameters:
      points - must not be null and have at least 2 entries.
    • GeoJsonLineString

      public GeoJsonLineString(org.springframework.data.geo.Point first, org.springframework.data.geo.Point second, org.springframework.data.geo.Point... others)
      Creates a new GeoJsonLineString for the given Points.
      Parameters:
      first - must not be null
      second - must not be null
      others - can be null
  • Method Details