use of com.vividsolutions.jts.geom.LineString in project ddf by codice.
the class Wfs20JTStoGML321Converter method convertToMultiLineStringType.
// MultiLineStringType maps to MultiCurveType in opengis API
public static MultiCurveType convertToMultiLineStringType(MultiLineString multiLineString, String srsName) {
final MultiCurveType multiCurveType = GML320_OBJECT_FACTORY.createMultiCurveType();
for (int index = 0; index < multiLineString.getNumGeometries(); index++) {
final LineString lineString = (LineString) multiLineString.getGeometryN(index);
multiCurveType.getCurveMember().add(createCurvePropertyType(lineString));
}
multiCurveType.setSrsName(srsName);
return multiCurveType;
}
Aggregations