I am attempting to use a Linux based binary called tippecanoe
to do some vector map tiling. My computer runs on a Windows 10 operating system.
To integrate with the rest of my mapping functions, I am using R 4.2.0 and calling Tippecanoe through the mapboxapi
package for R. This package has a function that makes a system call to tippecanoe
. For this to work in Windows, I have to make the system call to WSL. I keep getting an error from Tippecanoe that it is unable to open database files.
Following advice on the Github page for Tippecanoe, I found out that this was a result of having the number of open files limit too low. Following the advice here, I was able to reset my hard and soft nofile limit to 65535 when working in the Ubuntu shell. I confirmed in Ubuntu with ulimit -n
after closing and relaunching Ubuntu.
However, if I attempt to make a call from the Windows command prompt with wsl ulimit -n
, I somehow get the default value of 1024, instead of the updated values of 65535. I think this must have something to do with WSL configuration. I took a look at how to configure /etc/wsl.conf
to configure the default user, but that didn't make a difference.
Is there a way to change my WSL configuration so that a command from the Windows command prompt will respect the ulimit that I set in Ubuntu?