File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 3434from mapscript import MapServerError
3535
3636from pygeoapi .provider .base import (BaseProvider , ProviderConnectionError ,
37- ProviderGenericError , ProviderQueryError )
37+ ProviderQueryError )
38+ from pygeoapi .util import (str2bool )
3839
3940LOGGER = logging .getLogger (__name__ )
4041
@@ -74,13 +75,8 @@ def __init__(self, provider_def):
7475
7576 file_extension = self .data .split ('.' )[- 1 ]
7677
77- tileindex = False
78- if 'tileindex' in self .options :
79- if (self .options ['tileindex' ] is not True and self .options ['tileindex' ] is not False ): # noqa
80- raise ProviderGenericError ('Invalid tileindex parameter' )
81- tileindex = bool (self .options ['tileindex' ])
82-
83- if tileindex is True :
78+ # self._layer.tileindex = False
79+ if 'tileindex' in self .options and str2bool (self .options .get ('tileindex' , False )): # noqa
8480 self ._layer .tileindex = self .data
8581 else :
8682 if file_extension in ['shp' , 'tif' ]:
You can’t perform that action at this time.
0 commit comments