add check on dimension in RtreeInsert