pub fn add_point_record(&mut self, x: f64, y: f64) {
        if self.file_mode == "r" {
            panic!("The file was opened in read-only mode.");
        }
        if self.header.shape_type == ShapeType::Point {
            let mut sfg = ShapefileGeometry {
                shape_type: ShapeType::Point,
                ..Default::default()
            };
            sfg.add_point(Point2D { x: x, y: y });
            self.records.push(sfg);
            self.num_records += 1;
        } else {
            panic!("Attempt to add a ShapefileGeometry record of the wrong ShapeType.");
        }
    }
/// Adds a new Point record.
Adds a new Point record.
Adds a new Point record .
pub fn add_point_record(&mut self, x: f64, y: f64) {
        if self.file_mode == "r" {
            panic!("The file was opened in read-only mode.");
        }
        if self.header.shape_type == ShapeType::Point {
            let mut sfg = ShapefileGeometry {
                shape_type: ShapeType::Point,
                ..Default::default()
            };
            sfg.add_point(Point2D { x: x, y: y });
            self.records.push(sfg);
            self.num_records += 1;
        } else {
            panic!("Attempt to add a ShapefileGeometry record of the wrong ShapeType.");
        }
    }
pub fn add_point_record ( & mut self , x : f64 , y : f64 ) { if self . file_mode == " " { panic ! ( " " ) ; } if self . header . shape_type == ShapeType :: Point { let mut sfg = ShapefileGeometry { shape_type : ShapeType :: Point , .. Default :: default ( ) } ; sfg . add_point ( Point2D { x : x , y : y } ) ; self . records . push ( sfg ) ; self . num_records += 1 ; } else { panic ! ( " " ) ; } }
Adds a new Point record.
Adds a new Point record .
&mut self
x
f64
y
f64
&mut self
x
f64
y
f64