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


Java VectorFeature.clone方法代码示例

本文整理汇总了Java中org.gwtopenmaps.openlayers.client.feature.VectorFeature.clone方法的典型用法代码示例。如果您正苦于以下问题:Java VectorFeature.clone方法的具体用法?Java VectorFeature.clone怎么用?Java VectorFeature.clone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.gwtopenmaps.openlayers.client.feature.VectorFeature的用法示例。


在下文中一共展示了VectorFeature.clone方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getTransformedFeatures

import org.gwtopenmaps.openlayers.client.feature.VectorFeature; //导入方法依赖的package包/类
private VectorFeature[] getTransformedFeatures(Vector vectorLayer, String epsg) {
		List<VectorFeature> transformedFeatures = new ArrayList<VectorFeature>();
		if (vectorLayer.getFeatures() != null) {
//			logger.info("N. features de la Capa: " + layer.getFeatures().length);
			for (VectorFeature feature : vectorLayer.getFeatures()) {
				VectorFeature featureToExport = feature.clone();
				featureToExport.getGeometry().transform(
						new Projection(GeoMap.INTERNAL_EPSG),
						new Projection(epsg));
				transformedFeatures.add(featureToExport);
			}
		}
		VectorFeature[] transArray = new VectorFeature[transformedFeatures
				.size()];
		return transformedFeatures.toArray(transArray);
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:17,代码来源:SaveProjectTool.java

示例2: getTransformedFeatures

import org.gwtopenmaps.openlayers.client.feature.VectorFeature; //导入方法依赖的package包/类
private VectorFeature[] getTransformedFeatures() {
	List<VectorFeature> transformedFeatures = new ArrayList<VectorFeature>();
	if (layer.getFeatures() != null) {
		logger.info("N. features de la Capa: " + layer.getFeatures().length);
		for (VectorFeature feature : layer.getFeatures()) {
			VectorFeature featureToExport = feature.clone();
			featureToExport.getGeometry().transform(
					new Projection(GeoMap.INTERNAL_EPSG),
					new Projection("WGS84"));
			transformedFeatures.add(featureToExport);
		}
	}
	VectorFeature[] transArray = new VectorFeature[transformedFeatures
			.size()];
	return transformedFeatures.toArray(transArray);
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:17,代码来源:SaveLayerTool.java

示例3: duplicate

import org.gwtopenmaps.openlayers.client.feature.VectorFeature; //导入方法依赖的package包/类
private VectorFeature[] duplicate(VectorLayer layer) {
	List<VectorFeature> features = new ArrayList<VectorFeature>();

	for (VectorFeature vf : layer.getFeatures()) {
		VectorFeature vf2 = vf.clone();
		features.add(vf2);
	}

	return features.toArray(new VectorFeature[features.size()]);
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:11,代码来源:MergeGeoprocess.java

示例4: getTransformedFeatures

import org.gwtopenmaps.openlayers.client.feature.VectorFeature; //导入方法依赖的package包/类
public VectorFeature[] getTransformedFeatures(Vector layer, String epsg) {
	List<VectorFeature> transformedFeatures = new ArrayList<VectorFeature>();
	if (layer.getFeatures() != null) {
		for (VectorFeature feature : layer.getFeatures()) {
			VectorFeature featureToExport = feature.clone();
			featureToExport.getGeometry().transform(
					new Projection(geoMap.getMap().getProjection()),
					new Projection(epsg));
			transformedFeatures.add(featureToExport);
		}
	}
	VectorFeature[] transArray = new VectorFeature[transformedFeatures
			.size()];
	return transformedFeatures.toArray(transArray);
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:16,代码来源:ExportDataTool.java

示例5: getTransformedFeatures

import org.gwtopenmaps.openlayers.client.feature.VectorFeature; //导入方法依赖的package包/类
private VectorFeature getTransformedFeatures(VectorFeature vectorFeature) {
	VectorFeature featureToExport = vectorFeature.clone();
	featureToExport.getGeometry().transform(new Projection(GeoMap.INTERNAL_EPSG), new Projection(this.projection));

	return featureToExport;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:7,代码来源:CSV.java


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