Skip to content

Commit

Permalink
fix bug split merge
Browse files Browse the repository at this point in the history
  • Loading branch information
linogaliana committed Dec 23, 2023
1 parent 172f401 commit dc59650
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions cartiflette/mapshaper/mapshaper_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,5 @@ def mapshaperize_split_merge(
cmd,
shell=True
)

return output_path
5 changes: 2 additions & 3 deletions cartiflette/pipeline/mapshaper_split_from_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def mapshaperize_split_from_s3(
output_path = mapshaperize_split(
local_dir=local_dir,
filename_initial=borders,
extension_initial="shp",
extension_initial="shp",
format_output=format_output,
niveau_agreg=filter_by,
provider=provider,
Expand Down Expand Up @@ -120,11 +120,10 @@ def mapshaperize_merge_split_from_s3(
fs=fs
)

local_directory

output_path = mapshaperize_split_merge(
local_dir=local_dir,
extension_initial="shp",
extension_initial="shp",
format_output=format_output,
niveau_agreg=filter_by,
provider=provider,
Expand Down
1 change: 1 addition & 0 deletions misc/install-mapshaper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sudo apt install npm nodejs -y
sudo apt-get install libmagic-dev -y

git clone https://github.com/mbloch/mapshaper.git --single-branch
git checkout ec6e7a40bc875ee6d113045e5ee86f47abf57bc7
cd mapshaper
yes | npm install # install dependencies
yes yes | npm run build # bundle source code files
Expand Down

0 comments on commit dc59650

Please sign in to comment.