本文整理了Java中org.deegree.geometry.GeometryFactory.createCone()
方法的一些代码示例,展示了GeometryFactory.createCone()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GeometryFactory.createCone()
方法的具体详情如下:
包路径:org.deegree.geometry.GeometryFactory
类名称:GeometryFactory
方法名:createCone
[英]Creates a Cone surface patch.
[中]创建圆锥体曲面面片。
代码示例来源:origin: deegree/deegree3
private SurfacePatch transform( GriddedSurfacePatch patch, Transformation trans )
throws TransformationException {
GriddedSurfaceType type = patch.getGriddedSurfaceType();
GriddedSurfacePatch result = null;
List<Points> rows = patch.getRows();
if ( rows != null && !rows.isEmpty() ) {
List<Points> tRows = new ArrayList<Points>( rows.size() );
for ( Points row : rows ) {
Points tRow = transform( row, trans );
if ( tRow != null ) {
tRows.add( tRow );
}
}
switch ( type ) {
case CONE:
result = geomFactory.createCone( tRows );
break;
case CYLINDER:
result = geomFactory.createCylinder( tRows );
break;
case GRIDDED_SURFACE_PATCH:
result = geomFactory.createGriddedSurfacePatch( tRows );
break;
case SPHERE:
result = geomFactory.createSphere( tRows );
break;
}
}
return result;
}
代码示例来源:origin: deegree/deegree3
xmlStream.require( END_ELEMENT, gmlNs, "Cone" );
return geomFac.createCone( grid );
内容来源于网络,如有侵权,请联系作者删除!