CPD Results

The following document contains the results of PMD's CPD 4.3.

Duplications

File Line
org/deegree/remoteows/wms/OldWMSClient111.java 549
org/deegree/remoteows/wms/OldWMSClient111.java 812
        map.put( "feature_count", Integer.toString( count ) );
        if ( hardParameters != null ) {
            for ( Entry<String, String> e : hardParameters.entrySet() ) {
                if ( map.containsKey( e.getKey().toLowerCase() ) ) {
                    LOG.debug( "Overriding preset parameter {}.", e.getKey() );
                    map.put( e.getKey().toLowerCase(), e.getValue() );
                } else
                    map.put( e.getKey(), e.getValue() );
            }
        }

        url += toQueryString( map );

        URL theUrl = new URL( url );
        LOG.debug( "Connecting to URL " + theUrl );
        URLConnection conn = ProxyUtils.openURLConnection( theUrl, getHttpProxyUser( true ),
File Line
org/deegree/remoteows/wms/OldWMSClient111.java 361
org/deegree/remoteows/wms/OldWMSClient111.java 411
                OMElement bbox = capabilities.getElement( elem, new XPath( "LatLonBoundingBox", null ) );
                if ( bbox != null ) {
                    try {
                        min[0] = Double.parseDouble( bbox.getAttributeValue( new QName( "minx" ) ) );
                        min[1] = Double.parseDouble( bbox.getAttributeValue( new QName( "miny" ) ) );
                        max[0] = Double.parseDouble( bbox.getAttributeValue( new QName( "maxx" ) ) );
                        max[1] = Double.parseDouble( bbox.getAttributeValue( new QName( "maxy" ) ) );
                        return new GeometryFactory().createEnvelope( min, max, CRSManager.getCRSRef( WGS84 ) );
File Line
org/deegree/remoteows/wms/OldWMSClient111.java 538
org/deegree/remoteows/wms/OldWMSClient111.java 804
        map.put( "query_layers", lays );
        map.put( "styles", "" );
        map.put( "width", Integer.toString( width ) );
        map.put( "height", Integer.toString( height ) );
        map.put( "bbox", bbox.getMin().get0() + "," + bbox.getMin().get1() + "," + bbox.getMax().get0() + ","
                         + bbox.getMax().get1() );
        map.put( "srs", srs.getAlias() );
        map.put( "format", getFormats( GetMap ).getFirst() );