Fix gl plane feature

Fixed GL plane feature not respecting the GCS along with some other fixes. 
It complained about the index is defined but not used