I`m working in a project where I must display shapefiles. I'm using OGR to read the shapefile data and use QT to display it.
At this moment, I can display correctly shapefiles with around 2000 geometries but if I use bigger then my program performance is reduced.
I want reduce the number of geometries from my shapefile using the level of detail but I don't know is this is possible with OGR. For example, I have a shapefile with 12 million points and I want reduce it to 2000 point keeping the details.
I read about use ogr2ogr executable, but this is very slow and I need reduce the shape in execution time.
How can I proceed?