本文整理汇总了Java中mil.nga.wkb.geom.CompoundCurve.addLineString方法的典型用法代码示例。如果您正苦于以下问题:Java CompoundCurve.addLineString方法的具体用法?Java CompoundCurve.addLineString怎么用?Java CompoundCurve.addLineString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mil.nga.wkb.geom.CompoundCurve
的用法示例。
在下文中一共展示了CompoundCurve.addLineString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: toCompoundCurveFromList
import mil.nga.wkb.geom.CompoundCurve; //导入方法依赖的package包/类
/**
* Convert a list of List<LatLng> to a {@link CompoundCurve}
*
* @param polylineList
* @param hasZ
* @param hasM
* @return
*/
public CompoundCurve toCompoundCurveFromList(
List<List<LatLng>> polylineList, boolean hasZ, boolean hasM) {
CompoundCurve compoundCurve = new CompoundCurve(hasZ, hasM);
for (List<LatLng> polyline : polylineList) {
LineString lineString = toLineString(polyline);
compoundCurve.addLineString(lineString);
}
return compoundCurve;
}
示例2: toCompoundCurveFromOptions
import mil.nga.wkb.geom.CompoundCurve; //导入方法依赖的package包/类
/**
* Convert a {@link MultiPolylineOptions} to a {@link CompoundCurve}
*
* @param multiPolylineOptions
* @param hasZ
* @param hasM
* @return
*/
public CompoundCurve toCompoundCurveFromOptions(
MultiPolylineOptions multiPolylineOptions, boolean hasZ,
boolean hasM) {
CompoundCurve compoundCurve = new CompoundCurve(hasZ, hasM);
for (PolylineOptions polyline : multiPolylineOptions
.getPolylineOptions()) {
LineString lineString = toLineString(polyline);
compoundCurve.addLineString(lineString);
}
return compoundCurve;
}
示例3: toCompoundCurve
import mil.nga.wkb.geom.CompoundCurve; //导入方法依赖的package包/类
/**
* Convert a list of {@link Polyline} to a {@link CompoundCurve}
*
* @param polylineList
* @param hasZ
* @param hasM
* @return
*/
public CompoundCurve toCompoundCurve(List<Polyline> polylineList,
boolean hasZ, boolean hasM) {
CompoundCurve compoundCurve = new CompoundCurve(hasZ, hasM);
for (Polyline polyline : polylineList) {
LineString lineString = toLineString(polyline);
compoundCurve.addLineString(lineString);
}
return compoundCurve;
}
示例4: toCompoundCurveWithOptions
import mil.nga.wkb.geom.CompoundCurve; //导入方法依赖的package包/类
/**
* Convert a {@link MultiPolylineOptions} to a {@link CompoundCurve}
*
* @param multiPolylineOptions
* @param hasZ
* @param hasM
* @return
*/
public CompoundCurve toCompoundCurveWithOptions(
MultiPolylineOptions multiPolylineOptions, boolean hasZ,
boolean hasM) {
CompoundCurve compoundCurve = new CompoundCurve(hasZ, hasM);
for (PolylineOptions polyline : multiPolylineOptions
.getPolylineOptions()) {
LineString lineString = toLineString(polyline);
compoundCurve.addLineString(lineString);
}
return compoundCurve;
}
示例5: transform
import mil.nga.wkb.geom.CompoundCurve; //导入方法依赖的package包/类
/**
* Transform the projected compound curve
*
* @param compoundCurve
* @return projected compound curve
*/
public CompoundCurve transform(CompoundCurve compoundCurve) {
CompoundCurve to = new CompoundCurve(compoundCurve.hasZ(),
compoundCurve.hasM());
for (LineString lineString : compoundCurve.getLineStrings()) {
LineString toLineString = transform(lineString);
to.addLineString(toLineString);
}
return to;
}
示例6: readCompoundCurve
import mil.nga.wkb.geom.CompoundCurve; //导入方法依赖的package包/类
/**
* Read a Compound Curve
*
* @param reader
* @param hasZ
* @param hasM
* @return compound curve
*/
public static CompoundCurve readCompoundCurve(ByteReader reader,
boolean hasZ, boolean hasM) {
CompoundCurve compoundCurve = new CompoundCurve(hasZ, hasM);
int numLineStrings = reader.readInt();
for (int i = 0; i < numLineStrings; i++) {
LineString lineString = readGeometry(reader, LineString.class);
compoundCurve.addLineString(lineString);
}
return compoundCurve;
}