getGeometry static method

Geometry getGeometry(
  1. Geometry geom
)

Extracts the linear components from a single {@link Geometry} and returns them as either a {@link LineString} or {@link MultiLineString}.

@param geom the geometry from which to extract @return a linear geometry

Implementation

static Geometry getGeometry(Geometry geom) {
  return geom.getFactory().buildGeometry(getLines(geom));
}