// Import coordinate system from USGS projection definition func (sr SpatialReference) FromUSGS(projsys, zone int, params []float64, datum int) error { return C.OSRImportFromUSGS( sr.cval, C.long(projsys), C.long(zone), (*C.double)(unsafe.Pointer(¶ms[0])), C.long(datum), ).Err() }
// Import coordinate system from USGS projection definition func (sr SpatialReference) FromUSGS(projsys, zone int, params []float64, datum int) error { err := C.OSRImportFromUSGS( sr.cval, C.long(projsys), C.long(zone), (*C.double)(unsafe.Pointer(¶ms[0])), C.long(datum)) if err != 0 { return error(err) } return nil }