@@ -622,6 +622,10 @@ int msQueryByAttributes(mapObj *map)
622
622
623
623
lp = (GET_LAYER (map , map -> query .layer ));
624
624
625
+ /* using mapscript, the map->query.startindex will be unset... */
626
+ if (lp -> startindex > 1 && map -> query .startindex < 0 )
627
+ map -> query .startindex = lp -> startindex ;
628
+
625
629
/* conditions may have changed since this layer last drawn, so set
626
630
layer->project true to recheck projection needs (Bug #673) */
627
631
lp -> project = MS_TRUE ;
@@ -826,6 +830,10 @@ int msQueryByFilter(mapObj *map)
826
830
else if (map -> query .maxfeatures > 0 )
827
831
lp -> maxfeatures = map -> query .maxfeatures ;
828
832
833
+ /* using mapscript, the map->query.startindex will be unset... */
834
+ if (lp -> startindex > 1 && map -> query .startindex < 0 )
835
+ map -> query .startindex = lp -> startindex ;
836
+
829
837
/* conditions may have changed since this layer last drawn, so set
830
838
layer->project true to recheck projection needs (Bug #673) */
831
839
lp -> project = MS_TRUE ;
@@ -1017,6 +1025,10 @@ int msQueryByRect(mapObj *map)
1017
1025
else if (map -> query .maxfeatures > 0 )
1018
1026
lp -> maxfeatures = map -> query .maxfeatures ;
1019
1027
1028
+ /* using mapscript, the map->query.startindex will be unset... */
1029
+ if (lp -> startindex > 1 && map -> query .startindex < 0 )
1030
+ map -> query .startindex = lp -> startindex ;
1031
+
1020
1032
/* conditions may have changed since this layer last drawn, so set
1021
1033
layer->project true to recheck projection needs (Bug #673) */
1022
1034
lp -> project = MS_TRUE ;
@@ -1255,6 +1267,10 @@ int msQueryByFeatures(mapObj *map)
1255
1267
else if (map -> query .maxfeatures > 0 )
1256
1268
lp -> maxfeatures = map -> query .maxfeatures ;
1257
1269
1270
+ /* using mapscript, the map->query.startindex will be unset... */
1271
+ if (lp -> startindex > 1 && map -> query .startindex < 0 )
1272
+ map -> query .startindex = lp -> startindex ;
1273
+
1258
1274
/* conditions may have changed since this layer last drawn, so set
1259
1275
layer->project true to recheck projection needs (Bug #673) */
1260
1276
lp -> project = MS_TRUE ;
@@ -1559,6 +1575,10 @@ int msQueryByPoint(mapObj *map)
1559
1575
else if (map -> query .maxfeatures > 0 )
1560
1576
lp -> maxfeatures = map -> query .maxfeatures ;
1561
1577
1578
+ /* using mapscript, the map->query.startindex will be unset... */
1579
+ if (lp -> startindex > 1 && map -> query .startindex < 0 )
1580
+ map -> query .startindex = lp -> startindex ;
1581
+
1562
1582
/* conditions may have changed since this layer last drawn, so set
1563
1583
layer->project true to recheck projection needs (Bug #673) */
1564
1584
lp -> project = MS_TRUE ;
@@ -1781,6 +1801,10 @@ int msQueryByShape(mapObj *map)
1781
1801
else if (map -> query .maxfeatures > 0 )
1782
1802
lp -> maxfeatures = map -> query .maxfeatures ;
1783
1803
1804
+ /* using mapscript, the map->query.startindex will be unset... */
1805
+ if (lp -> startindex > 1 && map -> query .startindex < 0 )
1806
+ map -> query .startindex = lp -> startindex ;
1807
+
1784
1808
/* conditions may have changed since this layer last drawn, so set
1785
1809
layer->project true to recheck projection needs (Bug #673) */
1786
1810
lp -> project = MS_TRUE ;
0 commit comments