Skip to main content
11 events
when toggle format what by license comment
Jun 12, 2018 at 2:37 comment added WezeW Yes that's what I meant when I said I tried to create a single instance and re-use it. It ended up feeling slower overall
Jun 12, 2018 at 2:37 comment added Kirk Kuykendall Also, performance with file geodatabases is usually much better than with shape files.
Jun 12, 2018 at 2:35 comment added Kirk Kuykendall I would guess a network share folder would make things even slower. I see no rule against moving ILayerFile layerfile = new LayerFile() outside the loop, before the foreach. Did you try that?
Jun 12, 2018 at 1:02 comment added WezeW Yes shapefiles with metadata. I hear shapefiles in general are pretty slow working with layerfiles but I couldn't have imagined this. This is all local machine work. I haven't tried that option before though
Jun 12, 2018 at 1:00 comment added Kirk Kuykendall By "shape objects" do you mean shapefiles? If so, are the shapefiles on a network share folder? If you save the resulting grouplayer to a layerfile, does it take long to load into the map manually?
Jun 12, 2018 at 0:55 comment added WezeW I did try both. It takes a good amount of time without the group layer but eventually it needs to go in one, which also takes a fair amount of time. And I did try releasing the object each iteration but it did not seem to have an impact. I even tried to create a single instance of the layer file and just re-use it but that actually ended up bieng slower
Jun 12, 2018 at 0:53 comment added Kirk Kuykendall Did you try calling ReleaseComObject on layerfile at the bottom of the loop?
Jun 12, 2018 at 0:50 comment added Kirk Kuykendall Does it take as long just to loop through the file list and add the layers to a List<ILayer> with no GroupLayer involved?
Jun 8, 2018 at 18:57 history edited PolyGeo CC BY-SA 4.0
deleted 17 characters in body; edited tags; edited title
Jun 8, 2018 at 15:28 review First posts
Jun 8, 2018 at 15:31
Jun 8, 2018 at 15:20 history asked WezeW CC BY-SA 4.0