Skip to content

Commit

Permalink
update path ogr2ogr
Browse files Browse the repository at this point in the history
  • Loading branch information
chpicone committed Dec 16, 2020
1 parent 5356884 commit acd3018
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/scheduler/tasks/export_definitions/export/export_shp.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
class ExportShp(ExportBase):

def create_gdal_commands(self, database_config, shp_full_path, sql, is_windows=False):
ogr_exe = "ogr2ogr"
ogr_exe = "/usr/bin/ogr2ogr"
if is_windows:
ogr_exe += ".exe"
ogr_exe = "ogr2ogr.exe"

db_host = database_config["HOST"]
db_port = database_config["PORT"]
Expand Down
5 changes: 2 additions & 3 deletions app/scheduler/tasks/import_definitions/import_gpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,9 @@ def get_gtype(self, layer):
return None

def create_gdal_commands(self, layer_name, gtype):
ogr_exe = "ogr2ogr"
ogr_exe = "/usr/bin/ogr2ogr"
if self.isWindows():
ogr_exe += ".exe"

ogr_exe = "ogr2ogr.exe"
db_host = self.database_config["HOST"]
db_port = self.database_config["PORT"]
db_name = self.database_config["DATABASE"]
Expand Down

0 comments on commit acd3018

Please sign in to comment.