[osg-users] How to open shape file (.shp) or openstreetmap file(.pbf) that has large size in osgEarth?

GIS Developer barati.amir at chmail.ir
Thu Oct 5 08:30:24 PDT 2017


Hi,

I build GDAL library with Expat and SQLite libraries, so GDAL can read pbf file for openstreetmap, Then build osg and osgEarth with new GDAL libraries.

Thq problem is that when vector files like .shp or .pbf files has large size (70MB or more size) the osgViewer go to busy mode and come slowly to render and show points or lines.

GDAL has abilities to filter ogrLayer like setSpatialFilter or setAttributeFilter. 

Question is that how we can filter by osgEarth like GDAL?

Thank you!

Cheers,
GIS

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72114#72114







More information about the osg-users mailing list