Skip to content

Commit 1d5f897

Browse files
author
mhugent
committed
Use the expat parser for the WFS provider because of smaller memory needs and possibility to incrementally parse document
git-svn-id: http://svn.osgeo.org/qgis/trunk@6434 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5731d6b commit 1d5f897

File tree

9 files changed

+860
-9
lines changed

9 files changed

+860
-9
lines changed

src/core/qgsproviderregistry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ QgsDataProvider* QgsProviderRegistry::getProvider( QString const & providerKey,
394394
}
395395
else
396396
{
397-
QgsLogger::warning( "Failed to load ../providers/libproviders.so" );
397+
QgsLogger::warning( "Failed to load " + lib );
398398
delete myLib;
399399
return 0;
400400
}

src/plugins/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

2-
SUBDIRS (copyright_label delimited_text grid_maker navigation north_arrow scale_bar wfs)
2+
SUBDIRS (copyright_label delimited_text grid_maker navigation north_arrow scale_bar)
33

44
IF (POSTGRES_FOUND)
55
SUBDIRS (geoprocessing spit)
66
ENDIF (POSTGRES_FOUND)
77

88
IF (EXPAT_FOUND)
9-
SUBDIRS (gps_importer)
9+
SUBDIRS (gps_importer wfs)
1010
ENDIF (EXPAT_FOUND)
1111

1212
IF (GSL_FOUND)

src/plugins/wfs/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ INCLUDE_DIRECTORIES(
3535
../../core ../../core/raster ../../core/renderer ../../core/symbology
3636
../../gui
3737
..
38-
../../providers/wfs
3938
../../app # for QgsNewHttpConnection
4039
${GEOS_INCLUDE_DIR}
4140
${GEOS_INCLUDE_DIR}/geos

src/plugins/wfs/qgswfsplugin.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "qgssinglesymbolrenderer.h"
2222
#include "qgsvectorlayer.h"
2323
#include "qgswfsplugin.h"
24-
#include "qgswfsprovider.h"
2524

2625
#include "mIconAddWfsLayer.xpm"
2726

src/providers/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

2-
SUBDIRS (ogr wms delimitedtext wfs)
2+
SUBDIRS (ogr wms delimitedtext)
33

44
IF (POSTGRES_FOUND)
55
SUBDIRS (postgres)
66
ENDIF (POSTGRES_FOUND)
77

88
IF (EXPAT_FOUND)
9-
SUBDIRS (gpx)
9+
SUBDIRS (gpx wfs)
1010
ENDIF (EXPAT_FOUND)
1111

1212
IF (GRASS_FOUND)

src/providers/wfs/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
########################################################
33
# Files
44

5-
SET(WFS_SRCS qgswfsprovider.cpp)
5+
SET(WFS_SRCS qgswfsprovider.cpp qgswfsdata.cpp)
66

7+
SET (WFS_MOC_HDRS
8+
qgswfsdata.h
9+
)
710

811
########################################################
912
# Build
@@ -14,12 +17,15 @@ INCLUDE_DIRECTORIES (
1417
../../core
1518
${GEOS_INCLUDE_DIR}
1619
${GEOS_INCLUDE_DIR}/geos
20+
${EXPAT_INCLUDE_DIR}
1721
)
1822

19-
ADD_LIBRARY (wfsprovider MODULE ${WFS_SRCS})
23+
ADD_LIBRARY (wfsprovider MODULE ${WFS_SRCS} ${WFS_MOC_SRCS})
2024

2125
TARGET_LINK_LIBRARIES (wfsprovider
2226
${QT_LIBRARIES}
27+
${GEOS_LIBRARY}
28+
${EXPAT_LIBRARY}
2329
qgis_core
2430
)
2531

0 commit comments

Comments
 (0)