Problem in reading flatgeobuffer file

Hi,
what is wrong in this code, it doesn't show attribute, name. Here is the code: ``` use std::fs::File;

use std::io::{self, BufReader};

use flatgeobuf::*;

fn main() -> io::Result<()> {

// Open the file

let file_result = File::open("src/countries.fgb");

// Handle the Result to get the File

let file = match file_result {

Ok(f) => f,

Err(e) => {

  eprintln!("Error opening file: {}", e);

  return Err(e.into());

}

};

// Create a BufReader

let mut filein = BufReader::new(file);

// Open the FgbReader

let fgb_result = FgbReader::open(&mut filein);

// Handle the Result to get the FgbReader

let mut fgb = match fgb_result {

Ok(reader) => reader,

Err(e) => {

  eprintln!("Error creating FgbReader: {}", e);

  return Err(io::Error::new(io::ErrorKind::Other, e));

}

};

// Rest of your code...

while let Some(feature) = fgb.next().map_err(|e| io::Error::new(io::ErrorKind::Other, e))? {

println!("{}", feature.property::<String>("name").unwrap());

//println!("{}", feature.to_json()?);

}

Ok(())

}


kind regards

That's probably because your fgp iterator is empty. I.e. I believe this is more likely a problem with your input data and not with your code.

Thank you,
I created a new file in QGIS.
and checked it ogrinfo -so test3.fgb INFO: Open of `test3.fgb' using driver `FlatGeobuf' successful. 1: test3 (Point) . But problem retains.