Skip to content

Commit

Permalink
Remove QgsGeometryAnalyzer, QgsOverlayAnalyzer, QgsPointSample
Browse files Browse the repository at this point in the history
These classes are unused in the master QGIS code, and are
unmaintained and with no unit tests or other QA, and
have inflexible API (e.g. always requiring writing outputs
to shapefiles)

They all have equivalent algorithms available via Processing
(where the algorithms are unit tested and maintained). We should
be pushing all QGIS api users to use the Processing algorithms
instead.
  • Loading branch information
nyalldawson committed Aug 10, 2017
1 parent dc58c1a commit 0227bdc
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 2,512 deletions.
2 changes: 2 additions & 0 deletions doc/api_break.dox
Expand Up @@ -269,6 +269,7 @@ should now call QgsCoordinateReferenceSystem::invalidateCache() and QgsCoordinat
- QgsFileNameWidgetWrapper was removed. Use QgsExternalResourceWidgetWrapper instead.
- QgsFileDropEdit was removed. Use QgsFileWidget instead.
- QgsFormAnnotationItem. Use QgsFormAnnotation instead.
- QgsGeometryAnalyzer. Use the equivalent Processing algorithms instead.
- QgsHtmlAnnotationItem. Use QgsHtmlAnnotation instead.
- QgsHttpTransaction. This class was outdated and code should be ported to native Qt or Python implementations.
- QgsGenericProjectionSelector. Use QgsProjectionSelectionTreeWidget instead.
Expand All @@ -287,6 +288,7 @@ should now call QgsCoordinateReferenceSystem::invalidateCache() and QgsCoordinat
- QgsMapRenderer. It has been replaced by QgsMapRendererJob with subclasses and QgsMapSettings.
- QgsMapToolTouch. The touch navigation functionality is now built into the standard QgsMapToolPan tool.
- QgsPhotoWidgetWrapper was removed. Use QgsExternalResourceWidgetWrapper instead.
- QgsPointSample. Use the Processing "Random Points in Polygon" algorithm instead.
- QgsPseudoColorShader. This shader has been broken for some time and was replaced by QgsSingleBandPseudoColorRenderer.
- QgsProjectBadLayerGuiHandler was removed. It was unused in QGIS code and barely useful. Implement your own QgsProjectBadLayerHandler subclass if needed.
- QgsRendererV2DataDefinedMenus was removed. Use QgsPropertyOverrideButton instead.
Expand Down
3 changes: 0 additions & 3 deletions python/analysis/analysis_auto.sip
Expand Up @@ -12,9 +12,6 @@
%Include raster/qgsrastermatrix.sip
%Include raster/qgsrastercalcnode.sip
%Include raster/qgstotalcurvaturefilter.sip
%Include vector/qgsgeometryanalyzer.sip
%Include vector/qgsoverlayanalyzer.sip
%Include vector/qgspointsample.sip
%Include vector/qgstransectsample.sip
%Include vector/qgszonalstatistics.sip
%Include interpolation/qgsinterpolator.sip
Expand Down
143 changes: 0 additions & 143 deletions python/analysis/vector/qgsgeometryanalyzer.sip

This file was deleted.

46 changes: 0 additions & 46 deletions python/analysis/vector/qgsoverlayanalyzer.sip

This file was deleted.

38 changes: 0 additions & 38 deletions python/analysis/vector/qgspointsample.sip

This file was deleted.

6 changes: 0 additions & 6 deletions src/analysis/CMakeLists.txt
Expand Up @@ -35,12 +35,9 @@ SET(QGIS_ANALYSIS_SRCS
raster/qgsrastercalculator.cpp
raster/qgsrastermatrix.cpp
vector/mersenne-twister.cpp
vector/qgsgeometryanalyzer.cpp
vector/qgsgeometrysnapper.cpp
vector/qgspointsample.cpp
vector/qgstransectsample.cpp
vector/qgszonalstatistics.cpp
vector/qgsoverlayanalyzer.cpp

openstreetmap/qgsosmbase.cpp
openstreetmap/qgsosmdatabase.cpp
Expand Down Expand Up @@ -116,9 +113,6 @@ SET(QGIS_ANALYSIS_HDRS
raster/qgsrastercalcnode.h
raster/qgstotalcurvaturefilter.h

vector/qgsgeometryanalyzer.h
vector/qgsoverlayanalyzer.h
vector/qgspointsample.h
vector/qgstransectsample.h
vector/qgszonalstatistics.h

Expand Down

0 comments on commit 0227bdc

Please sign in to comment.