File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -672,6 +672,7 @@ int msQueryByFilter(mapObj *map)
672
672
rectObj search_rect ;
673
673
674
674
shapeObj shape ;
675
+ int paging ;
675
676
676
677
int nclasses = 0 ;
677
678
int * classgroup = NULL ;
@@ -731,12 +732,14 @@ int msQueryByFilter(mapObj *map)
731
732
if ((lp -> mingeowidth > 0 ) && ((map -> extent .maxx - map -> extent .minx ) < lp -> mingeowidth )) continue ;
732
733
}
733
734
735
+ paging = msLayerGetPaging (lp );
734
736
msLayerClose (lp ); /* reset */
735
737
status = msLayerOpen (lp );
736
738
if (status != MS_SUCCESS ) goto query_error ;
739
+ msLayerEnablePaging (lp , paging );
737
740
738
741
/* disable driver paging */
739
- msLayerEnablePaging (lp , MS_FALSE );
742
+ // msLayerEnablePaging(lp, MS_FALSE);
740
743
741
744
old_filteritem = lp -> filteritem ; /* cache the existing filter/filteritem */
742
745
msInitExpression (& old_filter );
@@ -816,7 +819,7 @@ int msQueryByFilter(mapObj *map)
816
819
#endif
817
820
818
821
/* Should we skip this feature? */
819
- if (!msLayerGetPaging ( lp ) && map -> query .startindex > 1 ) {
822
+ if (!paging && map -> query .startindex > 1 ) {
820
823
-- map -> query .startindex ;
821
824
msFreeShape (& shape );
822
825
continue ;
You can’t perform that action at this time.
0 commit comments