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 ) ); }
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 ); }
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 ); }
return geomFac.createPoints( controlPoints );
return geomFac.createGeodesicString( geomFac.createPoints( points ) );
throw new XMLParsingException( xmlStream, msg ); LineString lineString = geomFac.createLineString( gid, crs, geomFac.createPoints( points ) ); idContext.addObject( lineString ); return lineString;
LineString lineString = geomFac.createLineString( gid, crs, geomFac.createPoints( points ) ); lineString.setType( type );
grid.add( geomFac.createPoints( currentRow ) ); xmlStream.require( END_ELEMENT, gmlNs, "row" ); xmlStream.nextTag();
grid.add( geomFac.createPoints( currentRow ) ); xmlStream.require( END_ELEMENT, gmlNs, "row" ); xmlStream.nextTag();
grid.add( geomFac.createPoints( currentRow ) ); xmlStream.require( END_ELEMENT, gmlNs, "row" ); xmlStream.nextTag();
Tin tin = geomFac.createTin( gid, crs, stopLines, breakLines, maxLength, geomFac.createPoints( controlPoints ), memberPatches ); tin.setType( type );
return new AffinePlacement( location, geomFac.createPoints( refDirections ), inDimension, outDimension );
return geomFac.createArcStringByBulge( points, bulges, geomFac.createPoints( normals ) );