This project is read-only.

Index Gneration slow

Nov 3, 2015 at 6:04 PM
Hello everybody,

in my application (MapWinGis.ocx 4.9.3.5, windows 10 64, Access 32 Bit, vba) I somtimes need to create an index of unique values by:
objShape.Categories.Generate 0, ctUniqueValues, 0
This works if there are not too many elements in the shapefile. But it's painfully slow.

Is there a way to speed up the creation?

Thanks Helmut
Nov 6, 2015 at 11:13 AM
Hello again,

yesterday I had to revert my application to MapWinGis.ocx 4.8.8.1 after having installed it with MapWinGis.ocx 4.9.3.5 at a customer yesterday.

The application was so slow, that it paralyzed the computer for more than 5 minutes - the reverted version needs only a second for the same action. I'm completely aware that MapWinGis.ocx is not meant to work with access/vba and my code may not be optimal in places, but for future releases it would be nice to optimize the ocx code for performance. The bottle neck seems to be, as far as I can see, the index creation, if unique values are needed (which worked fine with 4.8.8.1).

I'm happy with 4.8.8.1 for the time being.

Thanks again for your excelent work.

Helmut
Jan 21, 2016 at 4:24 PM
Hi Helmut,

I created https://mapwindow.atlassian.net/browse/MWGIS-31 for this.
We will have a look at this, but I don't know when.

And you are right you might want to consider migrating your application to a MapWindow5 plug-in.

Regards,

Paul