} else if (geomType.equalsIgnoreCase("LineString")) {
com.vividsolutions.jts.geom.LineString jtsLineString =
(com.vividsolutions.jts.geom.LineString) jtsGeom;
int numPoints = jtsLineString.getNumPoints();
LineString ls = gf.createLineString(new ArrayList());
List pointList = ls.getControlPoints();
for (int i=0; i<numPoints; i++) {
pointList.add(coordinateToDirectPosition(jtsLineString.getCoordinateN(i), crs));
}
ArrayList segments = new ArrayList();