[Qgis-user] Maximum number of layers

David J. Bakeman dbakeman at comcast.net
Sun Jul 16 12:11:21 PDT 2017


On 07/15/2017 01:50 PM, Nicolas Cadieux wrote:
> Hi,
> What is the maximum number of layers I can open in Qgis?  Is there a setting I can change to increase it?
I don't know about Windows but on Linux it's at least partially a
operating system setting.  That is the number of open files.

In my case I wanted to open several thousand shapefiles (each shapefile
is actually 3-4 files).

So in Linux there is a limit/ulimit command you can use to increase the
number of open file descriptors but it can only increase it up to the
hard limit.  To increase the hard limit I added a file to the system
directory which sets various limits in /etc/security/limits.d  I called
it 99-nofile.con in it I increased the hard limit to 65536.  Check
/etc/security/limits.conf for examples.  Then I rebooted now I've been
able to work with projects with thousands of shapefiles with no problem.

I have lots of memory(128GB) which might be a factor as well.
> Thanks
> Nicolas
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user




More information about the Qgis-user mailing list