Class LineStringFeature

All Implemented Interfaces:
FeatureClickNotifier<LineStringFeature>, Serializable

public class LineStringFeature extends Feature implements FeatureClickNotifier<LineStringFeature>
Polyline feature with predefined LineStringGeometry.

Usage example:

 protected void addLineString(VectorSource source) {
     GeometryFactory geometryFactory = GeometryUtils.getGeometryFactory();

     LineString lineString = geometryFactory.createLineString(new Coordinate[]{
             new Coordinate(11.013511, 50.978630),
             new Coordinate(2.392612, 48.782472),
             new Coordinate(-3.674846, 40.353581)});
     source.addFeature(new LineStringFeature(lineString));
 }
 
See Also:
  • Constructor Details

    • LineStringFeature

      public LineStringFeature(org.locationtech.jts.geom.LineString lineString)
  • Method Details