本文整理了Java中org.deegree.geometry.GeometryFactory.createLineString()
方法的一些代码示例,展示了GeometryFactory.createLineString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GeometryFactory.createLineString()
方法的具体详情如下:
包路径:org.deegree.geometry.GeometryFactory
类名称:GeometryFactory
方法名:createLineString
[英]Creates a LineStringSegment curve segment.
[中]创建线条段曲线段。
代码示例来源:origin: deegree/deegree3
private Geometry readPolyline( ByteBuffer buffer, boolean z, boolean m, int length ) {
Points[] ps = readLines( buffer, m, z, length );
List<LineString> cs = new ArrayList<LineString>( ps.length );
for ( int i = 0; i < ps.length; ++i ) {
cs.add( fac.createLineString( null, crs, ps[i] ) );
}
return fac.createMultiLineString( null, crs, cs );
}
代码示例来源: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 LineString transform( LineString geo, Transformation trans )
throws TransformationException {
LineStringSegment segment = (LineStringSegment) geo.getCurveSegments().get( 0 ); // only one for a line string?
Points pos = segment.getControlPoints();
pos = transform( pos, trans );
return geomFactory.createLineString( geo.getId(), getTargetCRS(), pos );
}
代码示例来源: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
ps.add( (Point) move( p, offx, offy ) );
return fac.createLineString( geom.getId(), c.getCoordinateSystem(), new PointsList( ps ) );
代码示例来源:origin: deegree/deegree3
if ( min.get0() == max.get0() || min.get1() == max.get1() ) {
Points points = new PointsArray( min, max );
return fac.createLineString( null, crs, points );
Curve ls = fac.createLineString( null, crs, new PackedPoints( null, points, 2 ) );
Ring exteriorRing = fac.createRing( null, crs, Collections.singletonList( ls ) );
return fac.createPolygon( null, crs, exteriorRing, null );
内容来源于网络,如有侵权,请联系作者删除!