Skip to content

Commit

Permalink
Use the expat parser for the WFS provider because of smaller memory n…
Browse files Browse the repository at this point in the history
…eeds and possibility to incrementally parse document

git-svn-id: http://svn.osgeo.org/qgis/trunk@6434 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jan 15, 2007
1 parent 5731d6b commit 1d5f897
Show file tree
Hide file tree
Showing 9 changed files with 860 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/core/qgsproviderregistry.cpp
Expand Up @@ -394,7 +394,7 @@ QgsDataProvider* QgsProviderRegistry::getProvider( QString const & providerKey,
}
else
{
QgsLogger::warning( "Failed to load ../providers/libproviders.so" );
QgsLogger::warning( "Failed to load " + lib );
delete myLib;
return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/CMakeLists.txt
@@ -1,12 +1,12 @@

SUBDIRS (copyright_label delimited_text grid_maker navigation north_arrow scale_bar wfs)
SUBDIRS (copyright_label delimited_text grid_maker navigation north_arrow scale_bar)

IF (POSTGRES_FOUND)
SUBDIRS (geoprocessing spit)
ENDIF (POSTGRES_FOUND)

IF (EXPAT_FOUND)
SUBDIRS (gps_importer)
SUBDIRS (gps_importer wfs)
ENDIF (EXPAT_FOUND)

IF (GSL_FOUND)
Expand Down
1 change: 0 additions & 1 deletion src/plugins/wfs/CMakeLists.txt
Expand Up @@ -35,7 +35,6 @@ INCLUDE_DIRECTORIES(
../../core ../../core/raster ../../core/renderer ../../core/symbology
../../gui
..
../../providers/wfs
../../app # for QgsNewHttpConnection
${GEOS_INCLUDE_DIR}
${GEOS_INCLUDE_DIR}/geos
Expand Down
1 change: 0 additions & 1 deletion src/plugins/wfs/qgswfsplugin.cpp
Expand Up @@ -21,7 +21,6 @@
#include "qgssinglesymbolrenderer.h"
#include "qgsvectorlayer.h"
#include "qgswfsplugin.h"
#include "qgswfsprovider.h"

#include "mIconAddWfsLayer.xpm"

Expand Down
4 changes: 2 additions & 2 deletions src/providers/CMakeLists.txt
@@ -1,12 +1,12 @@

SUBDIRS (ogr wms delimitedtext wfs)
SUBDIRS (ogr wms delimitedtext)

IF (POSTGRES_FOUND)
SUBDIRS (postgres)
ENDIF (POSTGRES_FOUND)

IF (EXPAT_FOUND)
SUBDIRS (gpx)
SUBDIRS (gpx wfs)
ENDIF (EXPAT_FOUND)

IF (GRASS_FOUND)
Expand Down
10 changes: 8 additions & 2 deletions src/providers/wfs/CMakeLists.txt
Expand Up @@ -2,8 +2,11 @@
########################################################
# Files

SET(WFS_SRCS qgswfsprovider.cpp)
SET(WFS_SRCS qgswfsprovider.cpp qgswfsdata.cpp)

SET (WFS_MOC_HDRS
qgswfsdata.h
)

########################################################
# Build
Expand All @@ -14,12 +17,15 @@ INCLUDE_DIRECTORIES (
../../core
${GEOS_INCLUDE_DIR}
${GEOS_INCLUDE_DIR}/geos
${EXPAT_INCLUDE_DIR}
)

ADD_LIBRARY (wfsprovider MODULE ${WFS_SRCS})
ADD_LIBRARY (wfsprovider MODULE ${WFS_SRCS} ${WFS_MOC_SRCS})

TARGET_LINK_LIBRARIES (wfsprovider
${QT_LIBRARIES}
${GEOS_LIBRARY}
${EXPAT_LIBRARY}
qgis_core
)

Expand Down

0 comments on commit 1d5f897

Please sign in to comment.