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

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

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

GeometryFactory.createMultiPolygon介绍

暂无

代码示例

代码示例来源:origin: deegree/deegree3

private MultiPolygon transform( MultiPolygon multiPolygon, Transformation trans )
            throws TransformationException {
  ArrayList<Polygon> polys = new ArrayList<Polygon>( multiPolygon.size() );
  for ( Polygon g : multiPolygon ) {
    polys.add( transform( g, trans ) );
  }
  return geomFactory.createMultiPolygon( multiPolygon.getId(), getTargetCRS(), polys );
}

代码示例来源:origin: deegree/deegree3

return null;
return fac.createMultiPolygon( null, crs, ss );

代码示例来源:origin: deegree/deegree3

simplifiedMembers.add( (Polygon) simplify( member ) );
simplified = geomFac.createMultiPolygon( mp.getId(), mp.getCoordinateSystem(), simplifiedMembers );
break;
simplified = geomFac.createMultiPolygon( ms.getId(), ms.getCoordinateSystem(), simplifiedMembers );
break;

代码示例来源:origin: deegree/deegree3

linearizedMembers.add( sfLinearizer.linearize( polygon, crit ) );
  linearized = (T) geomFac.createMultiPolygon( geom.getId(), geom.getCoordinateSystem(), linearizedMembers );
} else if ( geom instanceof MultiSurface ) {
  MultiSurface<Surface> ms = (MultiSurface<Surface>) geom;

代码示例来源:origin: deegree/deegree3

return fac.createMultiPolygon( null, crs, polys );

代码示例来源:origin: deegree/deegree3

/**
 * @param xmlStream
 * @param defaultCRS
 * @return
 * @throws XMLStreamException
 */
public MultiPolygon parseMultiPolygon( XMLStreamReaderWrapper xmlStream, ICRS defaultCRS )
            throws XMLStreamException {
  String gid = parseGeometryId( xmlStream );
  ICRS crs = determineActiveCRS( xmlStream, defaultCRS );
  xmlStream.nextTag();
  List<Polygon> members = new LinkedList<Polygon>();
  if ( xmlStream.isStartElement() ) {
    do {
      String localName = xmlStream.getLocalName();
      if ( localName.equals( "polygonMember" ) ) {
        members.add( parsePolygonProperty( xmlStream, crs ) );
        xmlStream.require( END_ELEMENT, GML21NS, "polygonMember" );
      } else {
        String msg = "Invalid 'gml:MultiPolygon' element: unexpected element '" + localName
               + "'. Expected 'polygonMember'.";
        throw new XMLParsingException( xmlStream, msg );
      }
    } while ( xmlStream.nextTag() == START_ELEMENT );
  }
  xmlStream.require( END_ELEMENT, GML21NS, "MultiPolygon" );
  MultiPolygon multiPolygon = geomFac.createMultiPolygon( gid, crs, members );
  idContext.addObject( multiPolygon );
  return multiPolygon;
}

代码示例来源:origin: deegree/deegree3

MultiPolygon multiPolygon = geomFac.createMultiPolygon( gid, crs, members );
multiPolygon.setType( type );

代码示例来源:origin: deegree/deegree3

interiorRings ) );
simplified = geomFac.createMultiPolygon( geometry.getId(), geometry.getCoordinateSystem(), members );

代码示例来源:origin: deegree/deegree3

homogenized = new GeometryFactory().createMultiPolygon( geometry.getId(), geometry.getCoordinateSystem(),
                            (List<Polygon>) deepMembers );
break;

相关文章