move OGR environment variable to plugin (#462)
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
|
||||
import importlib
|
||||
import logging
|
||||
import os
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@@ -68,10 +67,6 @@ def load_plugin(plugin_type, plugin_def):
|
||||
|
||||
name = plugin_def['name']
|
||||
|
||||
if name == "OGR":
|
||||
os.environ["OGR_GEOJSON_MAX_OBJ_SIZE"] = os.environ.get(
|
||||
"OGR_GEOJSON_MAX_OBJ_SIZE", "20MB")
|
||||
|
||||
if plugin_type not in PLUGINS.keys():
|
||||
msg = 'Plugin type {} not found'.format(plugin_type)
|
||||
LOGGER.exception(msg)
|
||||
|
||||
Reference in New Issue
Block a user