org.deegree.geometry.GeometryFactory.createCone()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中org.deegree.geometry.GeometryFactory.createCone()方法的一些代码示例,展示了GeometryFactory.createCone()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GeometryFactory.createCone()方法的具体详情如下:
包路径:org.deegree.geometry.GeometryFactory
类名称:GeometryFactory
方法名:createCone

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 );

相关文章