for ( SurfacePatch sp : tin.getPatches() ) { exportSurfacePatch( sp ); for ( List<LineStringSegment> lsSegments : tin.getStopLines() ) { writer.writeStartElement( gmlNs, "stopLines" ); for ( LineStringSegment lsSeg : lsSegments ) { for ( List<LineStringSegment> lsSegments : tin.getBreakLines() ) { writer.writeStartElement( gmlNs, "breakLines" ); for ( LineStringSegment lsSeg : lsSegments ) { writer.writeAttribute( "uom", tin.getMaxLength( null ).getUomUri() ); writer.writeCharacters( String.valueOf( tin.getMaxLength( null ).getValue() ) ); writer.writeEndElement(); int dim = tin.getCoordinateDimension(); export( tin.getControlPoints(), dim ); writer.writeEndElement();
@SuppressWarnings("unchecked") private Tin transform( Tin tin, Transformation trans ) throws TransformationException { List<List<LineStringSegment>> stopLines = tin.getStopLines(); List<List<LineStringSegment>> tStopLines = null; if ( stopLines != null ) { List<List<LineStringSegment>> breakLines = tin.getBreakLines(); List<List<LineStringSegment>> tBreakLines = null; if ( breakLines != null ) { Points cPoints = tin.getControlPoints(); Points tcPoints = null; if ( cPoints != null ) { List<Triangle> patches = tin.getPatches(); List<Triangle> tPatches = null; if ( patches != null ) { tPatches = (List) transform( patches, trans ); return geomFactory.createTin( tin.getId(), getTargetCRS(), tStopLines, tBreakLines, (Length) tin.getMaxLength( null ), tcPoints, tPatches );
case Tin: Tin tin = (Tin) s; for ( List<LineStringSegment> stops : tin.getStopLines() ) { for ( LineStringSegment ls : stops ) { traverseSegment( ls ); for ( List<LineStringSegment> breaks : tin.getBreakLines() ) { for ( LineStringSegment ls : breaks ) { traverseSegment( ls );
tin.setType( type ); tin.setProperties( props );