@@ -1367,38 +1367,40 @@ QString QgsWcsProvider::coverageMetadata( QgsWcsCoverageSummary coverage )
1367
1367
metadata += htmlRow ( tr ( " Name (identifier)" ), coverage.identifier );
1368
1368
metadata += htmlRow ( tr ( " Title" ), coverage.title );
1369
1369
metadata += htmlRow ( tr ( " Abstract" ), coverage.abstract );
1370
- // We dont have size, nativeCrs, nativeBoundingBox etc. until describe coverage which would be heavy for all coverages
1371
- // metadata += htmlRow ( tr( "Fixed Width" ), QString::number( coverage.width ) );
1372
- // metadata += htmlRow ( tr( "Fixed Height" ), QString::number( coverage.height ) );
1373
- // metadata += htmlRow ( tr( "Native CRS" ), coverage.nativeCrs );
1374
- // metadata += htmlRow ( tr( "Native Bounding Box" ), coverage.nativeBoundingBox.toString() );
1370
+ #if 0
1371
+ // We don't have size, nativeCrs, nativeBoundingBox etc. until describe coverage which would be heavy for all coverages
1372
+ metadata += htmlRow( tr( "Fixed Width" ), QString::number( coverage.width ) );
1373
+ metadata += htmlRow( tr( "Fixed Height" ), QString::number( coverage.height ) );
1374
+ metadata += htmlRow( tr( "Native CRS" ), coverage.nativeCrs );
1375
+ metadata += htmlRow( tr( "Native Bounding Box" ), coverage.nativeBoundingBox.toString() );
1376
+ #endif
1375
1377
1376
1378
metadata += htmlRow ( tr ( " WGS 84 Bounding Box" ), coverage.wgs84BoundingBox .toString () );
1377
1379
1378
1380
// Layer Coordinate Reference Systems
1379
1381
// TODO(?): supportedCrs and supportedFormat are not available in 1.0
1380
1382
// until coverage is described - it would be confusing to show it only if available
1381
- /*
1383
+ # if 0
1382
1384
for ( int j = 0; j < qMin( coverage.supportedCrs.size(), 10 ); j++ )
1383
1385
{
1384
- metadata += htmlRow ( tr( "Available in CRS" ), coverage.supportedCrs.value(j ) );
1386
+ metadata += htmlRow( tr( "Available in CRS" ), coverage.supportedCrs.value( j ) );
1385
1387
}
1386
1388
1387
1389
if ( coverage.supportedCrs.size() > 10 )
1388
1390
{
1389
- metadata += htmlRow ( tr( "Available in CRS" ), tr( "(and %n more)", "crs", coverage.supportedCrs.size() - 10 ) );
1391
+ metadata += htmlRow( tr( "Available in CRS" ), tr( "(and %n more)", "crs", coverage.supportedCrs.size() - 10 ) );
1390
1392
}
1391
1393
1392
1394
for ( int j = 0; j < qMin( coverage.supportedFormat.size(), 10 ); j++ )
1393
1395
{
1394
- metadata += htmlRow ( tr( "Available in format" ), coverage.supportedFormat.value(j ) );
1396
+ metadata += htmlRow( tr( "Available in format" ), coverage.supportedFormat.value( j ) );
1395
1397
}
1396
1398
1397
1399
if ( coverage.supportedFormat.size() > 10 )
1398
1400
{
1399
- metadata += htmlRow ( tr( "Available in format" ), tr( "(and %n more)", "crs", coverage.supportedFormat.size() - 10 ) );
1401
+ metadata += htmlRow( tr( "Available in format" ), tr( "(and %n more)", "crs", coverage.supportedFormat.size() - 10 ) );
1400
1402
}
1401
- */
1403
+ # endif
1402
1404
1403
1405
// Close the nested table
1404
1406
metadata += " </table>" ;
@@ -1417,11 +1419,13 @@ QString QgsWcsProvider::metadata()
1417
1419
metadata += tr ( " Coverages" );
1418
1420
metadata += " </a>" ;
1419
1421
1422
+ #if 0
1420
1423
#if QT_VERSION >= 0x40500
1421
1424
// TODO
1422
- // metadata += "<a href=\"#cachestats\">";
1423
- // metadata += tr( "Cache Stats" );
1424
- // metadata += "</a> ";
1425
+ metadata += "<a href=\"#cachestats\">";
1426
+ metadata += tr( "Cache Stats" );
1427
+ metadata += "</a> ";
1428
+ #endif
1425
1429
#endif
1426
1430
1427
1431
metadata += " </td></tr>" ;
@@ -1446,17 +1450,19 @@ QString QgsWcsProvider::metadata()
1446
1450
metadata += htmlRow (( " WCS Version" ), mCapabilities .version () );
1447
1451
metadata += htmlRow ( tr ( " Title" ), mCapabilities .capabilities ().title );
1448
1452
metadata += htmlRow ( tr ( " Abstract" ), mCapabilities .capabilities ().abstract );
1453
+ #if 0
1449
1454
// TODO: probably apply stylesheet in QgsWcsCapabilities and save as html
1450
- // metadata += htmlRow ( tr( "Keywords" ), mCapabilities.service.keywordList.join( "<br />" ) );
1451
- // metadata += htmlRow ( tr( "Online Resource" ), "-" );
1452
- // metadata += htmlRow ( tr( "Contact Person" ),
1453
- // mCapabilities.service.contactInformation.contactPersonPrimary.contactPerson
1454
- // + "<br />" + mCapabilities.service.contactInformation.contactPosition;
1455
- // + "<br />" + mCapabilities.service.contactInformation.contactPersonPrimary.contactOrganization );
1456
- // metadata += htmlRow ( tr( "Fees" ), mCapabilities.service.fees );
1457
- // metadata += htmlRow ( tr( "Access Constraints" ), mCapabilities.service.accessConstraints );
1458
- // metadata += htmlRow ( tr( "Image Formats" ), mCapabilities.capability.request.getMap.format.join( "<br />" ) );
1459
- // metadata += htmlRow ( tr( "GetCapabilitiesUrl" ), mBaseUrl );
1455
+ metadata += htmlRow( tr( "Keywords" ), mCapabilities.service.keywordList.join( "<br />" ) );
1456
+ metadata += htmlRow( tr( "Online Resource" ), "-" );
1457
+ metadata += htmlRow( tr( "Contact Person" ),
1458
+ mCapabilities.service.contactInformation.contactPersonPrimary.contactPerson
1459
+ + "<br />" + mCapabilities.service.contactInformation.contactPosition;
1460
+ + "<br />" + mCapabilities.service.contactInformation.contactPersonPrimary.contactOrganization );
1461
+ metadata += htmlRow( tr( "Fees" ), mCapabilities.service.fees );
1462
+ metadata += htmlRow( tr( "Access Constraints" ), mCapabilities.service.accessConstraints );
1463
+ metadata += htmlRow( tr( "Image Formats" ), mCapabilities.capability.request.getMap.format.join( "<br />" ) );
1464
+ metadata += htmlRow( tr( "GetCapabilitiesUrl" ), mBaseUrl );
1465
+ #endif
1460
1466
metadata += htmlRow ( tr ( " Get Coverage Url" ), mCapabilities .getCoverageUrl () + ( mIgnoreGetCoverageUrl ? tr ( " <font color=\" red\" >(advertised but ignored)</font>" ) : " " ) );
1461
1467
1462
1468
// Close the nested table
0 commit comments