September 22, 200223 yr Author Hi Chris.Yes. Christian Stock's solution is the best, and it clarifies the SDK's info on the ordering of the Cell Index. ( My interpretation was exactly wrong, and that's why my way required the padding! )To recap for everyone else...cwright's original code had a Cell index structure ( LOD8 ) like this: LWMIndexStart label word LWMIndexHeader 6, LWMIndexData LWMIndexData label word LWMIndexEntry Cell_472_249, LWMStart, datamark_0, datamark_1 LWMIndexEntry Cell_472_250, LWMStart, datamark_1, datamark_2 LWMIndexEntry Cell_472_251, LWMStart, datamark_2, datamark_3 LWMIndexEntry Cell_473_249, LWMStart, datamark_3, datamark_4 LWMIndexEntry Cell_473_250, LWMStart, datamark_4, datamark_5 LWMIndexEntry Cell_473_251, LWMStart, datamark_5, datamark_6And it should have been: LWMIndexStart label word LWMIndexHeader 6, LWMIndexData LWMIndexData label word LWMIndexEntry Cell_472_249, LWMStart, datamark_0, datamark_1 LWMIndexEntry Cell_473_249, LWMStart, datamark_3, datamark_4 LWMIndexEntry Cell_472_250, LWMStart, datamark_1, datamark_2 LWMIndexEntry Cell_473_250, LWMStart, datamark_4, datamark_5 LWMIndexEntry Cell_472_251, LWMStart, datamark_2, datamark_3 LWMIndexEntry Cell_473_251, LWMStart, datamark_5, datamark_6So, as regards the order of the Cell Index ( for both LWM polys and VTP polys ):The best way to look at this, is to imagine latitudinal bands ( V Cell value ) circling the globe, in order of 0 ( North Pole )to 511 ( South Pole ). Within the latitudinal band, the U Cell value should be in numerical order from 0 ( W180*.. international dateline ) to 767 ( wrapping eastward around to the dateline again ).Many thanks to Chris Wright and Christian Stock.:):-beerchug
Create an account or sign in to comment