writing the geometry to avro schema