当前位置: 首页>>代码示例>>Java>>正文


Java CompoundCurve.addLineString方法代码示例

本文整理汇总了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;
}
 
开发者ID:ngageoint,项目名称:geopackage-android-map,代码行数:21,代码来源:GoogleMapShapeConverter.java

示例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;
}
 
开发者ID:ngageoint,项目名称:geopackage-android-map,代码行数:23,代码来源:GoogleMapShapeConverter.java

示例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;
}
 
开发者ID:ngageoint,项目名称:geopackage-android-map,代码行数:21,代码来源:GoogleMapShapeConverter.java

示例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;
}
 
开发者ID:ngageoint,项目名称:geopackage-android-map,代码行数:23,代码来源:GoogleMapShapeConverter.java

示例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;
}
 
开发者ID:ngageoint,项目名称:geopackage-core-java,代码行数:19,代码来源:GeometryProjectionTransform.java

示例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;
}
 
开发者ID:ngageoint,项目名称:geopackage-wkb-java,代码行数:24,代码来源:WkbGeometryReader.java


注:本文中的mil.nga.wkb.geom.CompoundCurve.addLineString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。