Skip to content

Commit b711ef0

Browse files
authored
Merge pull request #9184 from cjmayo/xmlpatterns
Remove unused Qt5XmlPatterns dependency
2 parents 6b7ba0d + fb79826 commit b711ef0

10 files changed

Lines changed: 26 additions & 62 deletions

File tree

‎.docker/qgis3-build-deps-cosmic.dockerfile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ RUN apt-get update \
4949
libqt5svg5-dev \
5050
libqt5webkit5-dev \
5151
libqt5xml5 \
52-
libqt5xmlpatterns5-dev \
5352
libqt5serialport5-dev \
5453
libqwt-qt5-dev \
5554
libspatialindex-dev \

‎.docker/qgis3-build-deps.dockerfile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ RUN apt-get update \
4949
libqt5svg5-dev \
5050
libqt5webkit5-dev \
5151
libqt5xml5 \
52-
libqt5xmlpatterns5-dev \
5352
libqt5serialport5-dev \
5453
libqwt-qt5-dev \
5554
libspatialindex-dev \

‎INSTALL‎

Lines changed: 7 additions & 7 deletions
Large diffs are not rendered by default.

‎debian/control‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Build-Depends:
2222
libsqlite3-dev,
2323
libspatialindex-dev,
2424
qtbase5-dev, qttools5-dev-tools, qttools5-dev, qtpositioning5-dev,
25-
libqt5svg5-dev, libqt5xmlpatterns5-dev, libqt5webkit5-dev, libqt5opengl5-dev, libqt5sql5-sqlite, libqt5scintilla2-dev,
25+
libqt5svg5-dev, libqt5webkit5-dev, libqt5opengl5-dev, libqt5sql5-sqlite, libqt5scintilla2-dev,
2626
libqwt-qt5-dev, libqca-qt5-2-dev, libqca-qt5-2-plugins,
2727
python3-dev, python3-all-dev, python3-sip, python3-sip-dev,
2828
pyqt5-dev-tools, pyqt5-dev, pyqt5.qsci-dev,

‎debian/control.in‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Build-Depends:
2525
libexiv2-dev,
2626
qtbase5-dev, qttools5-dev-tools, qttools5-dev, qtpositioning5-dev, qt5keychain-dev,
2727
#!xenial# qtbase5-private-dev,
28-
libqt5svg5-dev, libqt5xmlpatterns5-dev, libqt5webkit5-dev, libqt5opengl5-dev, libqt5sql5-sqlite, libqt5serialport5-dev, libqt5scintilla2-dev,
28+
libqt5svg5-dev, libqt5webkit5-dev, libqt5opengl5-dev, libqt5sql5-sqlite, libqt5serialport5-dev, libqt5scintilla2-dev,
2929
libqwt-qt5-dev, libqca-qt5-2-dev, libqca-qt5-2-plugins,
3030
opencl-headers, ocl-icd-opencl-dev,
3131
python3-dev, python3-all-dev, python3-sip, python3-sip-dev,

‎doc/INSTALL.html‎

Lines changed: 10 additions & 10 deletions
Large diffs are not rendered by default.

‎doc/linux.t2t‎

Lines changed: 7 additions & 7 deletions
Large diffs are not rendered by default.

‎rpm/qgis.spec.template‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ BuildRequires: qt5-qtlocation-devel
109109
BuildRequires: qt5-qtsvg-devel
110110
BuildRequires: qt5-qttools-static
111111
BuildRequires: qt5-qtwebkit-devel
112-
BuildRequires: qt5-qtxmlpatterns-devel
113112
BuildRequires: qtkeychain-qt5-devel
114113
BuildRequires: qt5-qtserialport-devel
115114
BuildRequires: qt5-qt3d-devel

‎src/providers/wms/CMakeLists.txt‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
FIND_PACKAGE(Qt5XmlPatterns REQUIRED)
2-
3-
41
SET (WMS_SRCS
52
qgswmscapabilities.cpp
63
qgswmsprovider.cpp

‎src/providers/wms/qgswmsprovider.cpp‎

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2861,36 +2861,6 @@ QgsRasterIdentifyResult QgsWmsProvider::identify( const QgsPointXY &point, QgsRa
28612861

28622862
if ( xsdPart >= 0 ) // XSD available
28632863
{
2864-
#if 0
2865-
// Validate GML by schema
2866-
// Loading schema takes ages! It needs to load all XSD referenced in the schema,
2867-
// for example:
2868-
// http://schemas.opengis.net/gml/2.1.2/feature.xsd
2869-
// http://schemas.opengis.net/gml/2.1.2/gml.xsd
2870-
// http://schemas.opengis.net/gml/2.1.2/geometry.xsd
2871-
// http://www.w3.org/1999/xlink.xsd
2872-
// http://www.w3.org/2001/xml.xsd <- this takes 30s to download (2/2013)
2873-
2874-
QXmlSchema schema;
2875-
schema.load( mIdentifyResultBodies.value( xsdPart ) );
2876-
// Unfortunately the schema cannot be successfully loaded, it reports error
2877-
// "Element {http://www.opengis.net/gml}_Feature already defined"
2878-
// there is probably a bug in QXmlSchema:
2879-
// https://bugreports.qt.io/browse/QTBUG-8394
2880-
// xmlpatternsvalidator gives the same error on XSD generated by OGR
2881-
if ( !schema.isValid() )
2882-
{
2883-
// TODO: return QgsError
2884-
results.insert( count, tr( "GML schema is not valid" ) );
2885-
continue;
2886-
}
2887-
QXmlSchemaValidator validator( schema );
2888-
if ( !validator.validate( mIdentifyResultBodies.value( gmlPart ) ) )
2889-
{
2890-
results.insert( count, tr( "GML is not valid" ) );
2891-
continue;
2892-
}
2893-
#endif
28942864
QgsDebugMsg( "GML XSD (first 4000 bytes):\n" + QString::fromUtf8( mIdentifyResultBodies.value( xsdPart ).left( 4000 ) ) );
28952865
gmlSchema.parseXSD( mIdentifyResultBodies.value( xsdPart ) );
28962866
}

0 commit comments

Comments
 (0)