本文整理汇总了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);
}
示例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);
}
示例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()]);
}
示例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);
}
示例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;
}