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

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

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

GeometryFactory.createPoints介绍

暂无

代码示例

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

private LineString getLegendLine( int xpos, int ypos, int xsz, int ysz ) {
  Point p1 = geofac.createPoint( null, xpos, ypos - ysz, mapcs );
  Point p2 = geofac.createPoint( null, xpos + xsz / 3, ypos - ysz / 3, mapcs );
  Point p3 = geofac.createPoint( null, xpos + xsz / 3 * 2, ypos - ysz / 3 * 2, mapcs );
  Point p4 = geofac.createPoint( null, xpos + xsz, ypos, mapcs );
  List<Point> ps = new ArrayList<Point>( 4 );
  ps.add( p1 );
  ps.add( p2 );
  ps.add( p3 );
  ps.add( p4 );
  return geofac.createLineString( null, mapcs, geofac.createPoints( ps ) );
}

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

private Polygon getLegendRect( int xpos, int ypos, int xsize, int ysize ) {
  Point p1 = geofac.createPoint( null, xpos, ypos, mapcs );
  Point p2 = geofac.createPoint( null, xpos + xsize, ypos, mapcs );
  Point p3 = geofac.createPoint( null, xpos + xsize, ypos - ysize, mapcs );
  Point p4 = geofac.createPoint( null, xpos, ypos - ysize, mapcs );
  List<Point> ps = new ArrayList<Point>( 5 );
  ps.add( p1 );
  ps.add( p2 );
  ps.add( p3 );
  ps.add( p4 );
  ps.add( p1 );
  return geofac.createPolygon( null, mapcs, geofac.createLinearRing( null, null, geofac.createPoints( ps ) ),
                 null );
}

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

private Points parseControlPoints( XMLStreamReaderWrapper xmlStream, ICRS crs )
            throws XMLStreamException {
  List<Point> controlPoints = null;
  if ( xmlStream.getEventType() == XMLStreamConstants.START_ELEMENT ) {
    String name = xmlStream.getLocalName();
    if ( "coordinates".equals( name ) ) {
      controlPoints = parseCoordinates( xmlStream, crs );
      xmlStream.nextTag();
    } else {
      controlPoints = new LinkedList<Point>();
      do {
        name = xmlStream.getLocalName();
        if ( "coord".equals( name ) ) {
          double[] coords = parseCoordType( xmlStream );
          // anonymous point (no registering necessary)
          controlPoints.add( geomFac.createPoint( null, coords, crs ) );
        } else {
          break;
        }
      } while ( xmlStream.nextTag() == XMLStreamConstants.START_ELEMENT );
    }
  }
  return geomFac.createPoints( controlPoints );
}

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

return geomFac.createPoints( controlPoints );

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

return geomFac.createGeodesicString( geomFac.createPoints( points ) );

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

throw new XMLParsingException( xmlStream, msg );
LineString lineString = geomFac.createLineString( gid, crs, geomFac.createPoints( points ) );
idContext.addObject( lineString );
return lineString;

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

LineString lineString = geomFac.createLineString( gid, crs, geomFac.createPoints( points ) );
lineString.setType( type );

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

grid.add( geomFac.createPoints( currentRow ) );
xmlStream.require( END_ELEMENT, gmlNs, "row" );
xmlStream.nextTag();

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

grid.add( geomFac.createPoints( currentRow ) );
xmlStream.require( END_ELEMENT, gmlNs, "row" );
xmlStream.nextTag();

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

grid.add( geomFac.createPoints( currentRow ) );
xmlStream.require( END_ELEMENT, gmlNs, "row" );
xmlStream.nextTag();

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

Tin tin = geomFac.createTin( gid, crs, stopLines, breakLines, maxLength, geomFac.createPoints( controlPoints ),
               memberPatches );
tin.setType( type );

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

return new AffinePlacement( location, geomFac.createPoints( refDirections ), inDimension, outDimension );

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

return geomFac.createArcStringByBulge( points, bulges, geomFac.createPoints( normals ) );

相关文章