write_genotype_file function

Write the genotype file required by OGRDB