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 34
34
from mapscript import MapServerError
35
35
36
36
from pygeoapi .provider .base import (BaseProvider , ProviderConnectionError ,
37
- ProviderGenericError , ProviderQueryError )
37
+ ProviderQueryError )
38
+ from pygeoapi .util import (str2bool )
38
39
39
40
LOGGER = logging .getLogger (__name__ )
40
41
@@ -74,13 +75,8 @@ def __init__(self, provider_def):
74
75
75
76
file_extension = self .data .split ('.' )[- 1 ]
76
77
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
84
80
self ._layer .tileindex = self .data
85
81
else :
86
82
if file_extension in ['shp' , 'tif' ]:
You can’t perform that action at this time.
0 commit comments