[Qgis-user] Multiple Layers
Mike Flannigan
mikeflan at att.net
Mon Jun 15 06:07:57 PDT 2020
Linux Mint QGIS 3.12.3-Bucuresti.
I have a qgs file with about 470 layers.
Roughly 100 of those layers are grouped together in
7 groups. All layers are SHP or geojson. Most
are geojson. I cannot have all the layers on, but
I can have most of them turned on. It takes a
couple minutes to load all the layers upon startup.
It counts down slowly from about 30 layers remaining,
to 1 layers remaining over ~3 minutes.
If I have all the layers turned on it either bombs
and closes while I am turning on layers, or a partial
artifact window appears over the Layers panel and
it freezes.
I thought it was because my geojson files had very few
newlines, and looked like this:
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name":
"urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "id": 133, "name": "Some Trail" },
"geometry": { "type": "LineString", "coordinates": [ [ -71.701964,
44.138121 ], [ -71.702024, 44.138155 ], [ -71.702079, 44.138192 ], [
-71.702147, 44.138216 ], [ -71.702209, 44.138248 ], [ -71.702266,
44.138285 ], [ -71.702327, 44.138316 ], [ -71.702391, 44.138346 ], [
-71.702463, 44.138354 ], [ -71.702547, 44.138356 ], [ -71.702611,
44.138397 ], [ -71.702644, 44.138447 ], [ -71.702695, 44.138441 ], [
-71.702749, 44.138447 ], [ -71.702813, 44.138450 ], [ -71.704207,
44.137891 ], [ -71.704354, 44.137890 ], [ -71.704502, 44.137856 ] . . .
But when I added newlines after every lat/long pair it did
not fix the problem.
I welcome any recommendations. Including migrating to
a geo DB format. I imagine if I combined my geojson's
into just a few files it would fix the problem, since
I have another qgs file that combines 290 geojson files
into a single geojson layer and it always works fine.
Mike
More information about the Qgis-user
mailing list