yuwen.xiang Posted July 25, 2012 Share Posted July 25, 2012 Hello all. I can process one ArrayMap data from C++plugin to uniginescript about reading shape file of point. ( UnigineScript Containers url(docs\UnigineManual.chm::/code/api/usage/arrays.html) ) but now i have some trouble about reading shape file of line. because line is map data. that one line have a lot of points . so that have two layers map data.how to process it from c++plugin to uniginescript. thank you! Link to comment
frustum Posted July 27, 2012 Share Posted July 27, 2012 You can create your own data accessor on c++ and fill a double map in scripts: #unclude <core/scripts/array.h> Unigine::Map map = new Unigine::Map(); for(int y = 0; height) { Unigine::Map m = new Unigine::Map(); map.append(y,map); for(int x = 0; width) { m.append(x,getData(x,y)); } } Link to comment
Recommended Posts